error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
plakshman
Posts: 11
Joined: 2015-07-10T12:32:08-07:00
Authentication code: 1151

error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by plakshman »

Hi,

Being new to both IM 6.7 and Solaris10-sparc, i found that i have to feed each error with the packages IM is looking for to make it working by testing
convert logo: logo.gif per IM's instructions.

After installing the required libpng1.2.49 , i still get the error

> convert logo: logo.gif
> ld.so.1: convert: fatal: libpng14.so.14: open failed: No such file or directory


wondering if libpng14 is an update on the 1.2.49 OR is it a separate package to be installed by side of the 1.2.49 ??

is there a favorite place to find / download these packages ?
(i downloaded few packages from unixpackages for a price but i already have installed the only available libpng-1.2.49 already)

thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by fmw42 »

libpng may need zlib. check if that is in your delegates (convert -list configure)
plakshman
Posts: 11
Joined: 2015-07-10T12:32:08-07:00
Authentication code: 1151

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by plakshman »

yes,

so far is have installed:

lcms2 and its dependencies
(gcc-3.4.6 and libgcc-3.4.6
jpeg-8d
tiff-4.03
zlib-1.2.8 )

libpng-1.2.49 and its dependency
(libiconv-1.14)

i typed :

>convert -list configure
> ld.so.1: convert: fatal: libpng14.so.14: open failed: No such file or directory
Killed.

Also, is there a list per OS type as what standard packages be needed for IM ? (of course not a 100% list but a list of most)

Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by fmw42 »

I am not sure why convert -list configure does not work, unless your version of IM is too old?

There is no standard list of delegates. Each delegate may need its own set of dependencies

However, see http://www.imagemagick.org/download/delegates/
plakshman
Posts: 11
Joined: 2015-07-10T12:32:08-07:00
Authentication code: 1151

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by plakshman »

i have the imagemagick-6.8.6.9-sol10-sparc-local.gz
downloaded from unixpackages.com and installed.

Because i had issues with the ImageMagick-sparc-sun-solaris2.10.tar.gz downloaded from ImageMagick site, for lack of executable
'configure' in the entire directory.

( following the instructions 'install from unix source:

$amgick> tar <file>tar.gz
$magick> cd ImageMagick-6.7.0
$magick> ./configure
$magick> make
)


the executable ./configure was nowhere in the pack except the only - configure.h (help file) !

thanks,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by fmw42 »

i have the imagemagick-6.8.6.9-sol10-sparc-local.gz
downloaded from unixpackages.com and installed.
$magick> cd ImageMagick-6.7.0
I think that should be

Code: Select all

$magick> cd ImageMagick-6.8.6.9
to match the version you downloaded.
246246
Posts: 190
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by 246246 »

plakshman wrote:Hi,

Being new to both IM 6.7 and Solaris10-sparc, i found that i have to feed each error with the packages IM is looking for to make it working by testing
convert logo: logo.gif per IM's instructions.

After installing the required libpng1.2.49 , i still get the error

> convert logo: logo.gif
> ld.so.1: convert: fatal: libpng14.so.14: open failed: No such file or directory


wondering if libpng14 is an update on the 1.2.49 OR is it a separate package to be installed by side of the 1.2.49 ??
As I see your another post, you have try to install both IM 6.7 and 6.8, and your convert requires libpng 1.4.x instead of libpng 1.2.x.

First check your convert version and use ldd.
plakshman
Posts: 11
Joined: 2015-07-10T12:32:08-07:00
Authentication code: 1151

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by plakshman »

sorry about not being specific:

i did un-(tar/gzip)d the *-6.7.0 and tried
$magick> cd ImageMagick-6.7.0 .... and when it did not work,

i resorted to downloading IM-6.8.6.9 from other source and still trying to run the very basic to test IM working

i go to the directory where i have images and issue:

>identify <image>.gif
>ld.so.1: convert: fatal: libpng14.so.14: open failed: No such file or directory

thanks
246246
Posts: 190
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by 246246 »

plakshman wrote: i resorted to downloading IM-6.8.6.9 from other source and still trying to run the very basic to test IM working

i go to the directory where i have images and issue:

>identify <image>.gif
>ld.so.1: convert: fatal: libpng14.so.14: open failed: No such file or directory
So, if you are sure your identify comes from your other source, it definitely requires libpng1.4.x.
You have to install it.

And for sure, try

% ldd /usr/local/bin/identify

