From: Volkan Civelek Date: 2007-04-21T00:55:58+09:00 Subject: Re: require doesn't load non-rb files --0-659554999-1177084543=:52557 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit well it doesn't have to be so... any ext other than rb repreduces the problem... krb, xyz, etc... but that besides the point, right? Arie Kusuma Atmaja wrote: Volkan Civelek wrote: > for the demo purpose, i made it dirt simple... > > $ cat app.so > p 'v' > $ cat foo.rb > require 'app.so' > p 'c' > $ ruby foo.rb > foo.rb:1:in `require': No such file to load -- app.so (LoadError) > from foo.rb:1 > > if you rename app.so to app.rb and change the require line accordingly, it works fine. > yes, btw why did you name it "app.so" when you knew it's a ruby script ? > -v > Nobuyoshi Nakada wrote: Hi, > > At Fri, 20 Apr 2007 15:13:12 +0900, > Volkan Civelek wrote in [ruby-talk:248525]: > >> ruby bar.rb gives "No such file to load" error.... >> > > What's the exact message? > > >> if you rename foo.so with foo.rb and modify bar.rb like require 'foo' or require 'foo.rb' >> it all just fine... >> > > What's that foo.so, an extension library or a ruby script? > > -- Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren / YM! = riyari3 http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby Let's build Ruby + Rails Indonesia stronger http://linkedin.com/in/ariekeren -voc --0-659554999-1177084543=:52557--