On 27.12.2009 05:50, Rajinder Y. wrote:
How did you remove Ruby? Using apt-get? Which options? Or by other means?
sudo aptitude remove ruby
Right, I’m a little foggy here (It’s been a while since I last touched
any from of *NIX).
However, it seems that you now have a rather curious state for your
For one, Ruby is split into several packages (ruby, irb, ruby-dev,
libruby, ri; off the top of my head), and a couple of Ruby packages
exit, too, most famously RubyGems.
However, each distribution (more or less), tweaks their offered packages
to conform to the distribution’s file system layout.
These tweaks are not necessarily identical to what a build from source
So, it seems that your Ruby install is in an inconsistent state, where
Ruby, and RubyGems don’t “know” about each other, since they use
A solution would be to do a “sudo aptitude remove ruby*” to remove
anything the distro installed, re-do “sudo make install” in your Ruby
source directory, and then install RubyGems and your desired gems (it
might be enough to monitor the filesystem, and see which directories
“make install” and the RubyGems install create, and to copy your gems
into this new directory.
You remove compiled-Ruby with the hopefully existing “make uninstall”,
and then reinstall Ruby from Ubuntu’s repositories, and hope that fixes
everything (it should).
Aside: A tool I found handy when installing from source is Checkinstall:
http://checkinstall.izto.org/ allowing to introduce software compiled
from source to a distribution’s packet management system.