views:

92

answers:

1

I'm newly switched over to the mac. I installed Passenger today. I installed the Passender preferences pane tool which required RubyCocoa. Now script/console won't run. The error message is:

no such file to load -- rubygems

Prior to installing the passenger-related files this seems to have worked fine.

Any ideas?

 James
A: 

This has to do with installing Ruby Enterprise edition. The default gem installation path is where ever /usr/bin/ruby has it's library files.

So you'll need to install all of your gems again for REE.

Either run the version of gem that comes with REE /opt/local/bin/gem or provide an --install-dir option pointing to the REE lib/gems/1.8 directory.

As in:

$ /opt/bin/gem install gems

or

$ gem install --install-dir /opt/lib/gem/1.8 gems
EmFi
Thanks very much for your help. Looks like the situation was a little different. I inadvertently installed MacPort's Ruby. I've uninstalled MacPorts and reinstalled everything (except Ruby) and it looks like I'm back in business.
James Roscoe
Yeah, I just assumed REE because Passenger suggests it. Turns out the solution is still the same
EmFi