RVM安装错误

RVM安装错误

尝试启动 rails 环境,但不起作用。我正在关注安装节指南在这里。步骤 1 和 2 有效;但是,curl -L get.rvm.io | bash -s stable终端命令为我提供了

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0curl: (77) error setting certificate verify locations:
  CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
XXX@XXX:~$ source ~/.rvm/scripts/rvm
-bash: /home/flyveren/.rvm/scripts/rvm: No such file or directory
XXX@XXX:~$ \curl -sSL https://get.rvm.io | bash -s stable
curl: (77) error setting certificate verify locations:
  CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none

接下来,type rvm | head -1将给出输出-bash: type: rvm: not found,表示安装根本不起作用。

这些步骤看起来很简单,但有些事情非常不对劲......

Ubuntu 14.04,Gnome 3 环境

答案1

万一其他人来到这里,更新也无济于事,那么关联帮我解决了这个问题。显然这是一个路径问题。

因此,引用链接中的答案,只需创建一个~/.curlrc文件并将其放入文件中:

capath=/etc/ssl/certs/
cacert=/etc/ssl/certs/ca-certificates.crt

答案2

好吧,确实sudo apt-get update && sudo apt-get upgrade成功了,但是看起来一些 SSL 证书不是最新的,所以出现了错误。

相关内容