[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby libnet

Ari Brown

5/21/2007 10:46:00 PM

hey,
I've read anansi's email on this. but i'm having different problems.

when I run 'ruby extconf.rb', it says "ruby headers not found". What
does this mean?

Also, do I need to download the original libnet files, and ruby-
libnet is just a port?

thanks,
ari
-------------------------------------------|
Nietzsche is my copilot



17 Answers

Brian Candler

5/22/2007 5:34:00 AM

0

On Tue, May 22, 2007 at 07:46:18AM +0900, Ari Brown wrote:
> when I run 'ruby extconf.rb', it says "ruby headers not found". What
> does this mean?

It means the ruby header files are missing :-)

You need to be specific on exactly what platform you're trying to do this
on.

For example, if you're on Debian or Ubuntu, then you'll need to install the
package "ruby1.8-dev" to get these header files.

mrpink

5/22/2007 8:30:00 AM

0

could you get it to work to send a SYN packet?

could you test this script:

#!/usr/bin/env ruby

require 'libnet'

$VERBOSE = true

l = Libnet.new

10.times do
l.build_tcp(31337, 80, rand(2 ** 3), 0, Libnet::TH_SYN, 0, 0, 0,
Libnet::LIBNET_TCP_H, nil, 0, nil)
l.auto_build_ipv4(Libnet::LIBNET_TCP_H + Libnet::LIBNET_IPV4_H,
Libnet::IPPROTO_TCP, "192.168.0.2")
l.auto_build_ethernet(l.hex_aton("00:11:11:94:D4:F5"),
Libnet::ETHERTYPE_IP)
ret = l.write
l.clear_packet
puts l.geterror if ret < 0
end

sent,error,written = l.stats
puts ""
puts "Sent: #{sent}"
puts "Error: #{error}"
puts "Bytes Written: #{written}"

# end of file

because it is always segfaulting ruby on my machine :(

Ari Brown wrote:
> hey,
> I've read anansi's email on this. but i'm having different problems.
>
> when I run 'ruby extconf.rb', it says "ruby headers not found". What
> does this mean?
>
> Also, do I need to download the original libnet files, and ruby-libnet
> is just a port?
>
> thanks,
> ari
> -------------------------------------------|
> Nietzsche is my copilot
>
>
>


--
greets

(
)
(
/\ .-"""-. / //\\/ ,,, \//\ |/\| ,;;;;;, |/\|
//\\\;-"""-;///\ // \/ . \/ \ (| ,-_| \ | / |_-, |)
//`__\.-.-./__`\ // /.-(() ())-.\ \ (\ |) '---' (| /)
` (| |) `
jgs \) (/


one must still have chaos in oneself to be able to give birth to a
dancing star

James Gray

5/22/2007 12:15:00 PM

0

On May 22, 2007, at 3:35 AM, anansi wrote:

> --
> greets
>
> (
> )
> (
> /\ .-"""-. /> //\\/ ,,, \//\> |/\| ,;;;;;, |/\|
> //\\\;-"""-;///\> // \/ . \/ \> (| ,-_| \ | / |_-, |)
> //`__\.-.-./__`\> // /.-(() ())-.\ \> (\ |) '---' (| /)
> ` (| |) `
> jgs \) (/
>
>
> one must still have chaos in oneself to be able to give birth to a
> dancing star

I know multiple people have asked you to drop this signature. I'm
adding my voice to the list.

This signature is around 20 lines and you really should try to keep
them under 4. This means that one of your messages probably contains
as much fluff as actual content.

The real issue is that you waist the bandwidth of thousands of
readers every time you send a message to this list. That's just bad
manners.

Please, trim the signature.

James Edward Gray II


benjohn

5/22/2007 12:34:00 PM

0

James:
> I know multiple people have asked you to drop this signature. I'm
> adding my voice to the list.

Perhaps you could have a smaller (and slightly less chatoic) spider
instead?

o o
/|"|
Or something? I'm not too good at ascii art though, sorry :-(




Gregory Brown

5/22/2007 1:37:00 PM

0

On 5/22/07, benjohn@fysh.org <benjohn@fysh.org> wrote:

> o o
> /|"|>
> Or something? I'm not too good at ascii art though, sorry :-(

I don't know what you're talking about, that's a beautiful hermit crab.

Gregory Brown

5/22/2007 1:40:00 PM

0

On 5/22/07, James Edward Gray II <james@grayproductions.net> wrote:
> On May 22, 2007, at 3:35 AM, anansi wrote:

> The real issue is that you waist the bandwidth of thousands of
> readers every time you send a message to this list. That's just bad
> manners.

For me the real issue is that it is extremely irritating to look at
and scroll past. Maybe if people don't respond to anansi until he
shows that he can be polite to others on this list and get rid of the
stupid spider, he'll get the picture.

mrpink

5/22/2007 3:45:00 PM

0

men calm down -.- ...

--
greets

one must still have chaos in oneself to be able to
give birth to a dancing star

Joel VanderWerf

5/22/2007 4:52:00 PM

0

James Edward Gray II wrote:
...
> The real issue is that you waist the bandwidth of thousands of readers
> every time you send a message to this list. That's just bad manners.

A waist is a terrible thing to mind ;)

> Please, trim the signature.

Or replace it with a line of ruby that generates the same characters.

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Ari Brown

5/22/2007 7:56:00 PM

0


On May 22, 2007, at 1:34 AM, Brian Candler wrote:
> On Tue, May 22, 2007 at 07:46:18AM +0900, Ari Brown wrote:
>> when I run 'ruby extconf.rb', it says "ruby headers not found". What
>> does this mean?
>
> It means the ruby header files are missing :-)
>
> You need to be specific on exactly what platform you're trying to
> do this
> on.
Sorry about that.

I'm using Mac OS 10.4. Ruby is already installed, so I'm HOPING that
the dev files are already installed. However, I keep getting that
message. What's going on? Anyone else ever have this problem?


thanks,
-------------------------------------------------------|
~ Ari
crap my sig won't fit


Ari Brown

5/22/2007 8:06:00 PM

0

On May 22, 2007, at 4:35 AM, anansi wrote:


<snip>

> because it is always segfaulting ruby on my machine :(

I can't require the libnet file. I tried downloading and installing
that (like a normal source program), but i couldn't require it. Maybe
I installed it incorrectly?

I then attempted downloading ruby-libnet, but I am missing the header
files for ruby.


yargh
-------------------------------------------|
Nietzsche is my copilot