# Ruby Libraries

**URL:** <https://www.ruby-forum.com/t/ruby-libraries/105115>\
**Category:** Ruby\
**Created:** [May 25, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/ruby-libraries/105115 "2007-05-25T22:00:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [May 25, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/ruby-libraries/105115/1 "2007-05-25T22:00:42Z")

</div>

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?

Pcap problem: Whenever I require pcap, i get a warning saying:  
/usr/local/lib/ruby/site\_ruby/1.8/powerpc-darwin8.9.0/pcap.bundle:  
warning: do not use Fixnums as Symbols  
/usr/local/lib/ruby/site\_ruby/1.8/powerpc-darwin8.9.0/pcap.bundle:  
warning: do not use Fixnums as Symbols  
/usr/local/lib/ruby/site\_ruby/1.8/powerpc-darwin8.9.0/pcap.bundle:  
warning: do not use Fixnums as Symbols

Did i just download a bad bundle?

Ok, now part 2

Can anyone recommend a good library that allows for packet creation  
and editing? With instructions on how to install it (please)?

Thanks  
---------------------------------------------------------------|  
~Ari  
“I don’t suffer from insanity. I enjoy every minute of it” --1337est  
man alive

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [May 25, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/ruby-libraries/105115/2 "2007-05-25T22:16:45Z")

</div>

Ari B. 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

What about

make install

afterwards 😉 ?

Vince

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [May 26, 2007, 12:35am UTC](https://www.ruby-forum.com/t/ruby-libraries/105115/3 "2007-05-26T00:35:57Z")

</div>

On May 25, 2007, at 4:13 PM, Vince H&K wrote:

> What about
> 
> make install
> 
> afterwards 😉 ?

I did that - it says nothing needs to be done for `install`. Yet I  
STILL get this problem.  
re download and try again?

--------------------------------------------|  
If you’re not living on the edge,  
then you’re just wasting space.

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [May 26, 2007, 2:42am UTC](https://www.ruby-forum.com/t/ruby-libraries/105115/4 "2007-05-26T02:42:06Z")

</div>

On May 25, 2007, at 8:24 PM, Chris C. wrote:

> > 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 did that, but it still didn’t work. After looking back to the  
readme, is see that I need to “Use the init function in order to set  
up the correct interface.” So, uh… What does that mean, exactly?

---------------------------------------------------------------|  
~Ari  
“I don’t suffer from insanity. I enjoy every minute of it” --1337est  
man alive

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [May 26, 2007, 2:25am UTC](https://www.ruby-forum.com/t/ruby-libraries/105115/5 "2007-05-26T02:25:05Z")

</div>

On 5/25/07, Ari B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> 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

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [May 26, 2007, 2:44am UTC](https://www.ruby-forum.com/t/ruby-libraries/105115/6 "2007-05-26T02:44:06Z")

</div>

On May 25, 2007, at 8:24 PM, Chris C. wrote:

> > 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.

--------------------------------------------|  
If you’re not living on the edge,  
then you’re just wasting space.

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [May 26, 2007, 3:08am UTC](https://www.ruby-forum.com/t/ruby-libraries/105115/7 "2007-05-26T03:08:07Z")

</div>

On 5/25/07, Gregory B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> are you sure it’s not require “rubyforge”  
> not “rubyforger”

Oh, my mistake:  
[https://rubyforge.org/projects/rubyforger](https://rubyforge.org/projects/rubyforger)

sorry for the noise, was thinking of the codeforpeople gem and didn’t  
read carefully.

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [May 26, 2007, 3:07am UTC](https://www.ruby-forum.com/t/ruby-libraries/105115/8 "2007-05-26T03:07:07Z")

</div>

On 5/25/07, Ari B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > ```
> > > ruby extconf.rb
> > > 
> > > ```
> 
> 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”

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [May 26, 2007, 3:52am UTC](https://www.ruby-forum.com/t/ruby-libraries/105115/9 "2007-05-26T03:52:13Z")

</div>

On May 25, 2007, at 9:06 PM, Gregory B. wrote:

> are you sure it’s not require “rubyforge”  
> not “rubyforger”

Nope, it’s rubyforger.

~ Ari  
English is like a pseudo-random number generator - there are a  
bajillion rules to it, but nobody cares.
