Re: Trying to install Perl::GD::Graph

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: irb
Date:  
To: Main PLUG discussion list
Subject: Re: Trying to install Perl::GD::Graph
* Quoth Jason Etchason (), on Sat, 2007.02.24, at 11:35 -0700:
> I want to install Perl::GD::Graph. I have to get GD installed with jpeg
> support, but I am having problems getting it to compile. Any ideas on what
> to do or where to find a how-to for this?
>
> Here is the stdout from make:
>
> /usr/bin/ld: /usr/local/lib/libjpeg.a(jcparam.o): relocation R_X86_64_32
> against `a local symbol' can not be used when making a shared object;
> recompile with -fPIC
> /usr/local/lib/libjpeg.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [libgd.la] Error 1
> make[2]: Leaving directory `/root/gd/gd-2.0.34'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/gd/gd-2.0.34'
> make: *** [all] Error 2


Have you installed libjpeg in /usr/local/lib? That's fine, but you need
to install it as a shared object. Quick 'n dirty, as root:

cd /usr/local/lib
ld --whole-archive --shared -o libjpeg.so libjpeg.a
/sbin/ldconfig

And then try again with gd.

You may want to look into compiling libjpeg properly, or use your
distribution's package.

/i.
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss