Open CrazyWr opened 7 years ago
wei-mac$ find {/lib,/usr/lib/,/usr/local/lib/} -iname "*glib*"
find: /lib: No such file or directory
/usr/local/lib//girepository-1.0/DBusGLib-1.0.typelib
/usr/local/lib//girepository-1.0/GLib-2.0.typelib
/usr/local/lib//glib-2.0
/usr/local/lib//libglib-2.0.0.dylib
/usr/local/lib//libglib-2.0.a
/usr/local/lib//libglib-2.0.dylib
/usr/local/lib//pkgconfig/glib-2.0.pc
WeiMBP:driftnet-master wei-mac$ ./configure make
configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for make-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... rm: conftest.dSYM: is a directory yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
./configure: line 3994: PKG_PROG_PKG_CONFIG: command not found
checking for make-ar... no
checking for make-lib... no
checking for make-link... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking for make-ranlib... no
checking for ranlib... ranlib
checking for pcap_open_live in -lpcap... yes
checking for pthread_create in -lpthread... yes
checking for g_free in -lglib-2.0... no
configure: error: cannot find lib glib-2.x
I found
AC_CHECK_LIB([glib-2.0],
[g_free],
[],
[AC_MSG_ERROR([cannot find lib glib-2.x])])
in configure.ac , but my macPro have installed glib-2.50.3.wei-mac$ brew install glib
Warning: glib-2.50.3 already installed
how can I debug it?