Alex Rivera | Logout

Installing Ruby on Ubuntu 10.10 using RVM, problem with gem

Asked 2010-10-13T23:48:02.700
15

I've decided to start fresh with ubuntu 10.10. I started with installing git and then installing rvm from the git repo. everything worked fine and I compiled and install ruby 1.8.7 and ruby 1.9.2
the gem is also installed and I run gem -v
but when run gem list or gem install rake I get the following error

ERROR:  Loading command: list (LoadError)
no such file to load -- zlib
ERROR:  While executing gem ... (NameError)
uninitialized constant Gem::Commands::ListCommand

any idea how to solve this issue? I also tried sudo apt-get install zlib1g zlib1g-dev build-essential libpq-dev with no luck

Edit
Report

1 Answer

7

Or if using rvm, just re-install the ruby version once you have zlib1g-dev installed.

answered 2010-10-23T18:42:21.550

Your Answer