DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

How To Avoid The Ubygems Load Error

  • submit to reddit
        If you install Ruby & RubyGems from scratch (like described <a href="">here</a> or <a href="">here</a>), beginning with:

sudo mv /usr/local/lib/ruby ~/Desktop

and at some point have to execute the command:

sudo /usr/local/bin/ruby setup.rb

... you may see an error message that says:

/usr/local/bin/ruby: no such file to load -- ubygems (LoadError)

This can be avoided by setting the RUBYLIB path variable to include the lib directory of the downloaded RubyGems version:

export GEM_HOME=/usr/local/lib/ruby/gems/1.8
export RUBYLIB=/usr/local/lib/ruby:/path/to/download/dir/rubygems-1.3.1/lib

sudo /usr/local/bin/ruby setup.rb


sudo mkdir -p /usr/local/lib/ruby/gems/1.8
sudo mkdir -p /usr/local/lib/ruby/site_ruby/1.8
export GEM_HOME=/usr/local/lib/ruby/gems/1.8
export RUBYLIB=/usr/local/lib/ruby:/usr/local/lib/ruby/site_ruby/1.8
sudo cp -R -p /path/to/download/dir/rubygems-1.3.1/lib/* /usr/local/lib/ruby/site_ruby/1.8

sudo /usr/local/bin/ruby setup.rb


Lucescu Lucescudsa replied on Wed, 2012/12/19 - 7:56pm

 I must say your article is astonishing. The clarity of it is simply amazing and no doubt you are a proficient in this field. If you allow me I will with please subscribe to your feed via my chat server to keep up to date with new post. jilbab serba murah harga grosir 

Snippets Manager replied on Tue, 2009/12/08 - 9:08pm

Snippets Manager replied on Wed, 2009/11/25 - 3:14am

Thank you for your sharing.! Bracelet Necklaces earrings Bracelets Fashion Jewelry necklace

Snippets Manager replied on Sat, 2009/11/21 - 4:29pm

If I were you I would share such kind of good enough article close to this good post using the article submission service.

Snippets Manager replied on Thu, 2009/11/19 - 7:42pm

The life time is very unpredictable and humen live life very good and are trying to get know referring to this good post. So you know that the online writing jobs would support everybody in that.

Snippets Manager replied on Sat, 2009/11/21 - 4:29pm

If you need to grab a great paper all about this topic you can use check for plagiarism, and i'll advise you to check it in ! unlike those services, they suggest excellent quality guaranty that your work is dump of plagiarism. I want buy a term paper choosing the plagiarism detection. They will give you an accurate plagiarism detection reporting without any delay.

Snippets Manager replied on Wed, 2009/09/09 - 9:04am

Nice article. The code works fine and is a good starting point for me making a custom module. Thanks for the module... cheap generic viagra | tadalafil

Snippets Manager replied on Thu, 2009/11/19 - 7:42pm

A lot people give the responsibility to qualified resume writers because they lack the ability to compose a good resume so that the cause why students need to resume writing service, but such guys like writer don't do that. Thanks a lot for the article. Very useful information about this good post.

Snippets Manager replied on Mon, 2009/04/13 - 2:10pm

Thanks for the great resources! Sean Real Estate License

Snippets Manager replied on Mon, 2009/02/02 - 12:45pm

Hey, thanks so much for the help. I was trying to run this myself but kept getting an error when the command would run, apparently it wasn't executing properly, seems to be fixed now! Jesdon real estate jobs

Snippets Manager replied on Wed, 2008/12/10 - 12:55pm

Snippets@DZone saves the day again, thanks for this heads up. I would have been running in circles otherwise. Glenn Cheap Vegas Flights

Snippets Manager replied on Sun, 2008/11/23 - 8:50pm

Unfortunately magic_quotes_gpc can not be changed at run-time, but here's a code block which will effectively get rid of it when executed. Use this for PHP scripts which must be portable or run on servers where magic_quotes_gpc could be configured either way. ----------------- williamgeorge Friends Dating