Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've managed to install Ruby and the gems install (rvm?) but now I'm stuck actually installing Ruby on Rails.

Every time I execute, gem install rails Terminal says that it's fetching each file and that it successfully installed it:

1 gem installed

However when I then run the rails command, I'm told that it's not installed and to run the gem install rails command again.

I've attempted to install with sudo but the same thing happens. I've restarted after an install and that's not worked.

Ideas?

share|improve this question
    
To help troubleshoot your install, please run the following commands in your terminal ($ is the terminal prompt): $ which rvm $ which ruby $ ruby -v $ gem list –  Jason Noble Jun 18 '12 at 14:01
    
check your $PATH environment variable. –  iMom0 Jun 18 '12 at 15:03
    
Do you see it in the gem list? –  Semyon Perepelitsa Jun 18 '12 at 16:58

1 Answer 1

First select the "global" RVM gemset by

rvm gemset use global

then install rails and other gems.

gem install rails

Now it works fine.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.