Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以,我正在尝试使用命令“gcc -o file file.c”编译我的 C 代码,但我得到“错误:libnet.h:没有这样的文件或目录”我包含了 libnet.h (#include) 和我还安装了 libnet。我正在运行 CentOS 7。
yum install libnet只安装预编译的库。
yum install libnet
您需要先使用安装标头,yum install libnet-devel然后才能在您自己的软件中使用它。
yum install libnet-devel