我正在尝试使用以下命令在 RHEL 5.3 上安装最新的 Ruby:
[root@anjanb logs]# yum install ruby-full
Repository engineering-update is listed more than once in the configuration
Repository engineering-install is listed more than once in the configuration
Repository emergency-update is listed more than once in the configuration
Repository emergency-install is listed more than once in the configuration
primary.xml.gz | 12 kB 00:00
http://linuxdownload.adobe.com/linux/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from adobe-linux-i386: [Errno 256] No more mirrors to try.
[root@anjanb logs]#
可能出了什么问题?如何才能成功安装 Ruby?
答案1
最好的办法是使用 ruby 版本管理器来安装 ruby。这适用于所有基于 Linux 的发行版,从长远来看可以为您省去很多麻烦。老实说,我强烈推荐它。看看安装说明。