2011-06-03 102 views
3

我在CentOS 5.5上以root身份成功安装了rvm。 然后我试图安装Ruby-1.8.7-头rvm在centos上安装1.8.7-head错误5.5

rvm install 1.8.7-head

和接收这样的错误

Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.8.7-head, this may take a while depending on your cpu(s)...

ruby-1.8.7-head - #fetching Cloning from [github url], this may take a while depending on your connection... Initialized empty Git repository in /usr/local/rvm/repos/ruby-1.8.7-head/.git/ error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing [github url]

fatal: HTTP request failed cloning from [github.com/ruby.git] failed, now attempting to clone from https://github.com/ruby/ruby.git , this may take a while depending on your connection... Initialized empty Git repository in /usr/local/rvm/repos/ruby-1.8.7-head/.git/ error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing [github.com/ruby/ruby.git/info/refs]

fatal: HTTP request failed ERROR: There has been an error while trying to fetch the repository.
Halting the installation. ERROR: There has been an error fetching the ruby interpreter. Halting the installation.

回答

4

来解决这个问题

(可选)备份证书

cp /etc/pki/tls/certs/ca-bundle.crt /root/backup/

获取新的证书

curl http://curl.haxx.se/ca/cacert.pem  -o /etc/pki/tls/certs/ca-bundle.crt

在那之后我被困旁边错误

rvm install 1.8.7-head

这里它是

Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.8.7-head, this may take a while depending on your cpu(s)...

ruby-1.8.7-head - #fetching HEAD is now at 61ac67c merge revision(s) 31731:31734: From https://github.com/ruby/ruby * branch ruby_1_8_7 -> FETCH_HEAD Already up-to-date. Copying from repo to src path... Running autoreconf ERROR: Error running 'autoreconf', please read /usr/local/rvm/log/ruby-1.8.7-head/autoreconf.log ERROR: Skipping configure step, 'configure' does not exist, did autoreconf not run successfully? ruby-1.8.7-head - #compiling ERROR: Error running 'make ', please read /usr/local/rvm/log/ruby-1.8.7-head/make.log ERROR: There has been an error while running make. Halting the installation.

+1

通过安装Autoconf 2.60与这样的命令解决了这个问题: > wget http://ftp.gnu.org/gnu/autoconf/autoconf -2.63.tar.gz >焦油xvzf的autoconf-2.63.tar.gz > CD autoconf的2.63 > ./配置 - 前缀=/USR >使 >使安装 – 2011-06-05 07:48:04

0

退房“RVM笔记”,并确保你安装你的系统中列出的所有依赖。这听起来像你缺少libssl-dev,但是你可能会缺少更多的东西。

+0

谢谢。其实我之所以在这里发布一个问题的原因是我已经解决了我的问题,这对我来说并不是一个微不足道的答案。我只是想分享我的经验。在stackoverflow有一些规则否认一次发布自己的问题的答案:) – 2011-06-05 07:41:31

2

在Ubuntu 11.04上apt-get install automake为我修好了。

+0

谢谢chrismealy ,但你的回答对于Centos来说并非有用:) – 2011-08-10 21:52:57