Автор Тема: Nemesis 1.4  (Прочетена 2159 пъти)

Nik123

  • Напреднали
  • *****
  • Публикации: 3154
  • Distribution: Mageia, Q4OS
    • Профил
Nemesis 1.4
« -: Jul 09, 2006, 23:00 »
Здравейте! Изтеглих си от мрежата nemesis 1.4., но като се опитах да го компилирам, ми даде грешка, че не може да открие libnet. Намерих libnet като сорс код- на тарбола не пише коя версия е- и си го компилирах и инсталирах успешно. Дотук всичко хубаво, но при опит да компилирам nemesis пак ми дава грешка, че не можело да намери libnet. Ето грешката:
[nik@localhost nemesis-1.4]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... none
checking for gcc option to accept ANSI C... none needed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) none
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
./configure: line 4150: libnet-config: command not found
./configure: line 4153: libnet-config: command not found
./configure: line 4157: libnet-config: command not found
./configure: line 4160: libnet-config: command not found
./configure: line 4167: libnet-config: command not found
checking for an ANSI C-conforming const... yes
checking for gawk... (cached) gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for fabs in -lm... yes
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking for hstrerror in -lresolv... yes
checking for libnet_build_ip in -lnet... no

   ERROR!  Libnet library not found, go get it from
   http://www.packetfactory.net/projects/libnet/
   or use the --with-libnet-* options, if you have it installed
   in unusual place
[nik@localhost nemesis-1.4]$

Моля за помощ.

Edit:



Активен

  • Гост
Nemesis 1.4
« Отговор #1 -: Jul 10, 2006, 06:59 »
Цитат (Nik123 @ Юли 10 2006,00:00)

Помагам ти !

 ERROR!  Libnet library not found, go get it from
  http://www.packetfactory.net/projects/libnet/
  or use the --with-libnet-* options, if you have it installed
  in unusual place

Успех !
Активен

Nik123

  • Напреднали
  • *****
  • Публикации: 3154
  • Distribution: Mageia, Q4OS
    • Профил
Nemesis 1.4
« Отговор #2 -: Jul 10, 2006, 07:36 »
Виж сега, приятел, libnet го свалих като сорс код точно от линка, който е посочен в съобщението за грешка. Инсталирал съм го с ./congihure, make, su root, make install и се инсталира без никаква грешка/проблем. Но nemesis не го открива.

[root@localhost ~]# whereis libnet
libnet: /usr/lib/libnet.a /usr/include/libnet /usr/include/libnet.h



Активен

  • Гост
Nemesis 1.4
« Отговор #3 -: Jul 10, 2006, 08:02 »
а като писа ./configure, добави ли му опцията --with-libnet-* ?? която посочва пътя до тоя libnet?
Активен

Nik123

  • Напреднали
  • *****
  • Публикации: 3154
  • Distribution: Mageia, Q4OS
    • Профил
Nemesis 1.4
« Отговор #4 -: Jul 10, 2006, 23:17 »
Благодаря, имате предвид ./configure --with-libnet-/usr/unclude/libnet нали? Доколкото разбирам, трябва да дам пътеката към изпълнимия файл?

Edit: Пак не става: пробвах и съc ./configure --with-libnet-/usr/include/libnet,  ./configure --with-libnet-/usr/lib/libnet.a, ./configure --with-libnet-/usr/include/libnet.h, грешката е:
[nik@localhost nemesis-1.4]$ ./configure --with-libnet-/usr/include/libnet
configure: error: invalid package name: libnet-/usr/include/libnet
същото с libnet.h и libnet.a


Edit2: Пробвах и с libnet, свален и инсталиран чрез urpmi, и пак същото. А това
[root@localhost libnet]# whereis libnet
libnet: /usr/lib/libnet.a /usr/lib/libnet1.so /usr/include/libnet /usr/include/libnet.h /usr/include/libnet1.h
е след инсталацията през urpmi



Активен

buboleck

  • Напреднали
  • *****
  • Публикации: 388
  • Distribution: Gentoo
  • Window Manager: Kde 4.x
  • ?
    • Профил
Nemesis 1.4
« Отговор #5 -: Jul 11, 2006, 00:18 »
А пробва ли с:
 ./configure --with-libnet=/usr/include/libnet
Активен

Powered by Gentoo, AMD Athlon64 X2 5050e (Intel Pentium D 840 sucks) and 400W Fortron PSU
http://www.russian-motorcycles.com

