Link to home
Create AccountLog in
Avatar of 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

But I got the following error when I ran:  make

[root@basketball GD-2.35]# make
rm -f blib/arch/auto/GD/
gcc  -shared -L/usr/local/lib GD.o  -o blib/arch/auto/GD/   -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/] 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, , looks like you need to install some other dependant packages first.
Avatar of 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'
Avatar of Jonathan415

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