building GD using a locally-installed libgd (old libgd also present on system)



I'm trying to build GD, but have it use a libgd (Boutell's C library)
that I built in my own ~/opt directory. The problem is, there's also an
older libgd installed on the system (2.0.9 I think), but I don't have
root access and so cannot remove this older version. I want GD to
eventually get installed into ~/perllib.

I've tried "perl Makefile.PL PREFIX=/home/me/perllib", but
unfortunately, it's finding the gd.h in /usr/include (the old one)
instead of /home/me/opt/include (the current one), and it's causing the
build to fail.

How can I get GD to build correctly using my own locally-installed
libgd on a system that also has an older libgd present?

.



Relevant Pages