# Problems with installing the ruby libnet module

**URL:** <https://www.ruby-forum.com/t/problems-with-installing-the-ruby-libnet-module/92818>\
**Category:** Ruby\
**Created:** [April 24, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/problems-with-installing-the-ruby-libnet-module/92818 "2007-04-24T15:15:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anansi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@anansi](https://www.ruby-forum.com/u/anansi)\
**Post date:** [April 24, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/problems-with-installing-the-ruby-libnet-module/92818/1 "2007-04-24T15:15:46Z")

</div>

Hi,  
I tried to install the Ruby Libnet module from  
[http://rubyforge.org/projects/ruby-libnet/](http://rubyforge.org/projects/ruby-libnet/) . So I downloaded it with svn  
update to my local machine and wanted to install it with:ruby extconf.rb  
.  
But this just gives me an error:

> > > ruby extconf.rb

checking for main() in -lnet… no  
Dependency failed  
\*\*\* extconf.rb failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

Provided configuration options:  
–with-opt-dir  
–without-opt-dir  
–with-opt-include  
–without-opt-include=${opt-dir}/include  
–with-opt-lib  
–without-opt-lib=${opt-dir}/lib  
–with-make-prog  
–without-make-prog  
–srcdir=.  
–curdir  
–ruby=/usr/bin/ruby1.8  
–with-netlib  
–without-netlib

> > > cat mkmf.log

have\_library: checking for main() in -lnet… -------------------- no

“gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g  
-fno-strict-aliasing -O2 -fPIC conftest.c -L”/usr/lib" -rdynamic  
-Wl,-export-dynamic -lruby1.8-static -lnet -lpthread -ldl -lcrypt  
-lm -lc"  
/usr/bin/ld: cannot find -lnet  
collect2: ld gab 1 als Ende-Status  
zurückchecked program was:  
/\* begin _/  
1: /top/  
2: int main() { return 0; }  
3: int t() { void ((volatile p)()); p = (void (()()))main; return 0; }  
/_ end \*/

“gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g  
-fno-strict-aliasing -O2 -fPIC conftest.c -L”/usr/lib" -rdynamic  
-Wl,-export-dynamic -lruby1.8-static -lnet -lpthread -ldl -lcrypt  
-lm -lc"  
/usr/bin/ld: cannot find -lnet  
collect2: ld gab 1 als Ende-Status  
zurückchecked program was:  
/\* begin _/  
1: /top/  
2: int main() { return 0; }  
3: int t() { main(); return 0; }  
/_ end \*/

so it seems I’m missing the lnet library ?!?!? But what is this and any  
idea how to install it on linux (ubuntu) ?

–  
greets  
(  
)  
(  
/\ .-“”“-. /  
//\/ , //\  
|/| ,;;;;;, |/|  
//\;-”“”-;///\  
// / . / \  
(| ,-_| \ | / |_-, |)  
//` __\.-.-./__ `\  
// /.-(() ())-.\ \  
(\ |) ‘—’ (| /)  
`(| |)`  
jgs ) (/

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

---

<div class="post-metadata">

**Author:** ![anansi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@anansi](https://www.ruby-forum.com/u/anansi)\
**Post date:** [April 24, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/problems-with-installing-the-ruby-libnet-module/92818/2 "2007-04-24T15:55:52Z")

</div>

got some help elsewhere:

one needs libnet1-dev to be installed to get it compiled correctly 🙂

–  
greets  
(  
)  
(  
/\ .-"""-. /  
//\/ , //\  
|/| ,;;;;;, |/|  
//\;-"""-;///\  
// / . / \  
(| ,-_| \ | / |_-, |)  
//` __\.-.-./__ `\  
// /.-(() ())-.\ \  
(\ |) ‘—’ (| /)  
`(| |)`  
jgs ) (/

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