Problem
I want to compile gd (Interface to Gd Graphics Library).
While "perl Makefile.PL" works, "make" fails with an error:
UX:ld: ERROR: library not found: -lXpm *** Error code 1 (bu21) UX:make: ERROR: fatal error.
Cause
The link failure is because /usr/X11R1/lib doesn't get linked against libXpm.so and libX11.so.
Solution
Set:LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/X11R6/lib
export LD_LIBRARY_PATHAfter running "perl Makefile.PL" edit the Makefile and change the line:
CCFLAGS = -Wformat=0
to
CCFLAGS = -wthen save and exit.Now you can run "make".