Elliot Temple wrote: > I'm on OS X 10.4.6 > > i want to be able to require my files without the full path. i want to > keep them in my home directory so i don't lose them. i tried: > > sudo ln -s /Users/curi/me/rubylib /usr/local/lib/ruby/site_ruby/myrubylib > > it made the link. observe: > > curi-g5:/usr/local/lib/ruby/site_ruby curi$ cd myrubylib > curi-g5:/usr/local/lib/ruby/site_ruby/myrubylib curi$ ls > curi.rb > > however: > > require "curi" # can't find the file > > require "/Users/curi/me/rubylib/curi" # this works > require "/usr/local/lib/ruby/site_ruby/myrubylib/curi" # this works too > > not sure what i'm doing wrong or how to do this properly.. > > BTW: > > curi-g5:/usr/local/lib/ruby/site_ruby curi$ ruby -e "puts $:" > /usr/local/lib/ruby/site_ruby/1.8 > /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.5.0 > /usr/local/lib/ruby/site_ruby > /usr/local/lib/ruby/1.8 > /usr/local/lib/ruby/1.8/powerpc-darwin8.5.0 > . > > > -- Elliot Temple > http://www.curi.us/blog/ > > > > Might it be simpler for you to just add your home directory to Ruby's search path by using the RUBYLIB environment variable? export RUBYLIB=/Users/curi/me/rubylib