From: michael greenly Date: 2007-12-28T14:40:52+09:00 Subject: Re: Gem problem installing Rails / Ubuntu Gutsy ------=_Part_16669_680074.1198820454919 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline It really shouldn't be a problem to start over. Find all the ruby packages installed with $> dpkg -l | grep -i ruby Then remove each of them $> sudo apt-get remove --purge ruby rdoc rubygems rails (etc...) Then reinstall. These days I'm really not sure what to recommend to people in terms of how to install ruby and gems on ubuntu. Usually I run my production machines with Ruby and Gems from apt and Rails from Gems. Which would require something like.... $> sudo apt-get install ruby rdoc ri ruby-extras ruby-gems $> sudo gem install rails Doing it from source (especially if it's a development machine) is really easy also. The trick in Ubuntu is to use apt to install all the dependencies before building the source package. So you'd do something like... $> sudo apt-get build-dep ruby rdoc ri ruby-extras ruby-gems Then download and install the source packages. The same trick works with the database gems. If your going to install the mysql, postgres or sqlite gem install their coresponding apt package dependencies first, then the gem $> sudo apt-get build-dep libmysql-ruby1.8 libsqlite3-ruby1.8 libpgsql-ruby1.8 $> gem install mysql sqlite postgres I just made a blog post about running all three side by side that may help also. http://blog.michaelgreenly.com/2007/12/multiple-ruby-version-on-ubuntu.html Jesse Crockett wrote: > > Whoa. I am confused. Thanks so much for helping, but nothing seems to > work. I had a similar problem with MySQL, and it turned out all I had > to do was reboot. > > this is all i can think to do: whereis zlib > zlib: /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz > > Say I want to start from scratch. Can this be done without a fresh OS > install? > > -- > Posted via http://www.ruby-forum.com/. > > -- Michael Greenly http://blog.michaelgreenly.com ------=_Part_16669_680074.1198820454919--