Титла: Nemesis 1.4 Публикувано от: Nik123 в 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 Публикувано от: в Jul 10, 2006, 06:59
Помагам ти ! 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 Успех ! Титла: Nemesis 1.4 Публикувано от: Nik123 в 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 Публикувано от: в Jul 10, 2006, 08:02 а като писа ./configure, добави ли му опцията --with-libnet-* ?? която посочва пътя до тоя libnet?
Титла: Nemesis 1.4 Публикувано от: Nik123 в 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 Титла: Nemesis 1.4 Публикувано от: buboleck в Jul 11, 2006, 00:18 А пробва ли с:
./configure --with-libnet=/usr/include/libnet Титла: Nemesis 1.4 Публикувано от: Nik123 в Jul 11, 2006, 08:21 И така не става. Същата грешка
Титла: Nemesis 1.4 Публикувано от: в Jul 11, 2006, 09:30
Един вариант е да опиташ с ./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 Публикувано от: в Jul 11, 2006, 09:32
Корекция : не съм сигурен май беше ./configure --prefix=/opt/libnet ...не мога да го проверя в момента Титла: Nemesis 1.4 Публикувано от: Nik123 в 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]$ С една дума, едно голямо нищо. Титла: Nemesis 1.4 Публикувано от: divak в Jul 12, 2006, 13:15 ![]() Предполагам ,че си прочел Install фаила ?
а това :
![]() И леко с глупостите по мрежата да няма .... ![]() Титла: Nemesis 1.4 Публикувано от: Nik123 в 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]$ Титла: Nemesis 1.4 Публикувано от: nqkoisi в 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 Повече от това .... Титла: Nemesis 1.4 Публикувано от: divak в Jul 12, 2006, 17:02 Здравей
Коя libnet си сложил ? Не че може да има разлика във версиите обаче на сайта на Nemesis Requirements libnet-1.0.2a друго дето виждам е
пробвай да е ./configure --with-libnet-includes=/usr/include/ --with-libnet-libraries=/usr/lib/ Титла: Nemesis 1.4 Публикувано от: Nik123 в 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- от сайта на немезис. |