rvm要求安装git错误

时间:2015-09-22 20:52:58

标签: ruby git rvm

我试图在centos 5服务器上安装带有最新ruby的rvm,rvm已经安装了没有ruby,在尝试安装ruby时抛出错误,关于git。

$ uname -a
Linux 2.6.18-308.24.1.el5PAE #1 SMP Tue Dec 4 18:28:32 EST 2012 i686 i686 i386 GNU/Linux

$ rvm install ruby-2.2-head
Checking requirements for centos.
Installing requirements for centos.
Installing required packages: git, autoconf.......
Error running 'requirements_centos_libs_install git autoconf',
showing last 15 lines of /home/ruby/.rvm/log/1442954643_ruby-2.2-head/package_install_git_autoconf.log
  --> Missing Dependency: perl(Error) is needed by package git-1.8.2.1-1.el5.i386 (epel)
git-1.8.2.1-1.el5.i386 from epel has depsolving problems
  --> Missing Dependency: perl(Term::ReadKey) is needed by package git-1.8.2.1-1.el5.i386 (epel)
git-1.8.2.1-1.el5.i386 from epel has depsolving problems
  --> Missing Dependency: perl(Git) is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl-Git = 1.8.2.1-1.el5 is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Term::ReadKey) is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Git) is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Error) is needed by package git-1.8.2.1-1.el5.i386 (epel)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
++ return 1
++ return 1
Requirements installation failed with status: 1.


$ git --version
git version 1.6.4.4

此主机使用cpanel。

我试过用yum直接安装,同样的错误,也尝试删除git

 # yum remove git
 Failed to set locale, defaulting to C
 Loaded plugins: downloadonly, fastestmirror
 Setting up Remove Process
 No Match for argument: git 

我的猜测是Cpanel安装了git,但它是一个过时的版本,可能是这个吗?

1 个答案:

答案 0 :(得分:0)

尝试这里提供的答案 - https://github.com/rvm/rvm/issues/2696 - 专门解决当您尝试执行此操作时出现的任何问题...

yum install -y libyaml-devel autoconf gcc-c++ readline-devel zlib-devel openssl-devel