My install of RVM on a Ubuntu 8.04.4 machine fails. Should I install it as multi-user instead?

独自空忆成欢 提交于 2019-12-11 09:25:38

问题


I am currently attempting to install RVM on an Ubuntu server using version 8.04.4.

At the moment I am a attempting a single user install. I am the only person who administers this machine and I am still pretty noobish at this. I am currently following he installations guide on the RVM site and added the 'k' flag to the curl command. The complaints about the certificate still do not go away.

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

My ultimate goal is merely to upgrade ruby from v1.8.6 to 1.9.2 on this machine.

I've noticed many people recommending against a multi-user installation which is why I have yet to attempt it. Is it recommended that I try a multi-user installation? If not can someone assist me in eradicating this certificate issue?

Thanks in advance.


回答1:


Do it single user. Your problem isn't RVM though -- it's the CA certs.

Read this link and make sure your SSL is up to date, and you have installed the CA certs:

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

To install ca certs on Ubuntu using apt:

apt-get install ca-certificates



回答2:


according to man curl this problem is:

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

I guess you have sissues with access rights to the mentioned file:

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

make sure is readable for all users:

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


来源:https://stackoverflow.com/questions/10003329/my-install-of-rvm-on-a-ubuntu-8-04-4-machine-fails-should-i-install-it-as-multi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!