看板FreeBSD
标 题Re: [问题] 安装了/usr/ports/net/libnet/後找不到libnet.h
发信站星情小筑 (Sun Jan 31 23:38:53 2010)
转信站ptt!news.ntu!news.au!zoonews.ee.ntu!News.leobbs.net!SF
※ 引述《[email protected] (HD)》之铭言:
> 在freebsd下用port安装了libnet後…
> 在t.c里面使用
> #include <libnet.h>
> 使用gcc t.c -o t -lnet出现
> t.c:2:20: error: libnet.h: No such file or directory
> ldconfig -r 也有看到 -lnet
> 这是为什麽呢?
试试 #include <libnet11/libnet.h> 。
FreeBSD ports / packages 安装後,
详细的安装内容会放在 /var/db/pkg/[PKG_NAME]/+CONTENTS 。
# grep "libnet\.h" /var/db/pkg/libnet11-1.1.2.1_2,1/+CONTENTS
include/libnet11/libnet.h
(前置目录是 /usr/local )
--
Leo [joehorn]:~> make one lover for me
make: don't know how to make one. Stop
Leo [joehorn]:~> why?
why?: No match.
--
☆Origin: 星情小筑 ( Star.leobbs.net )
★Author: JoeHorn
☆From: 114-37-130-239.dynamic.hinet.net