安装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 库版本。

相关内容

热门资讯

透视脚本"sohoo... 透视脚本"sohoo poker辅助"德普软件(竟然真的有辅助软件)-哔哩哔哩1、让任何用户在无需s...
透视安卓版"aapo... 您好,aapoker怎么设置提高好牌几率这款游戏可以开挂的,确实是有挂的,需要了解加去威信【4852...
出现新变化"wepo... 出现新变化"wepoker有插件吗"wejoker透视方法(竟然真的有辅助修改器)-哔哩哔哩运wep...
透视真的"约局吧如何... 透视真的"约局吧如何查看是否有挂"wepoker的辅助器(都是存在有辅助下载)-哔哩哔哩运约局吧如何...
为了进一步"hhpo... 为了进一步"hhpoker德州作必弊"pokernow辅助工具(都是真的有辅助下载)-哔哩哔哩hhp...
透视透视"wepok... 透视透视"wepoker插件功能辅助器"aapoker万能辅助器(一直真的有辅助修改器)-哔哩哔哩1...
透视玄学"pokem... 透视玄学"pokemmo辅助官网"wepoker免费脚本咨询(总是是有辅助软件)-哔哩哔哩1、wep...
目前来看"wepok... 目前来看"wepoker免费脚本咨询"wepoker公共底牌(确实是有辅助插件)-哔哩哔哩1.wep...
据公告内容"wpk安... 据公告内容"wpk安卓下载辅助"wepoker有透视功能吗(本来有辅助平台)-哔哩哔哩1、在wepo...
透视辅助"WePOk... 透视辅助"WePOker有没有透视方法"we-poker靠谱吗(果然是真的辅助安装)-哔哩哔哩在进入...