安装recommendifygem出错-Failedtobuildgemnativeextension(找不到hiredis.h文件或目录)
创始人
2024-08-30 15:30:18
0

该错误通常出现在 Linux 系统中,因为缺少 hiredis 库或者路径配置不正确。可以通过以下步骤解决:

  1. 安装 hiredis 库

在 Linux 终端中执行以下命令:

sudo apt-get install libhiredis-dev

如果是 CentOS 系统,则需要执行以下命令安装:

sudo yum install hiredis-devel

  1. 配置路径

在 Gemfile 中添加以下配置:

gem 'recommendify', :git => 'https://github.com/paulasmuth/recommendify.git', :branch => 'master', :submodules => true, :path => 'vendor/recommendify'

  1. 执行 bundle install

在终端中执行以下命令:

bundle install

如果上面的步骤都没有解决问题,则可以尝试重新安装 recommendify gem,或者尝试升级系统的 hiredis 库版本。

相关内容

热门资讯

据公告内容"wepo... 据公告内容"wepoker的辅助器"epoker透视(原来是有辅助神器)-哔哩哔哩1、进入游戏-大厅...
透视有挂"wepok... 透视有挂"wepoker免费钻石"wpk辅助器是真的吗(都是真的是有辅助软件)-哔哩哔哩1、下载好w...
这一问题亟待解决"约... 这一问题亟待解决"约局吧德州有挂吗"佛手在线大菠萝辅助(竟然有辅助插件)-哔哩哔哩1、下载好佛手在线...
据了解"wepoke... 据了解"wepoker有人用过吗"红龙poker辅助(果然存在有辅助神器)-哔哩哔哩1、操作简单,无...
近日"wepoker... 近日"wepoker透视脚本是什么"werplan脚本(都是真的是有辅助工具)-哔哩哔哩;1、该软件...
透视脚本"德州hhp... 透视脚本"德州hhpoker是真的吗"红龙poker辅助工具(确实存在有辅助app)-哔哩哔哩1、金...
最终"uupoker... 最终"uupoker有透视吗"xpoker辅助控制(原来是有辅助下载)-哔哩哔哩uupoker有透视...
随着"wepoker... 随着"wepoker有透视吗"wepoker辅助器有哪些功能(真是是有辅助app)-哔哩哔哩1、we...
透视科技"aapok... 透视科技"aapoker怎么控制牌"aapoker辅助器是真的吗(本来真的有辅助修改器)-哔哩哔哩1...
透视能赢"购买wep... 透视能赢"购买wepoker模拟器"菠萝辅助器免费版的特点(切实是真的辅助安装)-哔哩哔哩该软件可以...