(If you know your identify is other place, replace it with your full path.)
It will report all the dependency and currently missing libraries.
Last edited by 246246 on 2015-07-15T18:24:05-07:00, edited 1 time in total.
246246
Posts: 190
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by 246246 »

plakshman wrote: Because i had issues with the ImageMagick-sparc-sun-solaris2.10.tar.gz downloaded from ImageMagick site, for lack of executable
'configure' in the entire directory.
Download file from ImageMagick site is binary, so it doesn't need to configure.
You will be use it with adding proper LD_LIBRARY_PATH.
See http://www.imagemagick.org/script/binary-releases.php
plakshman
Posts: 11
Joined: 2015-07-10T12:32:08-07:00
Authentication code: 1151

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by plakshman »

Download file from ImageMagick site is binary, so it doesn't need to configure.
You will be use it with adding proper LD_LIBRARY_PATH.
- I did untar/gzip that into a IM_HOME directory

$ export MAGICK_HOME="**/**/**/IM_HOME"

$export PATH=$PATH:$MAGICK_HOME/bin [echo and bin added]

$export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MAGICK_HOME/lib [echo and lib is added]


than i typed commands and get:

$convert logo: logo.png
$ld.so.1: convert: fatal: libpng14.so.14: open failed: No such file or directory


on your other reply:


ldd /usr/local/bin/identify
libMagickCore-6.Q16.so.1 => /usr/local/lib/libMagickCore-6.Q16.so.1
libMagickWand-6.Q16.so.1 => /usr/local/lib/libMagickWand-6.Q16.so.1
liblcms2.so.2 => /usr/local/lib/liblcms2.so.2
libtiff.so.5 => /usr/local/lib/libtiff.so.5
libjpeg.so.8 => /usr/local/lib/libjpeg.so.8
libpng14.so.14 => (file not found)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1
libfreetype.so.6 => (file not found)
libexpat.so.1 => (file not found)
libXext.so.0 => /usr/openwin/lib/libXext.so.0
libXt.so.4 => /usr/openwin/lib/libXt.so.4
liblzma.so.5 => (file not found)
libbz2.so => /usr/local/lib/libbz2.so
libxml2.so.2 => /usr/lib/libxml2.so.2
libpthread.so.1 => /usr/lib/libpthread.so.1
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libz.so => /usr/local/lib/libz.so
libSM.so.6 => /usr/openwin/lib/libSM.so.6
libICE.so.6 => /usr/openwin/lib/libICE.so.6
libX11.so.4 => /usr/openwin/lib/libX11.so.4
libm.so.2 => /usr/lib/libm.so.2
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libpng14.so.14 => (file not found)
libfreetype.so.6 => (file not found)
libexpat.so.1 => (file not found)
liblzma.so.5 => (file not found)
libxml2.so.2 (LIBXML2_2.4.30) => (version not found)
libpng14.so.14 => (file not found)
libfreetype.so.6 => (file not found)
libexpat.so.1 => (file not found)
liblzma.so.5 => (file not found)
liblzma.so.5 => (file not found)
libfreetype.so.6 => /usr/sfw/lib/libfreetype.so.6
libz.so.1 => /usr/lib/libz.so.1
libexpat.so.0 => /usr/sfw/lib/libexpat.so.0
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libdl.so.1 => /lib/libdl.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
/platform/SUNW,SPARC-Enterprise-T5120/lib/libc_psr.so.1
/platform/SUNW,SPARC-Enterprise-T5120/lib/libmd_psr.so.1

I guess the the system is wanting the libpng14 , no matter what ...

so, i downloaded the delegate libpng-1.6.16.tar.gz from the IM site and un-tar/gz 'd it.
it's a directory and wondering if that get;s installed and how


Thanks,
plakshman
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by fmw42 »

libpng14.so.14 => (file not found)
This would seem to me to imply that libpng was not installed when the binary was compiled by the IM developers when the Solaris binary was created (or it installed some other version, but is looking for this one). So a potential bug? I am not the expert on this.

So I have moved this thread to the Bugs forum

I think the IM developers need to comment.
plakshman
Posts: 11
Joined: 2015-07-10T12:32:08-07:00
Authentication code: 1151

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by plakshman »

Thank You fmw42,

Since for Solaris-sparc, i only see the download:
ImageMagick-sparc-sun-solaris2.10.tar.gz on the site http://www.imagemagick.org/script/binary-releases.php

are there other older IM versions/installer for Solaris ( libpng installed with the compiled binary) ?

I searched the site but do not seem to have found an archive of some sort for downloading older versions of the IM binary for Solaris-sparc

