Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4541946
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:19:02+00:00 2026-05-21T15:19:02+00:00

I installed Ruby and then RVM, and then configured Rails. It all works when

  • 0

I installed Ruby and then RVM, and then configured Rails.

It all works when I call it from the original terminal. But when I try to call various commands from new terminals, the system just gives an error message such as this one:

$rails server
The program 'rails' is currently not installed.  You can install it by typing:
sudo apt-get install rails

Why does that happen? Is there some global variable which needs to be set? I am using Ubuntu by the way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:19:03+00:00Added an answer on May 21, 2026 at 3:19 pm

    Example of how/where gems are installed:

    rvm use 1.8.7
    ruby -v           # 1.8.7 returned
    rvm gemdir        # some directory returned 
    gem install rails # (installed to the directory returned by `rvm gemdir` in 1.8.7)
    rails -v          # some version returned 
    
    rvm use 1.9.2
    ruby -v           # 1.9.2 returned
    rvm gemdir        # some directory returned 
    rails -v          # Error if not installed, else version is shown
    gem install rails # (installed to the directory returned by `rvm gemdir` in 1.9.2)
    rails -v          # some version returned 
    

    Now, the Rails gem is now installed in 2 directories (1 for each of the Ruby versions)

    Now in order to set a default version of Ruby (instead of typing rvm use every time you open a terminal), you can run:

    rvm use 1.9.2 --default  
    

    See the documentation for more information about default.

    Some other commands:

    • Default ruby rvm list default
    • All Rubies: rvm list

    Also note do not use sudo with RVM!

    Hope that clears things up!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed rvm and then ruby 1.9.2 but every time I close my terminal
I installed Ruby 1.9.3 with RVM, and it works fine. I then made some
I installed Ruby 1.8.7 through apt-get. I then installed 1.9.1 through RVM. The RVM
I had already installed rails 1.8.7, forgot about it, then installed 1.9.3 through RVM.
I'm trying to install Ruby on rails, so first I installed RVM rvm install
I installed Ruby 1.9.2 using homebrew, then installed RVM. I want to point RVM
I installed Ruby 1.9.2. I used rvm use 1.9.2 and then when I type
I am trying to install Ruby 1.9.3 but am having problems. I installed RVM,
Okay, so I installed rvm and everything as root. Then I installed Ruby Enterprise
I installed RVM, then used it to install ruby-1.9.2 and then used rubygems to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.