1

So, I'm trying to compile my C code using the command "gcc -o file file.c", but I get "error: libnet.h: No such file or directory" I included libnet.h (#include ) and I also installed libnet. I'm running CentOS 7.

Davidoff7776
  • 23
  • 1
  • 7

1 Answers1

2

yum install libnet only installs the precompiled library.

You need to install the headers using yum install libnet-devel before you can use it in your own software.

contrapants
  • 775
  • 4
  • 16