trouble installing RVM on a mac

回眸只為那壹抹淺笑 提交于 2019-12-12 09:39:09

问题


I am trying to set up a local Rails environment, and I am having issues with getting RVM installed.

Here is the error I get:

$ bash < <( curl http://rvm.io/releases/rvm-install-head )
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    136      0  0:00:01  0:00:01 --:--:--     0
bash: line 1: html: No such file or directory
bash: line 2: syntax error near unexpected token `<'
'ash: line 2: `<head><title>301 Moved Permanently</title></head>

The contents of my /usr/local folder are as follows:
bin          man
etc          mysql
hermes       mysql-5.1.56-osx10.5-x86_64
include      rvm
info         share
lib

I have some working knowledge of what's going on here, but help on what I'm missing or whether I'm approaching this the wrong way would be greatly appreciated.


回答1:


Use the new RVM installer for either user and/or root installs instead, it defaults to head.

user$ curl -L https://get.rvm.io | bash

Alternatively you can install the stable release like this:

user$ curl -L https://get.rvm.io | bash -s stable

RTFM material is located at https://rvm.io/rvm/install and https://rvm.io/rvm/basics




回答2:


On my Mac OS X 10.5.8 I had to use

bash < <(curl -Lks https://rvm.io/install/rvm) or it failed silently.

The -s switch by itself absolutely does not work. Fails silently.

It's annoying when people answer with the generic info anyone can find at the RVM site. Please try to actually answer this when you've actually succeeded in installing ON A MAC.

Matt if my fix does not work for you then would you let us know? Thanks.




回答3:


On mac 10.5 I had to run this command $ echo insecure >> ~/.curlrc followed by this $ bash -s stable < <(curl -Lks --insecure https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) I hope this is helpful to someone out there.




回答4:


You are missing the -s option to curl.

bash < <(curl -s https://rvm.io/releases/rvm-install-head )


来源:https://stackoverflow.com/questions/5639241/trouble-installing-rvm-on-a-mac

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