Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Ruby on Ubuntu 10.10 using RVM, problem with gem

Tags:

ruby

ubuntu

rvm

gem

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

like image 695
Allen Bargi Avatar asked Oct 13 '10 23:10

Allen Bargi


People also ask

Where is RVM located?

The rostral ventromedial medulla (RVM), or ventromedial nucleus of the spinal cord, is a group of neurons located close to the midline on the floor of the medulla oblongata (myelencephalon).

Can I use RVM on Windows?

RVM supports most UNIX like systems and Windows (with Cygwin or Bash on Ubuntu on Windows). The basic requirements are bash , curl , gpg2 and overall GNU version of tools - but RVM tries to autodetect it and install anything that is needed.


1 Answers

When using rvm you can simple do steps that are shown here: link text

$ rvm pkg install zlib (or, older format, rvm package install zlib )

$ rvm remove 1.9.2
$ rvm install 1.9.2 --with-zlib-dir=~/.rvm/usr
like image 152
qmmr Avatar answered Sep 30 '22 02:09

qmmr