Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Installing Rails on Mac

Phuc Nguyen
Phuc Nguyen
9,958 Points

Cannot install Ruby 2.3.1

Hi Jay

I hit this error "Error running 'requirements_osx_brew_libs_install automake', " as I tried to install ruby 2.3.1. Could you please help me out? I'm using the latest macOS Sierra. I did tried to google a few places and tried a few things but there's no proper answer to this. Please see the detail of the notification in the text below.

Many thanks

Phuc

------> ERROR MESSAGE AFTER PASTING THE COMMAND "rvm install 2.3.1"

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.12/x86_64/ruby-2.3.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing requirements for osx.
Updating system.........
Installing required packages: automake...
Error running 'requirements_osx_brew_libs_install automake',
showing last 15 lines of /Users/nhp/.rvm/log/1489553146_ruby-2.3.1/package_install_automake.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/Homebrew/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/Homebrew/homebrew/wiki/Installation
++ case "$_system_version" in
++ return 1
Requirements installation failed with status: 1.
Jay McGavren
Jay McGavren
Treehouse Teacher

The output includes a suggestion to try running two commands:

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

Can you try those, and post the output here?

After that, per http://stackoverflow.com/questions/16473115/error-running-requirements-osx-brew-libs-install-on-mac-10-7, try running brew install automake. Then try running your rvm install command again.