Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Rvm在安装ruby时遇到问题,请帮助_Ruby On Rails_Ruby On Rails 3_Rvm - Fatal编程技术网

Ruby on rails Rvm在安装ruby时遇到问题,请帮助

Ruby on rails Rvm在安装ruby时遇到问题,请帮助,ruby-on-rails,ruby-on-rails-3,rvm,Ruby On Rails,Ruby On Rails 3,Rvm,我刚刚安装了rvm,正在尝试安装ruby,它给了我一条错误消息。有人能帮忙吗 alex$ type rvm | head -1 rvm is a function alex$ rvm install 1.9.2 Installing Ruby from source to: /Users/alex/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)... ruby-1.9.2-p290

我刚刚安装了rvm,正在尝试安装ruby,它给了我一条错误消息。有人能帮忙吗

alex$ type rvm | head -1 

rvm is a function

alex$ rvm install 1.9.2

Installing Ruby from source to: /Users/alex/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...

ruby-1.9.2-p290 - #fetching 
ruby-1.9.2-p290 - #downloading ruby-1.9.2-p290, this may take a while depending on your connection...

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
ERROR: There was an error, please check /Users/alex/.rvm/log/ruby-1.9.2-p290/*.log. Next we'll try to fetch via http.
Trying http:// URL instead.

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
**ERROR: There was an error, please check /Users/alex/.rvm/log/ruby-1.9.2-p290/*.log
ERROR: There has been an error while trying to fetch the source.  
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.**

我以前在10.5上安装时遇到过这个问题-我想我最终安装了head版本;无论出于何种原因,它都没有相同的SSL问题

rvm install ruby-1.9.2-head

我会先检查一下这篇帖子上的答案,你能做到吗

我以前在10.5上安装时遇到过这个问题-我想我最后安装的是head版本;无论出于何种原因,它都没有相同的SSL问题

rvm install ruby-1.9.2-head

我会先检查一下这篇帖子上的答案,你能做到吗

我遇到了完全相同的问题,发现更新curl很快就解决了。

我遇到了完全相同的问题,发现更新curl很快就解决了。

你在使用什么操作系统?你使用代理吗?为什么它试图对http://URL使用SSL。那是不对的。我不确定,不过rvm似乎已经安装了。有什么想法吗?系统时间正确吗?即今天的日期和时间?是的,似乎正确。为什么?你在用什么操作系统?你使用代理吗?为什么它试图对http://URL使用SSL。那是不对的。我不确定,不过rvm似乎已经安装了。有什么想法吗?系统时间正确吗?即今天的日期和时间?是的,似乎正确。为什么?