Hi,
I’ve got a strange problem. I had initially installed Rails using Tony
Arnold’s package:
http://www.tonyarnold.com/articles/category/rails
and that worked fine. (on OS X, obviously). I then decided to
reinstall using the instructions on the HiveLogic page, to get Ruby
1.8.4:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger
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
/usr/local/lib directory.
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:
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
require__': No such file to load -- initializer (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
require’
from ./script/…/config/boot.rb:14
from script/server:2:in `require’
from script/server:2
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?
Thanks!
jt