Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: instalace knihovny libnet...nelze vytvorit adresar...sudo nezabira  (Přečteno 1507 krát)

uganga

  • Návštěvník
  • Příspěvků: 28
ahoj...potreboval bych nainstalovat knihovnu libnet pro program nemesis.Ovsem nemuzu nainstalovat.Pise to ze nelze vytvorit adresar ikdybych dal pred to prikaz sudo.Existuje reseni?

Citace
michael@ubuntu:~/Plocha/Libnet-1.0.2a$ sudo ./configure ; make ; make install
loading cache ./config.cache
Beginning autoconfiguration process for libnet-1.0.2a...
checking host system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

checking target system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

checking build system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for working const... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for ar... (cached) ar
checking for ln... (cached) ln
checking for strerror... (cached) yes
checking for pcap_open_live in -lpcap... (cached) no
checking low-level packet interface type... found SOCK_PACKET
configure: warning: apparently your OS is not officially supported yet
configure: warning: this may not work
you'll have to edit the makefile by hand
please send diffs to mike@infonexus.com
checking for libnet_build_ip in -lnet... (cached) no
checking machine endianess... lil
checking if unaligned accesses fail... (cached) no
checking for sys/sockio.h... (cached) no
creating ./config.status
creating Makefile
creating test/Makefile
creating test/TCP/Makefile
creating test/Ethernet/Makefile
creating test/UDP/Makefile
creating test/ICMP/Makefile
creating test/Random/Makefile
creating test/OSPF/Makefile
creating util/Makefile
creating util/Get-mac/Makefile
creating example/Makefile
creating libnet-config
creating include/config.h
include/config.h is unchanged
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
ranlib lib/libnet.a
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
ranlib lib/libnet.a
./ensure-dir.sh /usr 755
./ensure-dir.sh /usr/lib/ 755
./ensure-dir.sh /usr/include/libnet 755
mkdir: adresář „//usr/include/libnet“ nelze vytvořit: Operace zamítnuta
make: *** [install] Error 1
michael@ubuntu:~/Plocha/Libnet-1.0.2a$

pacholik

  • Závislák
  • ***
  • Příspěvků: 2072
Re:instalace knihovny libnet...nelze vytvorit adresar...sudo nezabira
« Odpověď #1 kdy: 08 Listopadu 2011, 15:10:37 »
to nemůžeš nainstalovat z repozitářů?

uganga

  • Návštěvník
  • Příspěvků: 28
Re:instalace knihovny libnet...nelze vytvorit adresar...sudo nezabira
« Odpověď #2 kdy: 08 Listopadu 2011, 15:37:47 »
nechapu otazku...stahnu tar libnet...rozbalim ho do slozky...jdu do nej prez terminal pomoci cd...pak napisu tento prikaz pro instalaci "sudo ./configure ; make ; make install" ...pak probehnou instalacni radky a na konci "mkdir: adresář „//usr/include/libnet“ nelze vytvořit: Operace zamítnuta
make: *** [install] Error 1" V cem muze byt problem?

Martin Kiklhorn

  • Člen občanského sdružení Ubuntu ČR a placené komunitní podpory
  • Administrátor fóra
  • Závislák
  • ******
  • Příspěvků: 4807
  • グーグル!ご存知ですか?
    • HEJ
Re:instalace knihovny libnet...nelze vytvorit adresar...sudo nezabira
« Odpověď #3 kdy: 08 Listopadu 2011, 18:28:40 »
Neprojde ani?
Kód: [Vybrat]
sudo -i
./configure
make
make install
Jsou ve vašem dotazu OPRAVDU VŠECHNY vám dostupné informace o problému?
Linux user since 2007-10-11, Registered #456007
Virtual
| Distribuce
~/slozka znamená /home/"vase jmeno"/slozka
6521 69DE 0F34 FCBC FB1D  DE76 360E 52B2 F71A B8E8

uganga

  • Návštěvník
  • Příspěvků: 28
Re:instalace knihovny libnet...nelze vytvorit adresar...sudo nezabira
« Odpověď #4 kdy: 08 Listopadu 2011, 23:44:25 »
kdyz to udelam postupne napise mi to:
Citace
root@ubuntu:/home/michael/Plocha/Libnet-1.0.2a# ./configure
loading cache ./config.cache
Beginning autoconfiguration process for libnet-1.0.2a...
checking host system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

checking target system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

checking build system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for working const... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for ar... (cached) ar
checking for ln... (cached) ln
checking for strerror... (cached) yes
checking for pcap_open_live in -lpcap... (cached) no
checking low-level packet interface type... found SOCK_PACKET
configure: warning: apparently your OS is not officially supported yet
configure: warning: this may not work
you'll have to edit the makefile by hand
please send diffs to mike@infonexus.com
checking for libnet_build_ip in -lnet... (cached) no
checking machine endianess... lil
checking if unaligned accesses fail... (cached) no
checking for sys/sockio.h... (cached) no
creating ./config.status
creating Makefile
creating test/Makefile
creating test/TCP/Makefile
creating test/Ethernet/Makefile
creating test/UDP/Makefile
creating test/ICMP/Makefile
creating test/Random/Makefile
creating test/OSPF/Makefile
creating util/Makefile
creating util/Get-mac/Makefile
creating example/Makefile
creating libnet-config
creating include/config.h
include/config.h is unchanged
root@ubuntu:/home/michael/Plocha/Libnet-1.0.2a# make
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
ranlib lib/libnet.a
root@ubuntu:/home/michael/Plocha/Libnet-1.0.2a# make install
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
ranlib lib/libnet.a
./ensure-dir.sh /usr 755
./ensure-dir.sh /usr/lib/ 755
./ensure-dir.sh /usr/include/libnet 755
./ensure-dir.sh /usr/include/ 755
./ensure-dir.sh  755
./ensure-dir.sh /usr/bin/ 755
./install-sh lib/libnet.a /usr/lib/
rm -f /usr/lib/libpwrite.a
cd /usr/lib/; ln -f -s libnet.a libpwrite.a
./install-sh include/libnet.h /usr/include/
./install-sh include/libnet/libnet-headers.h /usr/include/libnet
./install-sh include/libnet/libnet-functions.h /usr/include/libnet
./install-sh include/libnet/libnet-structures.h /usr/include/libnet
./install-sh include/libnet/libnet-macros.h /usr/include/libnet
./install-sh include/libnet/libnet-asn1.h /usr/include/libnet
./install-sh include/libnet/libnet-ospf.h /usr/include/libnet
./install-sh doc/libnet.3
install:   no destination specified
make: *** [install] Error 1
root@ubuntu:/home/michael/Plocha/Libnet-1.0.2a#

pacholik

  • Závislák
  • ***
  • Příspěvků: 2072
Re:instalace knihovny libnet...nelze vytvorit adresar...sudo nezabira
« Odpověď #5 kdy: 09 Listopadu 2011, 12:26:10 »
packages.ubuntu.com/oneiric/libnet1
nebo potřebuješ konkrétně verzi 1.0.2a?

 

Provoz zaštiťuje spolek OpenAlt.