Re: Which perl version is needed?

Bob Friesenhahn <[email protected]> Mon, 26 Jan 2009 21:16:32 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.core
Message-ID <[email protected]>
On Tue, 27 Jan 2009, Nguyen Vu Hung wrote:

> Hi,
> I am using CentOS 5.0 and perl 5.8.8 is installed by install.

> GM 1.3.4 make would fail with this version of perl.And I have to 
> install CPAN and Thread to upgrade perl to 5.10in order --with-perl 
> to work.
> My question is: What is the requiments for GM to be installed with --with-perl.

The problem is not with the version of perl.  The problem is that 
Linux distributions usually delete libperl.a in order to save disk 
space.  When you built the newer version, you now have a libperl.a and 
then it works.

The easy solution is to add --enable-shared so that GraphicsMagick is 
built with shared libraries and perl will build a loadable 
Graphics::Magick module, which depends on the shared libperl.so 
(always available) rather than the static one.

This issue has been a continuing pain.  The reason why --enable-shared 
is not the default is that if one of the available libraries is only 
available as a static library, then the build fails, or the program 
crashes during execution.  This is not usually a problem when using 
Linux since Linux almost always provides shared libraries, but it can 
be a problem with other systems, or if the user builds the libraries 
from source code and does not know how to build shared versions.

Bob
======================================
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword