Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Problem executing GD module

by bar10der (Beadle)
on Aug 03, 2005 at 17:30 UTC ( [id://480575]=note: print w/replies, xml ) Need Help??


in reply to Re: Problem executing GD module
in thread Problem executing GD module

>>Make sure both Perl-GD and libgd versions are the same.

Sorry but not sure how to get around this. I am not very good at UNIX, so if you could give me some lead, I'll greatly appreciate.

Replies are listed 'Best First'.
Re^3: Problem executing GD module
by fauria (Deacon) on Aug 03, 2005 at 19:04 UTC
    I see you are using Solaris. Here you can find a description of the relocation process. The error you are having is explained under the "Relocation Error" section.

    I dont know so much about Solaris, but it mught have some kind of package management tools, such as emerge, apt or yum in Linux. Try to install the GD library provided by you package manager, and then install Perl-GD through CPAN, to ensure it is compiled against the library you already have.
Re^3: Problem executing GD module
by zentara (Archbishop) on Aug 04, 2005 at 11:40 UTC
    Get the latest versions of both.

    I'm not really a human, but I play one on earth. flash japh
      I have latest version of the libraries but still struggling to install. Same error.
        Did you compile them yourself? Or are they precompiled binaries? From what your original error suggests, you are having trouble with libpng.

        You are not the first person that has had this problem, including myself. What always works, is to get the latest GD c lib from boutell.com and compile it yourself, after reading the docs on how to include png and gif support. Then make sure you get no errors, and don't have 2 gd libs installed with 2 different header files. You may have headers and libs in /usr /usr/local and /usr/X11R6. These will conflict, so make sure you have only one. The same is true for libpng and libgif and/or libungif. Make sure you have only one, and only it's matching header file in the various include directories. Then once you have libgd properly installed, install the Perl GD module, and watch for errors.

        The reason this all comes about, is usually your "linux distribution" puts these in different places, depending on how they like to do things. BUT when you get source tarballs, they will usually default to putting things in /usr/local, without checking for other versions....so you can end up with dual libraries, and multiple header files. Then depending on how your search paths are setup, you may get 1 header file assigned to a wrong library version, or some other glitch.

        Also, I can't say for sure whether you using Perl version 5.61 is causing some problem. The GD people always go with the "current releases" and seem to care little about insuring backward compatibility. You can read the Changelog for the module to see what libgd version it requires.

        Also from vague memory, their was some changes in libpng awhile ago, so maybe you need to reinstall the latest libpng first, BEFORE building libgd. There are alot of details to getting GD installed properly. You can groups.google search for "GD png" and maybe get some tips.

        Also, if you are stuck using Perl561, maybe ask around for people who still have this version, and what level libgd they use, and which older Perl GD module is compatible with it.


        I'm not really a human, but I play one on earth. flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://480575]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-19 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found