Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.