This is (hopefully) a basic question. I have ruby 1.8 installed on Ubuntu 12.04. This was an automatic install as the result of some dependency. I now need Ruby 1.9.3 for a class. Running:
apt-cache rdepends ruby1.8
produces a long list of packages. How do I install Ruby 1.9.3 without damaging packages that might depend on 1.8?