rvm在centos 5.5上安装1.8.7-head错误

发布于 2024-11-14 07:00:20 字数 961 浏览 2 评论 0原文

我在 CentOS 5.5 上以 root 身份成功安装了 rvm。 然后我尝试安装 ruby​​-1.8.7-head

rvm安装1.8.7-head

并收到这样的错误

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

ruby-1.8.7-head - #fetching 从 [github url] 克隆,这可能需要一段时间,具体取决于您的连接... 在 /usr/local/rvm/repos/ruby-1.8.7-head/.git/ 中初始化空 Git 存储库 错误:SSL 证书有问题,请验证 CA 证书是否正常。细节: 错误:14090086:SSL 例程:SSL3_GET_SERVER_CERTIFICATE:访问 [github url] 时证书验证失败

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

致命:HTTP 请求失败 错误:尝试获取存储库时出现错误。
停止安装。 错误:获取 ruby​​ 解释器时出错。停止安装。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

很糊涂小朋友 2024-11-21 07:00:20

修复此问题

(可选)备份证书

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安装1.8.7-head

这是

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

ruby-1.8.7-head - #fetching
HEAD 现在位于 61ac67c 合并修订版 31731:31734:
来自 https://github.com/ruby/ruby
* 分支 ruby​​_1_8_7 -> FETCH_HEAD
已经是最新的了。
正在从存储库复制到 src 路径...
运行自动重新配置
错误:运行“autoreconf”时出错,请阅读 /usr/local/rvm/log/ruby-1.8.7-head/autoreconf.log
错误:跳过配置步骤,“配置”不存在,autoreconf 未成功运行吗?
ruby-1.8.7-head - #compiling
错误:运行“make”时出错,请阅读 /usr/local/rvm/log/ruby-1.8.7-head/make.log
错误:运行 make 时出错。停止安装。

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.

浮世清欢 2024-11-21 07:00:20

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

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

-黛色若梦 2024-11-21 07:00:20

查看“rvm 注释”并确保安装了为您的系统列出的所有依赖项。在我看来,您似乎缺少 libssl-dev,但您可能缺少更多。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文