user3594886
user3594886

Reputation: 1

Installing Ruby 1.8.7 on Mac Os C 10.9.2

I need to install ruby 1.8.7 on Mac Os x 10.9. I have run into several problems and have not found the answer. I have X code 5.1.1 and command line tools installed. What ever I do, I always get this same error message:

$ rvm install 1.8.7
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.9/x86_64/ruby-1.8.7-p374.
It is not possible to build movable binaries for rubies 1.8-1.9.2, but you can do it for        your system only.
Continuing with compilation. Please read 'rvm help mount' to get more information on     binary rubies.
Checking requirements for osx_brew.
Installing requirements for osx_brew.
Updating system....
Installing required packages: autoconf, automake, libtool, pkg-config, gcc46, libyaml, readline, libksba, openssl098...
Error running 'requirements_osx_brew_libs_install autoconf automake libtool pkg-config gcc46 libyaml readline libksba openssl098',
showing last 15 lines of /Users/elisabethwork/.rvm/log/1399001508_ruby-1.8.7-p374/package_install_autoconf_automake_libtool_pkg-config_gcc46_libyaml_readline_libksba_openssl098.log
++ case "$1" in
++ [[ -t 1 ]]
++ return 1
++ printf %b 'There were package installation errors, make sure to read the log.

Try `brew tap --repair` and make sure `brew doctor` looks reasonable.

Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation\n'
There were package installation errors, make sure to read the log.

Try `brew tap --repair` and make sure `brew doctor` looks reasonable.

Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation
++ case "$_system_version" in
++ return 1
Requirements installation failed with status: 1.

$ brew doctor

Your system is ready to brew.

Can you help me? Thank you!

Upvotes: 0

Views: 1794

Answers (2)

zinking
zinking

Reputation: 5685

for my case. I previously installed the autoconf libtool module myself and home-brew want to override that. so you have to manually tell brew that.

brew link --overwrite autoconf
...

you should run brew doctor and spend sometime read keywords like: error,build

Upvotes: 0

mipmip
mipmip

Reputation: 1160

See this bash script which lets you switch between 1.8.7 en 2.0. No RVM, brew or other extra software needed: https://gist.github.com/mipmip/7cfbadfcfa5fabe0ba84

Upvotes: 1

Related Questions