On Jun 4, 2006, at 20:35, 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 <snip> > require "curi" # can't find the file Others have already mentioned RUBYLIB, but let me note that the very myrubylib under site_ruby is *not* in $:. Thus, you'd need to specify the parent directoy as well: require 'myrubylib/curi' You load the core library smtp.rb as 'net/smtp' because of the same reason, smtp.rb lives in /usr/local/lib/ruby/1.8/net/smtp.rb and the directory in the load path there is /usr/local/lib/ruby/1.8. RUBYLIB is the canonical solution to that, but at least you know why your test is not working. -- fxn