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 3424770
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:30:51+00:00 2026-05-18T06:30:51+00:00

After installing Ruby and Ruby Gems: $ sudo apt-get install ruby rubygems … $

  • 0

After installing Ruby and Ruby Gems:

$ sudo apt-get install ruby rubygems
...
$ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
$ gem -v
1.3.7

If I try to install Rails I get an error, and even though it seems to be the documentation only, rails isn’t installed:

$ sudo gem install rails
...
Successfully installed rails-3.0.1
24 gems installed
... 
Installing ri documentation for builder-2.1.2...
ERROR:  While generating documentation for builder-2.1.2
... MESSAGE:   Unhandled special: Special: type=17, text="<!-- HI -->"
... RDOC args: --ri --op /var/lib/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation
(continuing with the rest of the installation)
...
Installing ri documentation for rails-3.0.1...
File not found: lib

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

Ubuntu repositories only have Rails 2.3.5 so that isn’t an option.

How do I get Rails to install properly?

Update: I tried the following, no error this time, but still no success:

$ sudo gem install rails --no-rdoc --no-ri
Successfully installed rails-3.0.1
1 gem installed
$ rails -v
The program 'rails' is currently not installed...

Update 2: So, thanks to Maran and Jörg, I now know the problem is not that rails isn’t installed, but it’s not added to the PATH. This can be fixed by adding the following to ~/.bashrc:

export PATH=/var/lib/gems/1.8/bin:$PATH

That raises a further question: What should have added that to the PATH? Presumably the apt-get install rubygems? And what else may be broken?

  • 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-18T06:30:52+00:00Added an answer on May 18, 2026 at 6:30 am

    Ok, I hesitated to use rvm as it seemed to be aimed at solving problems I didn’t intend to have (multiple ruby versions? c’mon, I just want to play with rails…) and installing from source is generally something I want to avoid…

    Anyway, I gave in and followed along with http://rvm.beginrescueend.com/rvm/install/

    $ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
    

    Then (mostly suggested by the output of the above, but I needed to add libmysqlclient-dev):

    $ sudo aptitude install build-essential bison openssl libreadline5 \
                            libreadline5-dev curl git zlib1g zlib1g-dev \
                            libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 \
                            libxml2-dev libmysqlclient-dev
    

    Then I edited my .bashrc as required and opened a new terminal.

    $ rvm install 1.9.2
    $ rvm --default use 1.9.2
    $ ruby -v
    ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
    $ gem install rails
    $ rails -v
    Rails 3.0.1
    

    After creating a new project, I still had a few things to do to make it work:

    $ rails new myproject --database=mysql
    $ cd myproject
    $ emacs config/database.yml # set passwords
    $ bundle install
    $ rake db:create
    $ rails server
    

    And finally it all seems to be working. I hope that helps someone else, it certainly wasn’t a particularly pleasant intro to a framework. I’ve reordered the commands I actually entered to avoid double handling for anyone following along.

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

Sidebar

Related Questions

Some of my Ruby gems stopped working after installing Snow Leopard (OS X 10.6).
After installing rvm, updating .gmrc file, updating rubygems and running gem install rails -v
I didn't know that installing ruby is such a pain After lot of trouble
After installing gcc and mpich library in my linux I can compile my codes
After installing Dreamweaver CS6, the syntax highlighting of razor in visual studio 2010 removed
after installing XAMPP on linux i have seen the folder htdocs belongs to nobody.
I`m getting some troubles after installing in Windows 7 ruby 1.8.6, rails 2.3.8, some
After updating from ruby-1.8.7-p352 to ruby-1.8.7-p358 via rvm , gems are still installed to
After, reading and understanding Dan Benjamin's post about installing Ruby, Rails, etc. on OSX
After Installing Rails 3, I get the following error regarding Sqlite3 when I try

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.