perl Imager ::File:: PNG. Почему при установке не удается найти мой libpng, установленный через MacPorts?

#perl #macports #libpng

#perl #macports #libpng

Вопрос:

Я установил libpng через MacPorts. Проверьте. У меня есть install Imager через cpan install. Во время установки не удается найти путь к моему libpng, который я установил через MacPorts без каких-либо проблем.

Это содержимое /usr/local/lib :

 libpng.3.dylib*
libpng.3.dylib.dSYM/
libpng12.0.dylib*
libpng12.0.dylib.dSYM/
libpng12.a
libpng12.la*
libpng14.14.dylib*
libpng14.14.dylib.dSYM/
libpng14.a
libpng14.la*
libpng15.15.dylib*
libpng15.15.dylib.dSYM/
libpng15.a
libpng15.la*
 

Что я пропустил?

ОБНОВЛЕНИЕ — я устанавливаю на MacBook под управлением Maverick (10.9.3) — До установки Maverick мой код работал нормально

Вот результат моих усилий по установке cpan

 cpan[1]> force install Imager::File::PNG
Reading '/Users/turner/.cpan/Metadata'
  Database was generated on Tue, 24 Jun 2014 13:17:02 GMT
Running install for module 'Imager::File::PNG'
Checksum for /Users/turner/.cpan/sources/authors/id/T/TO/TONYC/Imager-File-PNG-0.89.tar.gz ok
Scanning cache /Users/turner/.cpan/build for sizes
............................................................................DONE
Configuring T/TO/TONYC/Imager-File-PNG-0.89.tar.gz with Makefile.PL
PNG: building independently
PNG: Found via pkg-config libpng
PNG: Test code failed: Can't link/include 'png15'
PNG: v1.6: includes found - libraries found
PNG: Test code failed: Can't link/include 'png16'
PNG: v1.5: includes found - libraries found
PNG: Test code failed: Can't link/include 'png15'
PNG: v1.4: includes found - libraries found
PNG: Test code failed: Can't link/include 'png14'
PNG: v1.2: includes found - libraries found
PNG: Test code failed: Can't link/include 'png12'
PNG: v1.0: includes not found - libraries not found
PNG: base ( libz): includes found - libraries found
PNG: Test code failed: Can't link/include 'png', 'z'
PNG: v1.6 ( libz): includes found - libraries found
PNG: Test code failed: Can't link/include 'png16', 'z'
PNG: v1.5 ( libz): includes found - libraries found
PNG: Test code failed: Can't link/include 'png15', 'z'
PNG: v1.4 ( libz): includes found - libraries found
PNG: Test code failed: Can't link/include 'png14', 'z'
PNG: v1.2 ( libz): includes found - libraries found
PNG: Test code failed: Can't link/include 'png12', 'z'
PNG: v1.0 ( libz): includes not found - libraries not found
PNG: Checking if the compiler can find them on its own
Warning (mostly harmless): No library found for -lpng
PNG: Test code failed: Can't link/include 'png.h', 'stdio.h', 'png'
OS unsupported: PNG libraries or headers not found
Warning: No success on command[/usr/bin/perl Makefile.PL]
  TONYC/Imager-File-PNG-0.89.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Failed during this command:
 TONYC/Imager-File-PNG-0.89.tar.gz            : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 512
 

Комментарии:

1. показать фактическую ошибку?

2. Сборка из * -0.89.tar.gz ? Это довольно старое (июль 1996 года) и не содержит ни одной из версий с 1.0 по 1.6, которые вы искали.