I love Rails, but I’m beginning to think that there are some very
broken things about it. Case in point:
I’m on OS X, and at some point added rails using MacPorts, putting
most of my gems in /opt/local/lib/ruby/gems/1.8
when I add gems, they are added in that directory BUT
when I run (eg) rake tasks, the gems are not found. I’ve tried
ENV[‘GEM_PATH’] = ‘/opt/local/lib/ruby/gems/1.8’
to force the app to only look there, but it still doesn’t see them. I
get messages like
Missing these required gems:
ruby 220.127.116.11 at /System/Library/Frameworks/Ruby.framework/Versions/
rubygems 1.3.5 at /opt/local/lib/ruby/gems/1.8, /Library/Ruby/Gems/
rake gems:install to install the missing gems.
Which I do, using sudo, and everything seems to go fine, but when I
run rake again, they aren’t seen.
Where am I going wrong? What is wrong with Rails that this can’t be
configured simply? What is wrong with me that I can’t figure this out?