在 centos 上安装最新版本 ruby 的问题

issue with install newest version of ruby on cetos

求助!!! 我在 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"):)

尝试删除库:

rpm -e --nodeps libffi

然后再次尝试安装 ruby。