我试图让Ruby在客户端的服务器上运行,并且在通过yum
安装时遇到错误。首先,这是我们的Linux风格:
-sh-3.2$ uname -or
2.6.18-238.12.1.el5 GNU/Linux
因此,当以具有sudo权限的用户身份登录时,运行curl时出现此错误:
-sh-3.2$ curl -L get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20511 100 20511 0 0 53522 0 --:--:-- --:--:-- --:--:-- 541k
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
curl: (35) error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm
Could not download 'https://github.com/wayneeseguin/rvm/archive/stable.tar.gz'.
curl returned status '35'.
Downloading https://bitbucket.org/mpapis/rvm/get/stable.tar.gz
Upgrading the RVM installation in /data/ftpusers/design/.rvm/
RVM PATH line found in /data/ftpusers/design/.profile /data/ftpusers/design/.bashrc /data/ftpusers/design/.zshrc.
RVM sourcing line found in /data/ftpusers/design/.bash_profile /data/ftpusers/design/.zlogin.
Upgrade of RVM in /data/ftpusers/design/.rvm/ is complete.
# Thank you for using RVM!
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.
In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
Upgrade Notes:
为了使事情复杂化,我能够从tarball安装Ruby,但似乎缺少了库:
-sh-3.2$ gem install compass
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
这让我觉得如果可以的话,我真的应该解决包管理器的问题。有什么想法吗?
答案 0 :(得分:0)
您有依赖项问题。尝试:
rvm pkg install zlib
和
rvm reinstall all --force