Nik123

  • Напреднали
  • *****
  • Публикации: 3154
  • Distribution: Mageia, Q4OS
    • Профил
Nemesis 1.4
« Отговор #6 -: Jul 11, 2006, 08:21 »
И така не става. Същата грешка
Активен

  • Гост
Nemesis 1.4
« Отговор #7 -: Jul 11, 2006, 09:30 »
Цитат (Nik123 @ Юли 11 2006,09:21)
И така не става. Същата грешка

Един вариант е да опиташ с
 ./configure --with-libnet=/usr

защо би могло да работи - когато си компилирал libnet по подразбиране то е разположило поддиректориите си в /usr - например /usr/include/libnet, /usr/lib/libnet

Често когато компилирам за да не правя каша по файловата система, всичко което компилирам извън пакетната система го разполагам в /opt. Например при компилацията на libnet може би щях да направя  ./configure --prefix=/opt. Така libnet ще се инсталира в /opt/libnet и после реда който ще ти трябва за компилация на неща зависещи от него ще е
 ./configure --with-libnet=/opt/libnet

Дано това помогне
Активен

  • Гост
Nemesis 1.4
« Отговор #8 -: Jul 11, 2006, 09:32 »
Цитат (Guest @ Юли 11 2006,10:30)
Цитат (Nik123 @ Юли 11 2006,09:21)
И така не става. Същата грешка

Един вариант е да опиташ с
 ./configure --with-libnet=/usr

защо би могло да работи - когато си компилирал libnet по подразбиране то е разположило поддиректориите си в /usr - например /usr/include/libnet, /usr/lib/libnet

Често когато компилирам за да не правя каша по файловата система, всичко което компилирам извън пакетната система го разполагам в /opt. Например при компилацията на libnet може би щях да направя  ./configure --prefix=/opt. Така libnet ще се инсталира в /opt/libnet и после реда който ще ти трябва за компилация на неща зависещи от него ще е
 ./configure --with-libnet=/opt/libnet

Дано това помогне

Корекция :

не съм сигурен май беше ./configure --prefix=/opt/libnet
...не мога да го проверя в момента
Активен

Nik123

  • Напреднали
  • *****
  • Публикации: 3154
  • Distribution: Mageia, Q4OS
    • Профил
Nemesis 1.4
« Отговор #9 -: Jul 12, 2006, 07:11 »
И с префикс към /opt не стана. Деинсталирах и инсталирах либнет без всякакви префикси, и при конфигурацията на немезис, изчетох хелпа на конфигурационния скрипт и пробвах така:
./configure --with-libnet-includes=/usr/include --with-libnet-libraries=/usr/lib
(синстаксиса го взех от хелпа)
и се получи това:
./configure: line 4150: libnet-config: command not found
./configure: line 4153: libnet-config: command not found
./configure: line 4157: libnet-config: command not found
./configure: line 4160: libnet-config: command not found
./configure: line 4167: libnet-config: command not found
checking for an ANSI C-conforming const... yes
checking for gawk... (cached) gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for fabs in -lm... yes
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking for hstrerror in -lresolv... yes
checking for libnet_build_ip in -lnet... no

   ERROR!  Libnet library not found, go get it from
   http://www.packetfactory.net/projects/libnet/
   or use the --with-libnet-* options, if you have it installed
   in unusual place
[nik@localhost nemesis-1.4]$
 С една дума, едно голямо нищо.
Активен

divak

  • Напреднали
  • *****
  • Публикации: 830
    • Профил
Nemesis 1.4
« Отговор #10 -: Jul 12, 2006, 13:15 »
'<img'> Здравей
Предполагам ,че си прочел Install фаила ?
Цитат
Installing Nemesis on UNIX-like systems:
========================================

Installing Nemesis on UNIX-like systems is a straightforward process that
closely resembles installing any other piece of software using GNU autotools.  
Before attempting to install Nemesis, ensure that libnet-1.0.2a is installed.

The following steps are all that is needed to compile and install Nemesis:
1. ./configure
2. make
3. make install
4. examine the nemesis man pages
5. enjoy.

When compiling the following switches are available:
----------------------------------------------------

`--enable-debug'
     Enable debugging options (bugreports and developers only).

`--with-libnet-includes=DIR'
     If the configuration script can't find the libnet include files on its
     own, the path can be set manually with this switch.

