gpt4 book ai didi

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

转载 作者:数据小太阳 更新时间:2023-10-29 07:51:01 25 4
gpt4 key购买 nike

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

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.

最佳答案

解决这个问题

(可选)备份证书

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.

关于ruby - rvm 在 centos 5.5 上安装 1.8.7-head 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6230031/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com