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

标签 ruby centos rvm yum

请帮忙!!!
我在 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/

相关文章:

ruby - 如何从 PgSQL DB 获取时间

PyGtk 中的 GtkMozEmbed 模块

ruby-on-rails - 如何使用 RVM 或其他方式添加本地自定义 gem?

ubuntu - RVM 配置问题 - "Missing RVM environment file"

rvm - 如何找到 .bash_profile 并将其添加到我的 shell 的初始化文件中?

ruby - 我的实例变量在 Object 中的哪里?

ruby - 与 Ruby 中的 splat 运算符和范围混淆

ruby - Docker for mac - 无法从容器内部连接到主机上运行的 mongo 副本集

Java servlet 应用程序在我的本地电脑上工作,但在我的服务器开发上不工作

centos - 为什么它显示我没有剩余磁盘空间而我仍有大量可用空间?