2012-04-04 57 views
1

我目前正在尝试在使用8.04.4版本的Ubuntu服务器上安装RVM。我在Ubuntu 8.04.4机器上安装的RVM失败。我应该将其作为多用户来安装吗?

目前我正在尝试单一用户安装。我是管理这台机器的唯一人员,我对此仍然很不在意。我目前正在关注RVM站点上的安装指南,并在curl命令中添加了'k'标志。关于证书的投诉仍然没有消失。

$ bash -s stable < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) 
Downloading RVM from wayneeseguin branch stable 

curl: (77) error setting certificate verify locations: 
    CAfile: /etc/ssl/certs/ca-certificates.crt 
    CApath: none 


Could not download 'https://github.com/wayneeseguin/rvm/tarball/stable'. 
    curl returned status '77'. 

我的最终目标仅仅是在本机上将红宝石从v1.8.6升级到1.9.2。

我注意到许多人建议反对多用户安装,这就是为什么我还没有尝试它。建议我尝试多用户安装吗?如果没有人能帮助我根除这个证书问题?

在此先感谢。

+1

解决方案的一群[这里太(http://stackoverflow.com/questions/6414232/curl-certificate-error-when-using-rvm-to-install-ruby-1-9-2),有帮助吗? – 2012-04-04 00:26:39

+1

会尝试从那里引用的[The Haxx Page](http://curl.haxx.se/ca/cacert.pem)获取CA证书。我会让你张贴:) – WYSRD 2012-04-04 17:20:06

回答

1

做它单个用户。你的问题不是RVM,而是CA证书。

阅读此链接,并确保您的SSL是最新的,并且您已经安装了CA证书:使用apt

https://help.ubuntu.com/community/OpenSSL

要在Ubuntu上安装CA证书:

apt-get install ca-certificates 
+0

嗯。我没有CA证书只有似乎是自签名的?蛇油证书例如b14d9f7c - > ssl-cert-snakeoil.pem – WYSRD 2012-04-04 16:50:00

+0

我用apt-get info – joelparkerhenderson 2012-04-04 19:48:21

+0

更新了答案。非常感谢。单用户安装成功。 :)。如果可以的话,我愿意这样做:/ – WYSRD 2012-04-04 21:23:22

0

根据man curl这个问题是:

77  Problem with reading the SSL CA cert (path? access rights?). 

我猜你有sissues具有访问权限的文件提到:

/etc/ssl/certs/ca-certificates.crt 

确保是可读的所有用户:

sudo chmod 755 /etc/ /etc/ssl/ /etc/ssl/certs/ 
sudo chmod 644 /etc/ssl/certs/ca-certificates.crt 
+0

我没有那个文件,只是我的/ etc/ssl/certs /目录中的ssl-cert-snakeoil.pem。猜猜这意味着我必须获得一个? – WYSRD 2012-04-04 16:51:51