环境:ruby 2.5.3p105(2018-10-18 修订版 65156)[x86_64-linux]
刚刚从 Mageia 6 升级到 Mageia 7(原位,不是全新安装)
在 Mageia 6 下工作的 Ruby 程序现在拒绝并显示错误消息:
`require': 无法加载这样的文件 -- sequel (LoadError)
我已经研究过这个错误(在 Stackoverflow 上很常见!)但看不到相关的解决方案。
来自“宝石环境”
- GEM PATHS:
- /home/graeme/.gem/ruby/2.5.0
- /usr/share/gems
- /usr/local/share/gems
但它在那里:
[graeme@bach Scripts]$ cd /usr/local/share/gems/gems
[graeme@bach gems]$ ls -l
total 20
drwxr-xr-x 5 root root 4096 Dec 1 18:14 bigdecimal-1.4.4/
drwxr-xr-x 5 root root 4096 Dec 1 18:12 mini_portile2-2.4.0/
drwxr-xr-x 6 root root 4096 Dec 1 18:14 nokogiri-1.10.5/
drwxr-xr-x 5 root root 4096 Dec 3 15:39 pg-1.1.4/
drwxr-xr-x 6 root root 4096 Dec 4 12:29 sequel-5.27.0/
使用完整路径也无济于事:
require '/usr/local/share/gems/gems/sequel'
请提供一些帮助。