rvm在centos 5.5上安装1.8.7-head错误
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
修复此问题
(可选)备份证书
获取新证书
之后我遇到了下一个错误
这是
TO FIX THIS ISSUE
(Optional) backup certificates
Get new cert
After that I got stuck with next error
Here it is
在 Ubuntu 11.04 上 apt-get install automake 为我修复了它。
On Ubuntu 11.04
apt-get install automake
fixed it for me.查看“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.