I'm working off a relatively clean OS X install. I had Xcode, but removed it.
我正在做一个相对干净的OS X安装。我有Xcode,但是去掉了。
When I type rvm install 1.9.3
, I get:
输入rvm安装1.9.3,得到:
max-macbook:~ max$ rvm install 1.9.3 Fetching yaml-0.1.4.tar.gz to /Users/max/.rvm/archives % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0 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). If the default bundle file isn't adequate, 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. There was an error, please check /Users/max/.rvm/log//*.log. Next we'll try to fetch via http. Trying ftp:// URL instead. % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0 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). If the default bundle file isn't adequate, 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. There was an error, please check /Users/max/.rvm/log//*.log Extracting yaml-0.1.4.tar.gz to /Users/max/.rvm/src Error running 'tar xmzf /Users/max/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/max/.rvm/src ', please read /Users/max/.rvm/log/ruby-1.9.3-p125/yaml/extract.log /Users/max/.rvm/scripts/functions/pkg: line 52: cd: /Users/max/.rvm/src/yaml-0.1.4: No such file or directory Configuring yaml in /Users/max/.rvm/src/yaml-0.1.4. Error running ' ./configure
--prefix="/Users/max/.rvm/usr" ', please read /Users/max/.rvm/log/ruby-1.9.3-p125/yaml/configure.log Compiling yaml in /Users/max/.rvm/src/yaml-0.1.4. Error running 'make ', please read /Users/max/.rvm/log/ruby-1.9.3-p125/yaml/make.log
Database file /Users/max/.rvm/config/packages does not exist.
/Users/max/.rvm/scripts/functions/build: line 28: --version: command not found Installing Ruby from source to: /Users/max/.rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...
ruby-1.9.3-p125 - #fetching ruby-1.9.3-p125 - #downloading ruby-1.9.3-p125, this may take a while depending on your connection...
Weird things seems to be happening, like I don't have a default system. This is the first time I've tried installing Ruby (eventually trying to get to Rails), so this whole process is quite foreign to me.
奇怪的事情似乎正在发生,就像我没有默认的系统一样。这是我第一次尝试安装Ruby(最终尝试安装Rails),所以整个过程对我来说是陌生的。
I've checked a couple of the logs the output mentions and most of the time RVM is looking for a file that doesnt exist (however it says it was downloaded) or a program that doesnt exist (it was trying to run ./configure
and got a "File not Found").
我检查了输出提到的一些日志,大多数时候RVM正在寻找一个不存在的文件(不管它说它被下载了)或者一个不存在的程序(它试图运行)。
Can anyone shed any insight on this? I want to get my hands dirty with Rails ASAP.
有人对此有什么见解吗?我想尽快用铁轨弄脏我的手。
5 个解决方案
#1
27
The old RVM certificates have expired, we were migrating to shorter domain rvm.io, I have updated all resources and code to point to the new domain, just update RVM:
旧的RVM证书已经过期,我们正在迁移到更短的域RVM。io,我更新了所有的资源和代码指向新的领域,更新RVM:
rvm get head # OR:
rvm get stable
also there is new shorter installer command:
还有新的更短的安装命令:
curl -L get.rvm.io | bash -s stable
for older RVM versions it might be necessary to:
对于旧的RVM版本,可能需要:
rvm get head
rvm reload
rvm get stable
#2
16
we fixed the problem with:
我们解决了这个问题:
echo 'insecure' > ~/.curlrc
#3
1
I'm getting the same errors installing 1.9.3 on Ubuntu. The rvm site's SSL certificate has expired; the errors come from trying to fetch yaml-0.1.4.tar.gz.
在Ubuntu上安装1.9.3也会有同样的错误。rvm站点的SSL证书已过期;错误来自试图获取yaml- 0.4 .tar.gz。
It looks like it does correctly fail over to regular HTTP or FTP after a couple retries, so there shouldn't be anything to worry about (although the red text does look ominous).
它看起来确实在多次重试之后会正确地失败到常规的HTTP或FTP上,所以不需要担心任何事情(尽管红色的文本看起来不太好)。
If you really want to suppress the error messages, look for these two lines (for me, lines 62 and 66) in ~/.rvm/scripts/fetch
:
如果您真的想要抑制错误消息,请在~/.rvm/scripts/fetch中查找这两行(对于我来说是第62行和第66行):
fetch_command="curl -x${rvm_proxy} -f -L --create-dirs -C - " # -s for silent
fetch_command="curl -f -L --create-dirs -C - " # -s for silent
and add a -k flag to curl so that it doesn't validate the SSL cert:
并向curl添加-k标志,使其不验证SSL证书:
fetch_command="curl -k -x${rvm_proxy} -f -L --create-dirs -C - " # -s for silent
fetch_command="curl -k -f -L --create-dirs -C - " # -s for silent
#4
1
This is a duplicate of Curl Certificate Error when Using RVM to install Ruby 1.9.2
这是使用RVM安装Ruby 1.9.2时Curl证书错误的副本
The solution described by Wei works fine on my Debian box:
Wei描述的解决方案在我的Debian box上运行良好:
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
cp yaml-0.1.4.tar.gz /home/luc/.rvm/archives
rvm install 1.9.3
#5
1
@mpapis's answer didn't work for me as of November 2nd 2013. Eventually the rvm fail messages pointed me to rvm.io/support/fixing-broken-ssl-certificates where it says to run sudo apt-get install ca-certificates
for Ubuntu. Then the standard /curl -L get.rvm.io | bash -s stable
worked.
@mpapis的回答在2013年11月2日对我不起作用。最终,rvm失败消息将我指向了rvm。它说运行sudo apt-get安装的ca证书。然后是标准/curl -L get.rvm。io | bash -s稳定工作。
#1
27
The old RVM certificates have expired, we were migrating to shorter domain rvm.io, I have updated all resources and code to point to the new domain, just update RVM:
旧的RVM证书已经过期,我们正在迁移到更短的域RVM。io,我更新了所有的资源和代码指向新的领域,更新RVM:
rvm get head # OR:
rvm get stable
also there is new shorter installer command:
还有新的更短的安装命令:
curl -L get.rvm.io | bash -s stable
for older RVM versions it might be necessary to:
对于旧的RVM版本,可能需要:
rvm get head
rvm reload
rvm get stable
#2
16
we fixed the problem with:
我们解决了这个问题:
echo 'insecure' > ~/.curlrc
#3
1
I'm getting the same errors installing 1.9.3 on Ubuntu. The rvm site's SSL certificate has expired; the errors come from trying to fetch yaml-0.1.4.tar.gz.
在Ubuntu上安装1.9.3也会有同样的错误。rvm站点的SSL证书已过期;错误来自试图获取yaml- 0.4 .tar.gz。
It looks like it does correctly fail over to regular HTTP or FTP after a couple retries, so there shouldn't be anything to worry about (although the red text does look ominous).
它看起来确实在多次重试之后会正确地失败到常规的HTTP或FTP上,所以不需要担心任何事情(尽管红色的文本看起来不太好)。
If you really want to suppress the error messages, look for these two lines (for me, lines 62 and 66) in ~/.rvm/scripts/fetch
:
如果您真的想要抑制错误消息,请在~/.rvm/scripts/fetch中查找这两行(对于我来说是第62行和第66行):
fetch_command="curl -x${rvm_proxy} -f -L --create-dirs -C - " # -s for silent
fetch_command="curl -f -L --create-dirs -C - " # -s for silent
and add a -k flag to curl so that it doesn't validate the SSL cert:
并向curl添加-k标志,使其不验证SSL证书:
fetch_command="curl -k -x${rvm_proxy} -f -L --create-dirs -C - " # -s for silent
fetch_command="curl -k -f -L --create-dirs -C - " # -s for silent
#4
1
This is a duplicate of Curl Certificate Error when Using RVM to install Ruby 1.9.2
这是使用RVM安装Ruby 1.9.2时Curl证书错误的副本
The solution described by Wei works fine on my Debian box:
Wei描述的解决方案在我的Debian box上运行良好:
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
cp yaml-0.1.4.tar.gz /home/luc/.rvm/archives
rvm install 1.9.3
#5
1
@mpapis's answer didn't work for me as of November 2nd 2013. Eventually the rvm fail messages pointed me to rvm.io/support/fixing-broken-ssl-certificates where it says to run sudo apt-get install ca-certificates
for Ubuntu. Then the standard /curl -L get.rvm.io | bash -s stable
worked.
@mpapis的回答在2013年11月2日对我不起作用。最终,rvm失败消息将我指向了rvm。它说运行sudo apt-get安装的ca证书。然后是标准/curl -L get.rvm。io | bash -s稳定工作。