Porada dotycząca instalacji ze źródeł każdego programu na Linuksie: najpierw przeczytaj pliki README, INSTALL lub podobnie nazwane - w nich powinno być napisane, jak dany program zainstalować. Tam powinny być również wymienione ewentualne zależności od innych bibliotek, o ile występują.
masz rację nr47 nie pomyślałem o ewentualnych problemów z ./configure moja wina i pod koniec pojawia się problem
[root@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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-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
[root@localhost nemesis-1.4]#
W repozytorium Fedory powinien być pakiet “libnet-devel” (niestety jestem przyzwyczajony do oznaczeń Debiana i stąd moja pomyłka w nazwie), jeżeli nie ma to spróbuj stąd.
Jeżeli ściągasz z podanego odnośnika - sprawdź, czy wersje ściąganego “libnet-devel” i “libnet”, którą zainstalowałeś yumem są takie same… jeżeli nie, to pobierz z tego serwisu także “libnet”.
nie powoduje zainstalowania pakietu… Co do błędu - prawdopodobnie masz zainstalowaną inną wersję pakietu - nie możesz go w ten sposób usunąć (pakiety muszą być te same). Tak na marginesie - kiedy tylko jest to możliwe staraj się nie mieszać narzędzi do instalowania/deinstalowania w systemie. Aby usunąć aktualnie zainstalowany pakiet libnet:
Co do wersji - rozumiem, że samodzielnie przyciąłeś informację o dystrybucji, architekturze i podwersji z nazwy pakietu (wolę się upewnić, że nie instalujesz pakietu dla np. Mandrivy x32 :P).
Co do wersji - rozumiem, że samodzielnie przyciąłeś informację o dystrybucji, architekturze i podwersji z nazwy pakietu (wolę się upewnić, że nie instalujesz pakietu dla np. Mandrivy x32 :P).
Haha jasne że sam trochę zmieniłem nazwę, aby było łatwiej :lol: chyba nie jestem aż tak niekumaty aby instalować pakiety np dla mandrivy i to jeszcze 32 bitowej
No to teraz powrót do kompilacji … i doinstalowywania dodatkowych “-devel” zapewne Tak na marginesie - zwykle można wykonać “make all” zamiast po kolei wpisywać “make” “make install” itd.