开发者

rvm install 1.8.7-head errors on centos 5.5

开发者 https://www.devze.com 2023-03-10 11:32 出处:网络
I installed rvm successfully as a root on CentOS 5.5. Then I tried to to install ruby-1.8.7-head rvm install 1.8.7-head

I installed rvm successfully as a root on CentOS 5.5. Then I tried to to install ruby-1.8.7-head

rvm install 1.8.7-head

And receive such error

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.


TO FIX THIS ISSUE

(Optional) backup certificates

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

Get new cert

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

After that I got stuck with next error

rvm install 1.8.7-head

Here it is

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.


On Ubuntu 11.04 apt-get install automake fixed it for me.


Check out "rvm notes" and make sure you install all the dependencies listed for your system. It sounds to me like you are missing libssl-dev, however you may be missing more than that.

0

精彩评论

暂无评论...
验证码 换一张
取 消