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

  • Home
  • SEARCH
  • 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 Ruby 1.8.7 through apt-get. I then installed 1.9.1 through RVM. The RVM
I installed Ruby and Ruby on Rails yesterday on Vista 32bit using the directions
So I installed Ruby On Rails using the Windows Installer. Now the startup guides
I'm having significant trouble installing Ruby on Rails. I installed Ruby with apt-get When
I got the ruby sources from the official git mirror , then checked out
New to RVM and playing with Rails 3 & Ruby 1.9.2 betas... I've got
I installed ActiveReports from their site. The version was labeled as .NET 2.0 build
I have rvm installed on a Mac OS X 10.6 system with the system
I'm trying to get Ruby on Rails setup on my new eeeubuntu install and
The SciTE editor comes with the Ruby installer, and it's just a generic code

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.