请帮忙!!!
我在 Centos6 中安装新版本的 ruby 时遇到问题。
我会尝试使用 rvm 安装它:
/usr/local/rvm/bin/rvm install 1.9.2
并收到下一条消息:
Error running 'requirements_centos_libs_install libyaml-devel readline-devel libffi-devel sqlite-devel', showing last 15 lines of /usr/local/rvm/log/1439995406_ruby-1.9.2-p330/package_install_libyaml-devel_readline-devel_libffi-devel_sqlite-devel.log If you don't want/need both architectures anymore then you can remove the one with the missing update and everything will work.
You have duplicate versions of libffi installed already. You can use "yum check" to get yum show these errors.
...you can also use --setopt=protected_multilib=false to remove this checking, however this is almost never the correct thing to do as something else is very likely to go wrong (often causing much more problems).
Protected multilib versions: libffi-3.0.5-3.2.el6.i686 != libffi-3.0.9-1.el5.rf.x86_64 ++ return 1 ++ return 1 Requirements installation failed with status: 1.
我尝试删除此库但再次失败:
Error: Trying to remove "yum", which is protected
有人可以解释我失败的地方吗?请!谢谢!
p.s.我正在更新系统(如果答案是“yum update”):)
最佳答案
尝试删除 lib :
rpm -e --nodeps libffi
并再次尝试安装 ruby。
关于ruby - 在centos上安装最新版本的ruby的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32098808/