installing ruby on Ubuntu Gutsy

R

Robert Citek

Just wanted to post my notes on how I was able to install Ruby and Gem
on Ubuntu Gutsy:

$ sudo apt-get install ruby ruby1.8-examples rdoc ri libruby-extras rubygems

$ ruby -v
ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux]

$ gem -v
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

$ sudo ruby -i.bak \
-lne 'print "require \047rubygems/gem_runner\047" \
if /^require /; print' /usr/bin/gem

$ gem -v
1.0.1

$ sudo gem update --system

Thanks to these two posts:

http://www.ruby-forum.com/topic/136806#608707

http://www.nickpeters.net/2007/12/31/fix-for-uninitialized-constant-gemgemrunner-nameerror/

Regards,
- Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top