usrlocalrubylibruby2.5.0rubygemscore

it2022-05-05  102

https://blog.csdn.net/qq_39244264/article/details/80281702

 

错误详情:

        2: from ./redis-trib.rb:25:in `<main>'

1: from /usr/local/ruby/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

/usr/local/ruby/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- redis (LoadError)

问题来源于这个命令:

    

    缺少redis库。

    解决方法:gem install redis (安装redis库)

 

    如果linux不能访问外网,就离线安装,附地址:https://rubygems.global.ssl.fastly.net/gems/redis-3.2.1.gem

        下载之后打入linux。执行安装:gem install -l ./redis-3.2.1.gem

执行完成。


最新回复(0)