Skip Menu |

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 73371
Status: resolved
Priority: 60/
Queue: Imager

People
Owner: Nobody in particular
Requestors: Eduardo.Iturrate [...] nyumc.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.87
Fixed in: (no value)



Subject: Imager GIF and PNG support on OS X
Date: Mon, 19 Dec 2011 22:46:38 -0500
To: "'bug-Imager [...] rt.cpan.org'" <bug-Imager [...] rt.cpan.org>
From: "Iturrate, Eduardo" <Eduardo.Iturrate [...] nyumc.org>
I'm having some trouble getting this to work. If at all possible can you take a look: Trying to install: Imager-File-GIF-0.82.tar.gz and Imager-File-PNG-0.82.tar.gz I've installed giflib-4.1.6 and libpng-1.5.4 Operating system: OSX: Darwin 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64 perl, v5.10.1 (*) built for darwin-2level When I run Makefile.PL for Imager::File::GIF, I get the following message: perl Makefile.PL GIF: building independently GIF: main: includes found - libraries found GIF: Test code failed: Can't link/include 'gif' OS unsupported: GIF libraries or headers not found and run Makefile.PL for Imager::File::PNG, I get the following message: perl Makefile.PL PNG: building independently PNG: Generic: includes found - libraries found PNG: Test code failed: Can't link/include 'png' OS unsupported: PNG libraries or headers not found ls /usr/local/include/ gif_lib.h jmorecfg.h libpng12 png.h jconfig.h jpeglib.h libpng14 pngconf.h jerror.h libpng libpng15 pnglibconf.h Thanks for your time! --Ed </PRE> <html> <body> ------------------------------------------------------------<br /> This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.<br /> ================================= </body> </html> <PRE>
Subject: Re: [rt.cpan.org #73371] Imager GIF and PNG support on OS X
Date: Tue, 20 Dec 2011 17:59:39 +1100
To: "Iturrate, Eduardo via RT" <bug-Imager [...] rt.cpan.org>
From: Tony Cook <tony [...] develop-help.com>
On Mon, Dec 19, 2011 at 10:46:51PM -0500, Iturrate, Eduardo via RT wrote: Show quoted text
> When I run Makefile.PL for Imager::File::GIF, I get the following message: > perl Makefile.PL > GIF: building independently > GIF: main: includes found - libraries found > GIF: Test code failed: Can't link/include 'gif' > OS unsupported: GIF libraries or headers not found > > and run Makefile.PL for Imager::File::PNG, I get the following message: > perl Makefile.PL > PNG: building independently > PNG: Generic: includes found - libraries found > PNG: Test code failed: Can't link/include 'png' > OS unsupported: PNG libraries or headers not found
Please try running Makefile.PL with --verbose: perl Makefile.PL --verbose I suspect you've built a 32-bit gif and you're trying to link it to a fat binary (x86-32, x86-64, ppc) built perl, eg: bash-3.2$ file /usr/bin/perl /usr/bin/perl: Mach-O universal binary with 3 architectures /usr/bin/perl (for architecture x86_64): Mach-O 64-bit executable x86_64 /usr/bin/perl (for architecture i386): Mach-O executable i386 /usr/bin/perl (for architecture ppc7400): Mach-O executable ppc Tony
Subject: RE: [rt.cpan.org #73371] Imager GIF and PNG support on OS X
Date: Tue, 20 Dec 2011 15:17:50 -0500
To: "'bug-Imager [...] rt.cpan.org'" <bug-Imager [...] rt.cpan.org>
From: "Iturrate, Eduardo" <Eduardo.Iturrate [...] nyumc.org>
Thanks so much for the quick response! So I took a look and I don't think my perl is built with 64 bit architecture: file /Applications/XAMPP/xamppfiles/bin/perl /Applications/XAMPP/xamppfiles/bin/perl: Mach-O universal binary with 2 architectures /Applications/XAMPP/xamppfiles/bin/perl (for architecture i386): Mach-O executable i386 /Applications/XAMPP/xamppfiles/bin/perl (for architecture ppc): Mach-O executable ppc As you can see however I am using a non-standard location for perl. I tried making sense of the giflib installation to see if there was an obvious place to configure this location for perl and wasn't able to find it. Also, when I run Makefile.PL --verbose I don't get any change in output? See below: Imager-File-GIF-0.82-3vePqO sh-3.2# perl Makefile.PL --verbose GIF: building independently GIF: main: includes found - libraries found GIF: Test code failed: Can't link/include 'gif' OS unsupported: GIF libraries or headers not found Imager-File-PNG-0.82-D6ddcC sh-3.2# perl Makefile.PL --verbose PNG: building independently PNG: Generic: includes found - libraries found PNG: Test code failed: Can't link/include 'png' OS unsupported: PNG libraries or headers not found --Ed Show quoted text
-----Original Message----- From: tony@develop-help.com via RT [mailto:bug-Imager@rt.cpan.org] Sent: Tuesday, December 20, 2011 2:00 AM To: Iturrate, Eduardo Subject: Re: [rt.cpan.org #73371] Imager GIF and PNG support on OS X <URL: https://rt.cpan.org/Ticket/Display.html?id=73371 > On Mon, Dec 19, 2011 at 10:46:51PM -0500, Iturrate, Eduardo via RT wrote:
> When I run Makefile.PL for Imager::File::GIF, I get the following message: > perl Makefile.PL > GIF: building independently > GIF: main: includes found - libraries found > GIF: Test code failed: Can't link/include 'gif' > OS unsupported: GIF libraries or headers not found > > and run Makefile.PL for Imager::File::PNG, I get the following message: > perl Makefile.PL > PNG: building independently > PNG: Generic: includes found - libraries found > PNG: Test code failed: Can't link/include 'png' > OS unsupported: PNG libraries or headers not found
Please try running Makefile.PL with --verbose: perl Makefile.PL --verbose I suspect you've built a 32-bit gif and you're trying to link it to a fat binary (x86-32, x86-64, ppc) built perl, eg: bash-3.2$ file /usr/bin/perl /usr/bin/perl: Mach-O universal binary with 3 architectures /usr/bin/perl (for architecture x86_64): Mach-O 64-bit executable x86_64 /usr/bin/perl (for architecture i386): Mach-O executable i386 /usr/bin/perl (for architecture ppc7400): Mach-O executable ppc Tony ------------------------------------------------------------ This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email. =================================
On Tue Dec 20 15:18:00 2011, Eduardo.Iturrate@nyumc.org wrote: Show quoted text
> Thanks so much for the quick response!
Sorry I haven't followed up further on this, I've been away (and alternatively, sick.) I plan to work up some instructions for building the libraries on OS X for use with a fat binary perl. Tony
Subject: Re: [rt.cpan.org #73371] Imager GIF and PNG support on OS X
Date: Fri, 30 Dec 2011 07:57:50 -0500
To: "'bug-Imager [...] rt.cpan.org'" <bug-Imager [...] rt.cpan.org>
From: "Iturrate, Eduardo" <Eduardo.Iturrate [...] nyumc.org>
Great. Thanks for any of your time! Show quoted text
----- Original Message ----- From: TONYC via RT <bug-Imager@rt.cpan.org> To: Iturrate, Eduardo Sent: Fri Dec 30 04:31:23 2011 Subject: [rt.cpan.org #73371] Imager GIF and PNG support on OS X <URL: https://rt.cpan.org/Ticket/Display.html?id=73371 > On Tue Dec 20 15:18:00 2011, Eduardo.Iturrate@nyumc.org wrote:
> Thanks so much for the quick response!
Sorry I haven't followed up further on this, I've been away (and alternatively, sick.) I plan to work up some instructions for building the libraries on OS X for use with a fat binary perl. Tony ------------------------------------------------------------ This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email. =================================
On Mon Dec 19 22:46:50 2011, Eduardo.Iturrate@nyumc.org wrote: Show quoted text
> I'm having some trouble getting this to work. If at all possible can > you take a look: > > Trying to install: Imager-File-GIF-0.82.tar.gz and Imager-File-PNG- > 0.82.tar.gz
To install a fat binary build of giflib, run configure as: ./configure --prefix=/Users/tony/local --disable-dependency-tracking --without-x CFLAGS='-arch x86_64 -arch i386 -arch ppc' setting --prefix appropriately (leave it off for /usr/local). To install a fat binary build of libpng: ./configure --prefix=/Users/tony/local --disable-dependency-tracking CFLAGS='-arch x86_64 -arch i386 -arch ppc' If you set prefix you need to supply --incpath and --libpath to Makefile.PL: perl Makefile.PL --incpath=/Users/tony/local/include --libpath=/Users/tony/local/lib Tested on Snow Leopard, with giflib 4.1.6, libpng 1.5.7 and current git Imager (which has no relevant changes since the last release.) Tony
Besides the instructions now in this ticket, Imager's README now contains brief instructions for how to build the fat binary libraries on OS X. Closing this ticket. Thank you Tony