deiv / driftnet

Driftnet watches network traffic, and picks out and displays JPEG and GIF images for display
GNU General Public License v2.0
433 stars 54 forks source link

make error on MAC #7

Closed glfeng318 closed 6 years ago

glfeng318 commented 9 years ago
$ make
Making all in src
/Library/Developer/CommandLineTools/usr/bin/make  all-recursive
Making all in media
make[3]: Nothing to be done for `all'.
Making all in display
make[3]: Nothing to be done for `all'.
  CC       layer2.o
layer2.c:12:10: fatal error: 'netinet/ether.h' file not found
#include <netinet/ether.h>
         ^
1 error generated.
make[3]: *** [layer2.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
deiv commented 8 years ago

Hi,

Could you change this header import in this file "layer2.c" from <netinet/ether.h> to <netinet/if_ether.h> and try again make.

Tell me if that worked pls.

deiv commented 6 years ago

Fiexd by #19

luckypoem commented 4 years ago

@inu1255 hi. i ran "sudo ln -s /usr/include/netinet/if_ether.h /usr/include/netinet/ether.h" it shows: ln: /usr/include/netinet/ether.h: Operation not permitted

how to fix the "Operation not permitted" issue?

imofelrj commented 3 years ago

@luckypoem Use the terminal in Recovery System and run "csrutil disable"