`--with-libnet-libraries=DIR'
     If the configuration script can't find the libnet library files on its
     own, the path can be set manually with this switch.


а това :
Цитат
ERROR!  Libnet library not found, go get it from
 http://www.packetfactory.net/projects/libnet/
 or use the --with-libnet-* options, if you have it installed
 in unusual place
ясно ти казва , че ако има проблем да използваш --with-libnet-* опции , тоест вместо да съчиняваш, поглеждаш въпросният файл - винаги го има, на всеки пакет, и си решаваш проблема '<img'>
И леко с глупостите по мрежата да няма ....  '<img'>



Активен

Nik123

  • Напреднали
  • *****
  • Публикации: 3154
  • Distribution: Mageia, Q4OS
    • Профил
Nemesis 1.4
« Отговор #11 -: Jul 12, 2006, 14:51 »
Изчел съм файла с инфо за инсталацията, и зададох опциите на configure според този файл, и пак нищо:
[nik@localhost ~]$ whereis libnet
libnet: /usr/lib/libnet.a /usr/include/libnet /usr/include/libnet.h
[nik@localhost ~]$ cd source-code/nemesis-1.4/
[nik@localhost nemesis-1.4]$ ./configure --with-libnet-includes=/usr/include/libnet --with-libnet-libraries=/usr/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... none
checking for gcc option to accept ANSI C... none needed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) none
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
./configure: line 4150: libnet-config: command not found
./configure: line 4153: libnet-config: command not found
./configure: line 4157: libnet-config: command not found
./configure: line 4160: libnet-config: command not found
./configure: line 4167: libnet-config: command not found
checking for an ANSI C-conforming const... yes
checking for gawk... (cached) gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for fabs in -lm... yes
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking for hstrerror in -lresolv... yes
checking for libnet_build_ip in -lnet... no

   ERROR!  Libnet library not found, go get it from
   http://www.packetfactory.net/projects/libnet/
   or use the --with-libnet-* options, if you have it installed
   in unusual place
[nik@localhost nemesis-1.4]$
Активен

nqkoisi

  • Напреднали
  • *****
  • Публикации: 46
    • Профил
Nemesis 1.4
« Отговор #12 -: Jul 12, 2006, 15:23 »
or use the --with-libnet-* options, if you have it installed

or use the --with-libnet-* options, if you have it installed

or use the --with-libnet-* options, if you have it installed


Повече от това ....
Активен

divak

  • Напреднали
  • *****
  • Публикации: 830
    • Профил
Nemesis 1.4
« Отговор #13 -: Jul 12, 2006, 17:02 »
Здравей
Коя libnet си сложил ? Не че може да има разлика във версиите обаче на сайта на Nemesis

Requirements

libnet-1.0.2a
друго дето виждам е
Цитат
[nik@localhost ~]$ whereis libnet
libnet: /usr/lib/libnet.a /usr/include/libnet /usr/include/libnet.h
[nik@localhost ~]$ cd source-code/nemesis-1.4/
[nik@localhost nemesis-1.4]$ ./configure --with-libnet-includes=/usr/include/libnet --with-libnet-libraries=/usr/lib

пробвай да е
./configure --with-libnet-includes=/usr/include/ --with-libnet-libraries=/usr/lib/
Активен

Nik123

  • Напреднали
  • *****
  • Публикации: 3154
  • Distribution: Mageia, Q4OS
    • Профил
Nemesis 1.4
« Отговор #14 -: Jul 13, 2006, 19:23 »
Прпбвах и така, не става, опитах и с версията 1.0.2а- тя пък изобщо не се компилира, на маке  дава грешка:
ar -cr lib/libnet.a src/libnet_resolve.o src/libnet_socket.o src/libnet_checksum.o src/libnet_prand.o src/libnet_version.o src/libnet_write_ip.o src/libnet_insert_ipo.o src/libnet_insert_tcpo.o src/libnet_error.o src/libnet_link_sockpacket.o src/libnet_packet_mem.o src/libnet_build_ip.o src/libnet_build_tcp.o src/libnet_build_udp.o src/libnet_build_arp.o src/libnet_build_ethernet.o src/libnet_build_icmp.o src/libnet_build_igmp.o src/libnet_build_dns.o src/libnet_build_snmp.o src/libnet_build_rip.o src/libnet_build_ospf.o src/libnet_build_vrrp.o src/libnet_asn1.o src/libnet_hex_dump.o src/libnet_if_addr.o src/libnet_port_list.o
ar: lib/libnet.a: No such file or directory
make: *** [libnet] Error 1
Версията на първия либнет, с който започнаха проблемите, е 1.1.2.1- от сайта на немезис.
Активен