Forum: Ruby on Rails possible to set gems path?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9e3f8e701b4f3a01dca1dc694ed2c215?d=identicon&s=25 Johnny Sainz (johnny)
on 2009-01-31 12:50
(Received via mailing list)
I've installed ruby and rubygems on leopard. when i install a gem
successfully and run require "gemname" in irb it fails:

irb(main):001:0> require "P4"
LoadError: no such file to load -- P4
  from (irb):1:in `require'
  from (irb):1
irb(main):002:0>

Yet here it is installed:
>gem which P4
(checking gem p4ruby-1.0.7 for P4)
/usr/local/lib/ruby/gems/1.8/gems/p4ruby-1.0.7/lib/P4.rb

Should I set an env var? If so, which and where?

-Johnny
This topic is locked and can not be replied to.