45

Here is the last thing I saw before the command prompt:

Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.1.tar.bz2
Checking requirements for osx.
About to install Homebrew, press `Enter` for default installation in `/usr/local`,
type new path if you wish custom Homebrew installation (the path needs to be writable for user)
: Requirements installation failed with status: 1.

I don't think it made it to the point that I could press Enter

Marcelo De Polli
  • 28,123
  • 4
  • 37
  • 47
Drewdavid
  • 3,071
  • 7
  • 29
  • 53
  • 2
    Since it stopped at the Homebrew installation, did you try installing Homebrew separately? Or perhaps you have a broken previous Homebrew installation? – Marcelo De Polli Apr 01 '14 at 04:29
  • Hi, I'm not sure if I have homebrew; I've tried using some homebrew commands but none of them did anything "command not found" – Drewdavid Apr 02 '14 at 02:14
  • OK, then go over to the Homebrew website at this URL: http://brew.sh/#install and do what the "Install Homebrew" part tells you to do. – Marcelo De Polli Apr 02 '14 at 12:44

5 Answers5

123

If anyone else encounters this particular "status: 1" error (I know a number of people have received this, but it seems for different reasons)... I can confirm depa's comment and will add to it to create an answer to the question:

I just had to install Homebrew myself using the command from brew.sh:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then when I ran the RVM install command again it worked fine.

It seems RVM had a problem installing Homebrew on my machine for some reason.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Drewdavid
  • 3,071
  • 7
  • 29
  • 53
  • 8
    Thanks for this. The rvm homepage was totally unhelpful in this matter. I am trying to update ruby on an oldish Mac and IMO this procedure is one of the worst experiences I've had in a long time. What is homebrew? Why do I need it? I love Ruby as a language but this amount of faffing about is beyond a joke. – Echelon May 21 '14 at 08:33
  • 1
    That was super easy. Thanks for saving me from hours of yelling at the terminal. – Zlatty Nov 21 '14 at 22:40
  • 1
    getting curl: (22) The requested URL returned error: 404 – Hugo Jun 26 '23 at 12:19
4

Just ran Drewdavid's command and received the following:

Whoops, the Homebrew installer has moved! Please instead run:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Also, please ask wherever you got this link from to update it to the above.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
zardoz
  • 41
  • 1
2

For people deploying on Amazon Server or on linux needs to use

sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"

Followed by brew install gcc , then Restart your system(logout and log in) and then rvm install ruby -version

Aman Relan
  • 373
  • 1
  • 2
  • 12
1

I opened Xcode manually and OK'd the license agreement to get it working properly.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Jason Stokes
  • 707
  • 2
  • 6
  • 23
0

I just went to: https://developer.apple.com/download/more/?=for%20Xcode and installed the latest Command line tools and retried the install and it worked.

yahya
  • 101
  • 1
  • 4