2011-06-03 101 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