I’ve previously installed ruby 1.8.7 on my system. Some time late I installed rvm. Since then there’s a giant mess. For example trying to bring up a Sinatra server results in:
/home/yoni/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rack (>= 0) amongst [bundler-1.1.3, faraday-0.8.4, koala-1.5.0, multi_json-1.3.6, multipart-post-1.1.5, rake-0.9.2.2, rubygems-bundler-0.9.0, rvm-1.11.3.3] (Gem::LoadError)
I know this is the result of having two ruby installations and therefore two location for gem files but I’m not sure how to fix this. I don’t mind removing ruby 1.8.7 entirely, but I’d like to do it without breaking anything.
Any ideas?
Update: result of dpkg --get-selections | grep ruby is:
libdataobjects-mysql-ruby1.8 install
libdataobjects-postgres-ruby1.8 install
libdataobjects-ruby1.8 install
libdataobjects-sqlite3-ruby1.8 install
libdbd-mysql-ruby install
libdbd-mysql-ruby1.8 install
libdbd-sqlite3-ruby1.8 install
libdbi-ruby1.8 install
libdeprecated-ruby1.8 install
libmysql-ruby install
libmysql-ruby1.8 install
libopenssl-ruby install
libopenssl-ruby1.8 install
libruby1.8 install
libruby1.9.1 deinstall
libsqlite3-ruby install
libsqlite3-ruby1.8 install
ruby-dev install
ruby1.8-dev install
from all of the things that show up from
dkpg --list | grep rubythat are not on the list below:From
rvm requirementsIf it isn’t possible from CLI, use synaptic package manager:
https://help.ubuntu.com/community/SynapticHowto