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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:46:30+00:00 2026-06-14T00:46:30+00:00

I am attempting to install RoR on my Lubuntu box just setup today, I

  • 0

I am attempting to install RoR on my Lubuntu box just setup today, I have installed all of the rvm requirements installed Ruby. When I go to install rails I keep getting this error.

Running the command sudo gem install rails -V it looks like it’s trying to pull source for ruby 1.9.1 but I have 1.9.2 and then it fails out cannot load such file –mkmf (LoadError).

Any help would be much appreciated, this is my first adventure into Ruby so this is my first setup. Ask any questions and I will answer.

enter image description here

  • 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-06-14T00:46:31+00:00Added an answer on June 14, 2026 at 12:46 am

    First, you need some RVM preinstallations, open terminal and type:

    $> sudo apt-get install curl git ruby1.8
    

    Then download and install RVM itself:

    $> curl -L get.rvm.io | bash -s stable
    

    After installing is done, load RVM:

    $> source ~/.rvm/scripts/rvm
    

    To check that RVM is installed as a function, type:

    $> type rvm | head -1
    
    (it should output "rvm is a function")
    

    In order to work, RVM has some of it’s own dependencies that need to be installed. You can see what these are using:

    $> rvm requirements
    

    For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the following:

    $> sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
    

    Once you are using RVM, installing Ruby is easy:

    $> rvm install 1.9.3
    

    In newer version of Rails, you also need a Javascript runtime, so:

    $> sudo apt-add-repository ppa:chris-lea/node.js
    $> sudo apt-get update
    $> sudo apt-get install nodejs
    

    We can continue to use RVM to install gems:

    $> rvm rubygems current
    

    Once everything is set up, it is time to install Rails:

    $> gem install rails
    

    P.S.

    Postinstall & Troubleshooting.

    When we disable GNOME Terminal’s “Run command as login shell”, rvm unable to load as a function, so typing:

    $> type rvm | head -1
    

    outputs something like “rvm is /home/mercurial/.rvm/bin/rvm”.

    In order fix this, edit ~/.bashrc and add the following line in the end of file:

    [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to install Ruby with RVM. I already have Ruby installed, but
I'm attempting to install Weka, which I have installed into /weka directory. I set
I have installed Concrete 5.5.2.1 and i'm now attempting to install a theme I
I am attempting to install Ruby 1.9.3 on Mac OS X Lion, same method
I'm attempting to install ace-jump-mode for emacs 24.1.50.1. I've installed it with M-x package-install,
I'm attempting to install the PIL library in an Virtual Enviroment that I have
I am attempting to install libxml2 so that I can setup the python bindings
I have been attempting to install MySQL 5.1.59 from source for the last couple
Attempting to install ruby 1.9.3 on OSX Lion 10.7.3. During the install I received
I am attempting to install the librets library. I can use rvm to switch

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.