[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

installing ruby on Ubuntu Gutsy

Robert Citek

3/6/2008 4:03:00 AM

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/136...

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

Regards,
- Robert

1 Answer

Phlip

3/6/2008 4:25:00 AM

0

Robert Citek wrote:

> 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

k. Now install a gem that puts a new command into /usr/lib/ruby/gems/1.8/
bin, such as rake, and run it on a command line! (-;