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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:45:52+00:00 2026-05-15T02:45:52+00:00

I am on Ubuntu10 sudo apt-get install ruby1.9.1-full then download sources of rubygem 1.3.7

  • 0

I am on Ubuntu10

sudo apt-get install ruby1.9.1-full

then download sources of rubygem 1.3.7 and install it

sudo ruby setup.rb

then, for example, install sinatra

sudo gem install sinatra

Finally open irb and type

require "rubygems"
require "sinatra"

and get error

LoadError: no such file to load -- sinatra
    from (irb):2:in `require'
    from (irb):2
    from /usr/bin/irb:12:in `<main>'
  • 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-15T02:45:52+00:00Added an answer on May 15, 2026 at 2:45 am

    I had exactly this problem. The problem is that gem and ruby disagree about where the gems live. Compare these:

    ruby -e "puts Gem.path"
    
    gem env
    
    gem which sinatra
    

    If you’re like my setup, you’ll notice that there’s an entry in gem env’s paths that isn’t in Gem.path, and that’s exactly where sinatra will claim to be. In my case, I had to add

    export GEM_HOME=/usr/lib/ruby/gems/1.9.1
    

    to my .profile. Then everyone was happy.

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

Sidebar

Related Questions

I installed gitosis on my Ubuntu 10.4 Server via apt-get install gitosis Then I
I want to learn python, so I get python3.2.2 and install it on ubuntu10
$ sudo pip install bottle Downloading/unpacking bottle Downloading bottle-0.10.7.tar.gz (55Kb): 55Kb downloaded Running setup.py
I'm running ubuntu 10.04 and have installed php5 via the following: sudo aptitude install
I'm trying to run a Ruby application that requires Sinatra within Ubuntu 10.10. I'm
Working with Ubuntu 10.10 ... When installing WebSVN via apt-get with the following command:
I'm trying to install setproctitle. I've tried just downloading the package and using setup.py
Trying to get Rails up on ubuntu, and I’m having trouble installing sqlite3-ruby –
I'm trying to install Ruby on Rails and I was using SSH to login
I'm trying to install rails on Ubuntu 10.10, but get File not found: lib

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.