安装ruby 报错

发布于 2022-08-29 19:31:00 字数 1385 浏览 10 评论 0

[root@VM_82_249_centos ~]# rvm install 2.0.0
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/centos/6/x86_64/ruby-2.0.0-p481.tar.bz2
Checking requirements for centos.
Installing requirements for centos.
Updating system.
Installing required packages: openssl-devel, bison.........
Error running 'requirements_centos_libs_install openssl-devel bison',
showing last 15 lines of /usr/local/rvm/log/1408264655_ruby-2.0.0-p481/package_install_openssl-devel_bison.log
will work.

     3. You have duplicate versions of libselinux 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: libselinux-2.0.94-5.3.el6_4.1.i686 != libselinux-2.0.94-5.3.0.1.el6.centos.plus.x86_64

You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
++ return 1
++ return 1
Requirements installation failed with status: 1.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北座城市 2022-09-05 19:31:00

yum install --enablerepo=centosplus openssl-devel

攒眉千度 2022-09-05 19:31:00

用rvm或者rbenv吧.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文