当我尝试使用命令安装 rvm 时 ::(我正在使用 UBUNTU 12.04 LTS)
curl -L https://get.rvm.io | bash -s
当我尝试与简单用户相同的命令时,我收到类似的错误
abhay@Abhay:~/Downloads$ curl -L https://get.rvm.io |sudo bash -s
curl: (1) Protocol https not supported or disabled in libcurl
这是我的 curl 安装的两条路径
abhay@Abhay:~$ which -a curl
/home/abhay/bin/curl
/usr/local/bin/curl
这是我仍然得到的错误
root@Abhay:/home/abhay# curl -L https://get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 33 0 0:00:05 0:00:05 --:--:-- 61
100 13774 100 13774 0 0 1271 0 0:00:10 0:00:10 --:--:-- 3214
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 37 0 0:00:03 0:00:03 --:--:-- 60
27 1079k 27 294k 0 0 5853 0 0:03:08 0:00:51 0:02:17 8245
curl: (18) transfer closed with 804285 bytes remaining to read
Could not download 'https://github.com/wayneeseguin/rvm/archive/stable.tar.gz'.
curl returned status '18'.
还有这个
root@Abhay:/home/abhay# \curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 42 0 0:00:04 0:00:04 --:--:-- 70
100 13774 100 13774 0 0 1663 0 0:00:08 0:00:08 --:--:-- 4770
Turning on auto dotfiles mode.
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 42 0 0:00:02 0:00:02 --:--:-- 75
8 1079k 8 98109 0 0 3745 0 0:04:55 0:00:26 0:04:29 7132
Curl returned 141 - it is result of a segfault which means it's Curls fault.
Try again and if it crashes more than a couple of times you either need to
reinstall Curl or consult with your distribution manual and contact support.