【发布时间】:2019-05-15 08:00:59
【问题描述】:
当我尝试在 CentOS 6.9 上使用 yum install ruby 安装 ruby 时出现以下错误
Error: Package: ruby-2.2.3-1.el7.x86_64 (shiqiao)
Requires: libgdbm.so.4()(64bit)
Error: Package: ruby-2.2.3-1.el7.x86_64 (shiqiao)
Requires: libgdbm_compat.so.4()(64bit)
Error: Package: ruby-2.2.3-1.el7.x86_64 (shiqiao)
Requires: libffi.so.6()(64bit)
Error: Package: ruby-2.2.3-1.el7.x86_64 (shiqiao)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: ruby-2.2.3-1.el7.x86_64 (shiqiao)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我尝试下载所需的 rpm 包并手动安装这些 rpm,但它们总是需要其他 rpm,似乎我迷失在某种无限循环中。
如何正确安装 Ruby?
【问题讨论】:
-
使用一些 ruby 版本管理器,例如
rbenv或rvm。