driftnet icon indicating copy to clipboard operation
driftnet copied to clipboard

On Mac Os : configure: error: cannot find lib gif

Open ztjoel opened this issue 8 years ago • 3 comments

Sorry for Mac OS again. When executing

./configure

It shows

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 ar... ar checking the archiver (ar) interface... ar 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... yes checking for g_signal_connect_data in -lgobject-2.0... yes checking for gtk_main in -lgtk-quartz-2.0... yes checking for gdk_window_get_state in -lgdk-quartz-2.0... yes ./configure: line 4565: --cflags: command not found checking for DGifOpenFileHandle in -lgif... no configure: error: cannot find lib gif

But no formulae named "gif" or "libungif" in Homebrew, btw, I have installed "giflib". Have you ever encountered this error?Thanks!

ztjoel avatar Jan 05 '18 10:01 ztjoel

Seems related to #14 (pkg-config not found), could you take a look ?

deiv avatar Apr 12 '18 19:04 deiv

Installing version 4.1.6 of giflib fixed this error for me, could not get it to work with 5.x

Someboi avatar Jun 10 '18 21:06 Someboi

I have this problem too. However when I run brew reinstall giflib, it fixes.

imofelrj avatar Dec 13 '20 01:12 imofelrj