rvm在centos 5.5上安装1.8.7-head错误 [英] rvm install 1.8.7-head errors on centos 5.5

查看:188
本文介绍了rvm在centos 5.5上安装1.8.7-head错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CentOS 5.5上成功安装了rvm作为根用户。
然后我尝试安装ruby-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

rvm install 1.8.7-head

并收到此类错误


:/usr/local/rvm/rubies/ruby-1.8.7-head,这可能需要一段时间,取决于你的cpu ...

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
从[github url]克隆,这可能需要一段时间,具体取决于您的连接...
/ usr / local / rvm / repos / ruby​​中初始化的空Git存储库-1.8.7-head / .git /
错误:SSL证书问题,请验证CA证书是否正确。详细信息:
错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:访问[github url]时证书验证失败

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]

致命:HTTP请求失败
克隆[github.com/ruby.git]失败,现在尝试从 https://github.com/ruby /ruby.git ,这可能需要一段时间,具体取决于您的连接...
初始化的空Git存储库在/usr/local/rvm/repos/ruby-1.8.7-head/.git/
错误:SSL证书问题,请验证CA证书是否正确。详细信息:
错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:访问[github.com/ruby/ruby.git/info/refs]时证书验证失败

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]

致命:HTTP请求失败
错误:尝试提取存储库时出错。

暂停安装。
错误:提取ruby解释器时出错。停止安装。

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

TO FIX THIS ISSUE

(可选)备份证书


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

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

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-头

rvm install 1.8.7-head


从源码到:/usr/local/rvm/rubies/ruby-1.8.7-安装Ruby,这可能需要一段时间取决于你的cpu ...

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现在是61ac67c合并版本31731 :31734:
https://github.com/ruby/ruby
* branch ruby​​_1_8_7 - > FETCH_HEAD
已经是最新的。
从repo复制到src路径...
运行autoreconf
错误:运行'autoreconf'时出错,请阅读/usr/local/rvm/log/ruby-1.8.7-head/ autoreconf.log
错误:跳过配置步骤,'configure'不存在,autoreconf是否成功运行?
ruby​​-1.8.7-head - #compiling
错误:运行make时出错,请阅读/usr/local/rvm/log/ruby-1.8.7-head/make.log
错误:运行make时出错。暂停安装。

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.

这篇关于rvm在centos 5.5上安装1.8.7-head错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