I’m trying to setup a Rails app on an Ubuntu machine, but the app always fails with the error:
Missing these required gems: roxml
the gem is installed, and appears in gem list
. The app requires a number of other gems all of which I installed without any problems, but for some reason it doesn’t recognise that roxml is there.
I tried clearing out my whole ruby/rails/gem setup and starting afresh with rvm, but having gone through the process, installing all the required gems (including roxml), I’m left with the same error once again.
The full error message is:
Missing these required gems: roxml You're running: ruby 1.8.7.334 at /home/tim/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby rubygems 1.6.2 at /home/tim/.rvm/gems/ree-1.8.7-2011.03, /home/tim/.rvm/gems/ree-1.8.7-2011.03@global
(Note: I’m using ruby enterprise edition with rvm now, but I had the same problem pre-rvm with the normal ruby 1.8.7 and rubygems both installed from the Ubuntu repos.)
I have the same app working on another Ubuntu box with the same versions of everything, so something has gone screwy on this machine somewhere along the line, but I’m unsure where to look. Any help appreciated!
I’d check two things. The first is roxml installed into RVM and not as a gem on the general system? You can check by running /home/$user/.rvm/bin/rvm gem list
The other gotcha is that gem list
in RVM will list gems for all installed versions of Ruby, not just the default or active Ruby. Make sure you have actually installed roxml into the Ruby you’re using.
Check more discussion of this question.