Zom King 写道: > 从晚10点弄到凌晨4点多了,就是不知道怎么安装libnet,请求高人指点!!!! > > 我是从网上下载的一个名叫"libnet-1.1.3-RC-01.tar.gz"的压缩包。 > 解压后,进入libnet文件夹,运行./configure ,得到如下(顺便提一下,我用 > 的是ubuntu8.04 64位) > beginning autoconfiguration process for libnet-1.1.3-RC-01 ... > checking build system type... x86_64-unknown-linux-gnu > checking host system type... x86_64-unknown-linux-gnu > checking target system type... x86_64-unknown-linux-gnu > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... no > (由于篇幅过长,省略) > checking whether gcc needs -traditional... no > checking link-layer packet interface type... found linux primitives > checking for packet socket (PF_SOCKET)... test program got EPERM... > assuming yes > checking for Linux proc filesystem... yes > scanning available packet construction modules: 802.1q 802.1x 802.2 > 802.3 arp bgp cdp data dhcp dns ethernet fddi gre hsrp icmp igmp ip > ipsec isl link mpls ntp ospf rip rpc sebek snmp stp tcp token_ring udp > vrrp > checking net/ethernet.h usability... yes > checking net/ethernet.h presence... yes > checking for net/ethernet.h... yes > configure: creating ./config.status > config.status: creating Makefile > config.status: creating src/Makefile > config.status: creating include/Makefile > config.status: creating include/libnet/Makefile > config.status: creating sample/Makefile > config.status: creating version.h > config.status: creating include/libnet.h > config.status: creating libnet-config > config.status: creating include/config.h > config.status: include/config.h is unchanged > config.status: executing depfiles commands > config.status: executing default commands > > 然后执行make,得到: > Making all in include > make[1]: 正在进入目录 `/home/zomking/Down/libnet/include' > make all-recursive > make[2]: 正在进入目录 `/home/zomking/Down/libnet/include' > Making all in libnet > make[3]: 正在进入目录 `/home/zomking/Down/libnet/include/libnet' > make[3]: 没有什么可以做的为 `all'。 > make[3]: 正在离开目录 `/home/zomking/Down/libnet/include/libnet' > make[3]: 正在进入目录 `/home/zomking/Down/libnet/include' > make[3]: 正在离开目录 `/home/zomking/Down/libnet/include' > make[2]: 正在离开目录 `/home/zomking/Down/libnet/include' > make[1]: 正在离开目录 `/home/zomking/Down/libnet/include' > Making all in src > make[1]: 正在进入目录 `/home/zomking/Down/libnet/src' > make[1]: 没有什么可以做的为 `all'。 > make[1]: 正在离开目录 `/home/zomking/Down/libnet/src' > Making all in sample > make[1]: 正在进入目录 `/home/zomking/Down/libnet/sample' > make[1]: 没有什么可以做的为 `all'。 > make[1]: 正在离开目录 `/home/zomking/Down/libnet/sample' > make[1]: 正在进入目录 `/home/zomking/Down/libnet' > make[1]: 没有什么可以做的为 `all-am'。 > make[1]: 正在离开目录 `/home/zomking/Down/libnet' > > 接着make install : > Making install in include > make[1]: 正在进入目录 `/home/zomking/Down/libnet/include' > Making install in libnet > make[2]: 正在进入目录 `/home/zomking/Down/libnet/include/libnet' > make[3]: 正在进入目录 `/home/zomking/Down/libnet/include/libnet' > make[3]: 没有什么可以做的为 `install-exec-am'。 > test -z "/usr/include/libnet" || mkdir -p -- "/usr/include/libnet" > /usr/bin/install -c -m 644 'libnet-asn1.h' > '/usr/include/libnet/libnet-asn1.h' > /usr/bin/install: 无法删除 "/usr/include/libnet/libnet-asn1.h": > Permission denied > /usr/bin/install -c -m 644 'libnet-functions.h' > '/usr/include/libnet/libnet-functions.h' > /usr/bin/install: 无法删除 "/usr/include/libnet/libnet-functions.h": > Permission denied > /usr/bin/install -c -m 644 'libnet-headers.h' > '/usr/include/libnet/libnet-headers.h' > /usr/bin/install: 无法删除 "/usr/include/libnet/libnet-headers.h": > Permission denied > /usr/bin/install -c -m 644 'libnet-macros.h' > '/usr/include/libnet/libnet-macros.h' > /usr/bin/install: 无法删除 "/usr/include/libnet/libnet-macros.h": > Permission denied > /usr/bin/install -c -m 644 'libnet-structures.h' > '/usr/include/libnet/libnet-structures.h' > /usr/bin/install: 无法删除 "/usr/include/libnet/libnet-structures.h": > Permission denied > /usr/bin/install -c -m 644 'libnet-types.h' > '/usr/include/libnet/libnet-types.h' > /usr/bin/install: 无法删除 "/usr/include/libnet/libnet-types.h": > Permission denied > make[3]: *** [install-libnetincludeHEADERS] 错误 1 > make[3]: 正在离开目录 `/home/zomking/Down/libnet/include/libnet' > make[2]: *** [install-am] 错误 2 > make[2]: 正在离开目录 `/home/zomking/Down/libnet/include/libnet' > make[1]: *** [install-recursive] 错误 1 > make[1]: 正在离开目录 `/home/zomking/Down/libnet/include' > make: *** [install-recursive] 错误 1 > > 郁闷啊!!!完了以后,好像不成功,libnet.h的头文件也没有出现在 > /usr/inlude里边........ > 至于libpcap,我是用apt-get安装,似乎是成功了,/usr/include里边有个 > pcap.h文件。 > 现求高手指点一下!不胜感激! 出错信息说得很清楚了:Permission denied 你安装的时候使用"sudo make install"才可以。
-- ubuntu-zh mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
