mac os 下编译出错
x4317350 opened this issue · 1 comments
x4317350 commented
gcc unnpk.c -o unnpk -lz -lmagic -std=gnu99
unnpk.c:8:10: fatal error: 'magic.h' file not found
#include <magic.h>
^~~~~~~~~
1 error generated.
x4317350 commented
brew install libmagic
安装libmagic
ref:http://www.brambraakman.com/blog/comments/installing_libmagic_in_mac_os_x_for_python-magic/