I’ve got a strange problem. I had initially installed Rails using Tony
and that worked fine. (on OS X, obviously). I then decided to
reinstall using the instructions on the HiveLogic page, to get Ruby
That seemed to go well - I had everything installed. The one thing I
did, since Tony included a bunch of gems with his package, was to copy
the gems to the new /usr/local/lib directory:
/usr/lib/ruby/gems/1.8/* -> /usr/local/lib/ruby/gems
I’m able to create a new rails app and run it with script/server and
lighttpd starts up.
However. I was playing with a Rails app - Tracks - and tried to run
it, but it would not start up. I found that I had to remove the
lighttpd.conf file and let it be recreated. I then noticed that it was
being copied from my /usr/lib/ruby/gems… directory… not the
So… I tried removing all the gems from /usr/lib… (my path is set
correctly to use /usr/local/bin first).
Now… when I try to start the server, I’m getting an error:
require__': No such file to load -- initializer (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire’
from script/server:2:in `require’
But ONLY in the existing Tracks app folder. Starting from a new rails
app folder correctly runs (and will copy the lighttpd.conf file from
the /usr/local/lib… directory.)
Somewhere in the old tracks app folder it’s still referring to the
(now non-existant) /usr/lib/ruby/… stuff… and I can’t find it!
Does anyone have some insight? Please?