i much appreciate your help/time on this
thanks
plakshman
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by fmw42 »

I think there are only old source files that you can download but no binaries.

You might search Google to see if anyone else has archived them or made them available
246246
Posts: 190
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: error: libpng14.so.14 - even after installing pkg libpng1.2.49

Post by 246246 »

fmw42 wrote:
libpng14.so.14 => (file not found)
This would seem to me to imply that libpng was not installed when the binary was compiled by the IM developers when the Solaris binary was created (or it installed some other version, but is looking for this one). So a potential bug? I am not the expert on this.

So I have moved this thread to the Bugs forum
I downloaded the official binary ImageMagick-sparc-sun-solaris2.10.tar.gz from ImageMagick and confirmed (with general way) that the convert (and other commands) included in that package requires libpng14.
(As I have no more access to Solaris I use strings as a substitute to check it.)

$ strings convert | grep png
libpng14.so.14

Or cygwin's objdump works better.

Code: Select all

$ LANG=C objdump.exe -p convert

convert:     file format elf32-big

Program Header:
    PHDR off    0x00000034 vaddr 0x00010034 paddr 0x00010034 align 2**2
         filesz 0x000000a0 memsz 0x000000a0 flags r-x
  INTERP off    0x000000d4 vaddr 0x000100d4 paddr 0x000100d4 align 2**0
         filesz 0x00000011 memsz 0x00000011 flags r--
    LOAD off    0x00000000 vaddr 0x00010000 paddr 0x00010000 align 2**16
         filesz 0x000009d8 memsz 0x000009d8 flags r-x
    LOAD off    0x000009d8 vaddr 0x000209d8 paddr 0x000209d8 align 2**16
         filesz 0x000002a8 memsz 0x000002d0 flags rwx
 DYNAMIC off    0x000009ec vaddr 0x000209ec paddr 0x000209ec align 2**2
         filesz 0x00000190 memsz 0x00000190 flags rw-

Dynamic Section:
  NEEDED               libMagickCore.so.4
  NEEDED               libMagickWand.so.4
  NEEDED               libtiff.so.3
  NEEDED               libjpeg.so.62
  NEEDED               libpng14.so.14
  NEEDED               libfontconfig.so.1
  NEEDED               libfreetype.so.6
  NEEDED               libexpat.so.1
  NEEDED               libXext.so.0
  NEEDED               libXt.so.4
  NEEDED               libbz2.so.1
  NEEDED               libxml2.so.2
  NEEDED               libz.so
  NEEDED               libpthread.so.1
  NEEDED               libltdl.so.7
  NEEDED               libSM.so.6
  NEEDED               libICE.so.6
  NEEDED               libX11.so.4
  NEEDED               libsocket.so.1
  NEEDED               libnsl.so.1
  NEEDED               libgomp.so.1
  NEEDED               librt.so.1
  NEEDED               libm.so.2
  NEEDED               libc.so.1
  NEEDED               libgcc_s.so.1
  RPATH                /ImageMagick-6.7.0/lib:/usr/local/lib
  INIT                 0x00010708
  FINI                 0x000109bc
  HASH                 0x000100e8
  STRTAB               0x00010314
  SYMTAB               0x00010194
  STRSZ                0x000002b5
  SYMENT               0x00000010
  DEBUG                0x00000000
  PLTGOT               0x00020bac
  PLTRELSZ             0x0000009c
  PLTREL               0x00000007
  JMPREL               0x0001066c
  RELA                 0x0001063c
  RELASZ               0x000000cc
  RELAENT              0x0000000c
  VERNEED              0x000105fc
  VERNEEDNUM           0x00000002
  VERSYM               0x000105ca

Version References:
  required from libgcc_s.so.1:
    0x0b792650 0x00 03 GCC_3.0
  required from libc.so.1:
    0x0537ccb3 0x00 02 SYSVABI_1.3
And the package does not include so file for png and many other libraries, so the user have to search them and install it.
Unfortunately, it seems there is no more free archive for Solaris package.
plakshman wrote:Thank You fmw42,
are there other older IM versions/installer for Solaris ( libpng installed with the compiled binary) ?

I searched the site but do not seem to have found an archive of some sort for downloading older versions of the IM binary for Solaris-sparc
Only I can find is
https://www.opencsw.org/package/imagemagick/

I have no experience for it, though, but it seems it requires their special libraries, so need to replace all the package from there.
Last edited by 246246 on 2015-07-16T19:08:34-07:00, edited 2 times in total.
Post Reply