On Thu, 14 Nov 2002, Louis Selvon wrote:
> Date: Thu, 14 Nov 2002 19:13:57 +1100 > From: Louis Selvon <[EMAIL PROTECTED]> > To: Andrew McNaughton <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [Re: [Re: [SLUG] Help Installing Perl GD Module]] > > Andrew McNaughton <[EMAIL PROTECTED]> wrote: > > *** My reply. > > On Tue, 12 Nov 2002, Louis Selvon wrote: > > > On Sun, 10 Nov 2002, Louis Selvon wrote: > > > > > Hi Sluggers: > > > > > > I am trying to install the "GD" module on my server. > > > > > > I am encountering problems after running "make". > > > > > > The error I get is shown below > > > > > > +++++++++++++++++++++++++++++++++++++++++++ > > > > > > LD_RUN_PATH="/usr/lib:/lib:/usr/X11R6/lib" gcc -o blib/arch/auto/GD/GD.so > > > -shared -L/usr/local/lib > > > GD.o -L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/local/lib -lgd -lpng -lz > > > -lfreetype -ljpeg -lm -lX11 > > > -lXpm > > > /usr/bin/ld: cannot find -lfreetype > > > collect2: ld returned 1 exit status > > > make: *** [blib/arch/auto/GD/GD.so] Error 1 > > > > >Sounds like the install process is failing to find the > > >freetype library. Is it installed? > > > > Hi Andrew. I just did a "locate freetype", a few things was returned. Is > this > > the one you mean though : > > > > /usr/lib/libfreetype.so.6 > > /usr/lib/libfreetype.so.6.0.1 > > >That looks like libfreetype is at least partially there, but I suspect > >your installation is incomplete. At best it's out of date. > > >I have the following (freebsd, installed most of a year ago): > > >/usr/local/lib/libfreetype.a > >/usr/local/lib/libfreetype.so -> libfreetype.so.9 > >/usr/local/lib/libfreetype.so.9 > > >I would expect that libfreetype.so is the file (or link) that perl will >be > looking for, and you don't have it. You may be able to get away with > >adding a symbolic link by that name to the library you have installed, >but > unless there's a compelling reason not to mess with the existing >setup, I'd > go for the latest version while you're at it. > > *** Where can I get the latest version , and if possible how do I > install this one I get it ? For the freetype home page, go to http://www.google.com/ and search for 'freetype'. I could give you an URL, but it's better to point you at the tools to find things yourself. However, if your distribution provides a way to install freetype, you should probably prefer that rather than working from the freetype standard distribution. > > > > If not where can I get this freetype thing. If yes sounds like I need to > > modify "Makefile.PL" to get it from "/usr/lib". Right !! > > >I wondered about that, but also /usr/lib may be implicitly included. If > >there is a problem of this sort you should look into your perl > >installation's configuration rather than the Makefile.PL file. > > *** What is the Perl installation configuration ? Is it like the paths > included in @INC etc ... ? > > > Also when I removed the "freetype" switch I got an error with "/usr/bin/ld: > > cannot find -lX11" > > >Is X Windows installed? (eg it's not on the server whih is the only > >machine I have ready access to from this cafe). I haven't used GD, but > >I'd expect that it should be installable on a server with minimal X >stuff. > > >If X is there (`locate libX11`), then that supports the idea that it's > >locating the directories that's the problem. > > *** Server returned: > > [root@ensim admin]# locate libX11 > /usr/X11R6/lib/libX11.so.6 > /usr/X11R6/lib/libX11.so.6.2 > [root@ensim admin]# This looks like the same problem. No 'libX11.so'. This might work, but if your system doesn't take this approach it might create problems at a later date: ln -s libfreetype.so.9 /usr/lib/libfreetype.so ln -s libX11.so.6 /usr/X11R6/lib/libX11.so > So it's installed, but again is the version out of date ? > > > Also What is the command to find the current version of "libgd" that is > > installed ? > > >`locate libgd` and look at the version numbers in the file? Depending on > >your distribution though it's probably better to look to the package > >management system for answers if you can, because it may have > >patches applied by your distribution's vendor or contributors. > > *** I found out the command to run and here is what I get for the current > version: > > [root@ensim admin]# rpm -qa | egrep '^gd-' > gd-devel-1.8.3-7 > gd-1.8.3-7 > [root@ensim admin]# rpm's suggest you're using redhat or a derivative. Redhat seems to have a following, but I avoid it myself, mostly because I find it's systems for installing software pretty clunky. Then again I don't know them very well so maybe I just haven't learnt enough about it. Is there an rpm for the GD perl module? Seems backwards to me, but it might solve your problem quickly, and it will mean that other rpms will know that the modle is installed. > When I did "make", it said that version 1.8.4 or higher is required. > Mine does not say that. > > Where can I get version 1.8.4, and how is this installed ? Google is good for finding stuff. Try something like 'rpm gd'. > I'd appreciate any more comments you have on this. > > Louis > -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
