Re: building GD using a locally-installed libgd (old libgd also present on system)
- From: "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx>
- Date: Sat, 11 Nov 2006 04:58:18 +1100
<jmg3000@xxxxxxxxx> wrote in message
news:1163177646.658382.281090@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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?
Probably easiest to just do some appropriate harcoding in the Makefile.PL.
(This is what I do on Win32, and it works for me.)
Find the'LIBS' and 'INC' entries in the WriteMakefile() section of said
Makefile.PL and change them to something like:
'LIBS' => [join(' ','/home/me/opt/lib',@LIBPATH,@LIBS)],
'INC' => join(' ','/home/me/opt/include',@INC),
Then just run 'make clean' and start over again - responding to all prompts
as usual.
You haven't told us where libgd is so I've had a guess that it's in
/home/me/opt/lib - which, of course, is not necessarily the case.
Cheers,
Rob
.
- Follow-Ups:
- References:
- Prev by Date: Formatting -- recommended module
- Next by Date: Re: building GD using a locally-installed libgd (old libgd also present on system)
- Previous by thread: building GD using a locally-installed libgd (old libgd also present on system)
- Next by thread: Re: building GD using a locally-installed libgd (old libgd also present on system)
- Index(es):
Relevant Pages
|
|