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 Ruby Foundations Ruby Basics Installing Ruby

Installing RVM

Hello everyone,

I am almost done with the "installing ruby" video but not i am stuck. When ask to enter "rvm install 1.9.3" in the terminal, I get this:

~ cyrusghazanfar$ rvm install 1.9.3 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.7/x86_64/ruby-1.9.3-p484. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. cyrusghazanfar password required for 'rm -f /usr/share/xcode-select/xcode_dir_path':

i then entered my password and this happened:

Checking requirements for osx. Installing requirements for osx. Updating system. Installing required packages: autoconf, automake, libtool, pkg-config, libyaml, readline, libksba, openssl.............. dyld: Library not loaded: @@HOMEBREW_CELLAR@@/openssl/1.0.1f/lib/libssl.1.0.0.dylib Referenced from: /usr/local/opt/openssl/bin/openssl Reason: image not found Failed reading certificates path for '/usr/local/opt/openssl/bin/openssl' with return code: (). RVM autolibs is now configured with mode '2' => 'check and stop if missing', please run rvm autolibs enable to let RVM do its job or run and read rvm autolibs [help] or visit https://rvm.io/rvm/autolibs for more information. Requirements installation failed with status: 133.

I looked up some of the error messages and found people offering different solutions but It took me a while to correctly install ruby until this point so I don't want to mess things up.

Thank you in advance for you help!

Cyrus

1 Answer

Hi <em>Cyrus</em>. Your problem is you didn't install requirement packages for development invironment. You can follow these steps before you run rvm install 1.9.3

  1. sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison pkg-config

  2. curl -L https://get.rvm.io | bash -s stable

  3. source ~/.rvm/scripts/rvm

  4. rvm requirements