From: Gregory Brown Date: 2007-05-26T10:06:17+09:00 Subject: Re: Ruby Libraries On 5/25/07, Ari Brown wrote: > > On May 25, 2007, at 8:24 PM, Chris Carter wrote: > > > On 5/25/07, Ari Brown wrote: > >> Hey all, > >> I've updated my ruby, and header files are where they > >> should be > >> (thanks to all who replied). > >> But now my problem is that of libraries. I have installed pcap and > >> ruby-libnet (at least I hope it installed) by typing: > >> ruby extconf.rb > >> make > >> Then, to complete my set, I installed rubyforger using the same > >> method as described above. The directions say that i require it by > >> typing > >> require 'rubyforger.rb' > >> in the top of my code. However, Ruby cannot find it unless I'm in the > >> same directory as the rubyforger libraries. Huh? > > > > Drop the .rb, that will ususally get it to load, otherwise, put the > > library in RUBYLIB/site_ruby > > Ok, I think I answered my own question. The init function is a built > in function which allows you to send the packets. > > Unfortunately, though, I cannot get it to load, though. are you sure it's not require "rubyforge" not "rubyforger"