Link to home
Create AccountLog in
Avatar of Jonathan415
Jonathan415

asked on

Unable to install perl GD module on Redhat WS 4 - can't find -lXpm

I am trying to install perl module:  GD-2.35.tar.gz
from search.cpan.org


But I got the following error when I ran:  make

[root@basketball GD-2.35]# make
rm -f blib/arch/auto/GD/GD.so
gcc  -shared -L/usr/local/lib GD.o  -o blib/arch/auto/GD/GD.so   -L/usr/lib -L/usr/X11R6/lib -L/usr/lib -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lgd  
/usr/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/GD.so] Error 1

I have installed the  gd-progs and gd-devel rpm.

Am I missing something?
Avatar of Kim Ryan
Kim Ryan
Flag of Australia image

Looks like it cannot find the XPm library to link against. A similar probelm is described here, http://rt.cpan.org/Public/Bug/Display.html?id=29077 , looks like you need to install some other dependant packages first.
Avatar of Adam314
Adam314

If GD is dependant on other perl modules, you can have CPAN automatically install those dependencies first (and dependencies of those, and so on...)

From a promtp, as root:
perl -MCPAN -e 'install GD'
ASKER CERTIFIED SOLUTION
Avatar of Jonathan415
Jonathan415

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account