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 Build a Simple Ruby on Rails Application Getting Started with Rails Generate a Rails Application

laurie gloge
laurie gloge
8,593 Points

Errors after installing Rails on Mac 0S Maverick

I used the command \curl -L https://get.rvm.io | bash -s stable --rails. The install worked but now I get warnings. When I go to run rvm use 2.1.1 as I follow along in Generate a Rails Application at 38sec into the video.

Warning! PATH is not properly set up, '/Users/myusername/.rvm/gems/ruby-2.1.1/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-2.1.1

3 Answers

Stone Preston
Stone Preston
42,016 Points

your PATH variable is probably not configured properly for rvm. try running

$ rvm get stable --auto-dotfiles

if that doesnt work open up your .bash_profile file in a text editor (im using sublime text 2) and see if rvm added anything to that file.

$ subl ~/.bash_profile

I have the following text in my bash_profile

source ~/.bashrc


[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
laurie gloge
laurie gloge
8,593 Points

Thanks so much. I reinstalling rails... following along here.. http://railsapps.github.io/installrubyonrails-mac.html

Here's where I think I went wrong... "You can install Rails directly into the global gemset. However, many developers prefer to keep the global gemset sparse and install Rails into project-specific gemsets, so each project has the appropriate version of Rails.

If you install Rails at this point, you will install it into the global gemset.

Instead, make a gemset just for the current stable release:

$ rvm use ruby-2.1.1@rails4.1 --create"

Waiting for it to finish and will see what happens.

laurie gloge
laurie gloge
8,593 Points

Success! I am back on track.