I am getting errors that rubygems cannot be found, when starting
rails-related ruby commands.

when I run

ls -l `which ruby`

and

cat `which gem` | head -n 1

I get the same directory which is also list in 'gem env'.

somehow ruby does not know where rubygems is.
but if I run it under irb:

irb(main):001:0> require 'rubygems'
=> true

I'm not sure where the missing link is.
I am running on osx here.

Any help much appreciated.
Thanks
-- 
Posted via http://www.ruby-forum.com/.