On Oct 5, 7:39 pm, omnivore <danfdonald...@gmail.com> wrote:
> 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
> using
>
> 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:
>   rmagick
>   authlogic
>
> You're running:
>   ruby 1.8.7.174 at /System/Library/Frameworks/Ruby.framework/Versions/
> 1.8/usr/bin/ruby
>   rubygems 1.3.5 at /opt/local/lib/ruby/gems/1.8, /Library/Ruby/Gems/
> 1.8
>
> Run `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?

You have 2 ruby installs (one in /opt and one in /lib) and you are
installing gems into one install but then running rake from the other
one. You could either get rid of one of the installs or make sure that
your /opt ruby has rake installed and that $PATH is such that ruby/
rake/gem are all picked from the same ruby install.

Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to