0

当我尝试使用命令安装 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.
4

2 回答 2

1

你的系统似乎坏了,在构建二进制红宝石和http://travis-ci.org

我建议您删除此系统并开始全新安装而不进行任何自定义。

于 2013-07-19T20:59:33.433 回答
0

/home/abhay/bin/curl从 PATH 中删除:

function remove_from_path()
{
  if
    [[ -n "$1" ]]
  then
    export PATH
    PATH=":${PATH}:"
    PATH="${PATH//:$1:/:}"
    PATH="${PATH//::/:}"
    PATH="${PATH#:}"
    PATH="${PATH%:}"
  fi
}
remove_from_path /home/abhay/bin
于 2013-07-19T17:29:09.640 回答