Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing any ruby version with RVM on OSX

Tags:

Guys I'm about to kill myself with this one!

I had some problems with RVM installing multiple versions of Ruby, and following a thread on Stackoverflow I decided to remove it completely. After reinstalling RVM, I am unable to install any Ruby version at all.

  • Mac OS X
  • RVM 1.20.10 stable
  • Homebrew 0.9.4

Here are some logs:

rvm install 2.0.0-p0

or:

rvm install 2.0.0-p195 --autolibs=enabled

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Already up-to-date.
Installing required packages: autoconf, automake, libtool, pkg-config, libyaml, readline, libxml2, libxslt, libksba, openssl…
Error running 'requirements_osx_brew_libs_install autoconf automake libtool pkg-config libyaml readline libxml2 libxslt libksba openssl',
please read /Users/admin/.rvm/log/ruby-2.0.0-p0/1368903329_package_install_autoconf_automake_libtool_pkg-config_libyaml_readline_libxml2_libxslt_libksba_openssl.log

Logfile reads:

[2013-05-18 22:55:29] requirements_osx_brew_libs_install
Error: No such keg: /usr/local/Cellar/autoconf
There were package installation errors, make sure to read the log.
Check Homebrew requirements github.com/mxcl/homebrew/wiki/Installation

brew doctor

Your system is ready to brew.

brew cleanup

Removing: /Library/Caches/Homebrew/automake-1.13.1.tar.gz…
Error: Permission denied — /Library/Caches/Homebrew/automake-1.13.1.tar.gz

brew reinstall autoconf

Error: No such keg: /usr/local/Cellar/autoconf

Help!

like image 220
The Whiz of Oz Avatar asked May 19 '13 08:05

The Whiz of Oz


People also ask

Does RVM work on Mac?

Installing RVM and Ruby The RVM install page has comprehensive instructions for installing RVM that work on Mac OS X. I'll provide the steps I used here. I've listed the mapis public key install command here for illustration. You should use the version on the RVM install page.


2 Answers

I ran into the same issue, you need to manually install all the required packages using Brew. For me I had to run the following installs:

brew install autoconf
brew install automake
brew install libtool
brew install apple-gcc42
brew install libyaml
brew install libxslt
brew install libksba
brew install openssl

You just need to keep running "rvm requirements" and reading the log and installing the packages needed until there are no more errors.

like image 152
rlorenzo Avatar answered Nov 03 '22 09:11

rlorenzo


After installing RVM, You'll want to run

rvm requirements

to see if anything else is required to install ruby and rails first.

here is the similar question asked rvm install ruby

like image 24
fengd Avatar answered Nov 03 '22 07:11

fengd