On 10/9/06, ara.t.howard / noaa.gov <ara.t.howard / noaa.gov> wrote:

>    this = File.dirname __FILE__
>    archdir = File.join this, arch
>
>    lib = File.join archdir, "foo.#{ dlext }"
>    require lib

The problem is that __FILE__ only has the file name, not the path, so

File.dirname(__FILE__) => '.'

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/