【问题标题】:My install of RVM on a Ubuntu 8.04.4 machine fails. Should I install it as multi-user instead?我在 Ubuntu 8.04.4 机器上安装 RVM 失败。我应该将它安装为多用户吗?
【发布时间】:2012-04-04 00:24:11
【问题描述】:

我目前正尝试在使用 8.04.4 版本的 Ubuntu 服务器上安装 RVM。

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

$ 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'.

我的最终目标只是在这台机器上将 ruby​​ 从 v1.8.6 升级到 1.9.2。

我注意到很多人建议不要安装多用户,这就是为什么我还没有尝试过。是否建议我尝试多用户安装?如果没有,有人可以帮助我消除此证书问题吗?

提前致谢。

【问题讨论】:

  • 一堆解决方案here too,有什么帮助吗?
  • 将尝试从那里引用的The Haxx Page 获取 CA 证书。我会及时通知你:)

标签: ruby-on-rails ruby ubuntu rvm


【解决方案1】:

单用户。不过,您的问题不是 RVM,而是 CA 证书。

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

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

使用 apt 在 Ubuntu 上安装 ca 证书:

apt-get install ca-certificates

【讨论】:

  • 嗯。我没有 CA 证书,只有似乎是自签名的证书?蛇油证书,例如b14d9f7c -> ssl-cert-snakeoil.pem
  • 做到了。非常感谢。单用户安装成功。 :)。如果可以的话,我会赞成这个:/
【解决方案2】:

根据man curl这个问题是:

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

我猜您对上述文件的访问权限有疑问:

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

确保所有用户都可以阅读:

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

【讨论】:

  • 我根本没有那个文件,只有 /etc/ssl/certs/ 目录中的 ssl-cert-snakeoil.pem。猜猜这意味着我必须得到一个?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-01-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-06-13
相关资源
最近更新 更多