You are not logged in.
mogrify: error while loading shared libraries: libhx509.so.3: cannot open shared object file: No such file or directory
Seems like imagemagick needs to be rebuild... or is it a problem with my system alone??
Offline
Is your system up to date? imagemagick-6.4.8.2-1.
Offline
Name : imagemagick
Version : 6.4.8.2-1
Name : heimdal
Version : 1.2.1-2
mogrify: error while loading shared libraries: libhx509.so.3: cannot open shared object file: No such file or directory
/usr/lib/libhx509.so.4 is owned by heimdal 1.2.1-2
Offline
Is this i686 or x86_64. I have no problems on i686.
Offline
ImageMagick is out of date anyway, which happens quite often. And for some weird reason Snowman keeps updating it like once a week even though he doesnt really have to. Im curious what changes do the developers of the application do on a daily basis that would explain so frequent releases.
Last edited by dolby (2009-01-04 11:54:29)
There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums. That is why we avoid it. -- ewaller (arch linux forum moderator)
Offline
@Allan i686
Offline
I have the same problem, with (barely) newer package versions:
heimdal 1.2.1-3
imagemagick 6.4.9.2-1
I am using the i686 versions.
[justin@lapdawg pics]$ convert --version
convert: error while loading shared libraries: libhx509.so.3: cannot open shared object file: No such file or directory
[justin@lapdawg pics]$ ldd $(which convert) | grep libhx
libhx509.so.3 => not found
libhx509.so.3 => not found
libhx509.so.4 => /usr/lib/libhx509.so.4 (0xb5d38000)
[justin@lapdawg pics]$ sudo ln -s /usr/lib/libhx509.so /usr/lib/libhx509.so.3
[justin@lapdawg pics]$ ldd $(which convert) | grep libhx
libhx509.so.3 => /usr/lib/libhx509.so.3 (0xb64d1000)
[justin@lapdawg pics]$ convert --version
Version: ImageMagick 6.4.9-2 2009-02-08 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
[justin@lapdawg pics]$
I fixed it above by making a new symlink, faking an old version of the library. I'm sure this is a bad thing to do. Then again I wonder why imagemagick needs encryption abilities (from heimdal)..? I'm going to try compiling the imagemagick package myself later.
Seems strange that imagemagick finds the newer version but still wants the old version of the heimdal library..?
As a side note, imagemagick did not work with my old version of the openexr package. I had version 1.4.1 I think, some libraries were missing like in this case. I upgraded the openexr package and it works fine. The PKGBUILD might want to require a version above 1.4.1 openexr at least.
Offline
Welcome to the forums.
This is what's happening on my end. Everything's working.
~ > pacman -Q heimdal imagemagick
heimdal 1.2.1-3
imagemagick 6.4.9.2-1
~ > convert --version
Version: ImageMagick 6.4.9-2 2009-02-07 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
~ > ldd $(which convert) | grep libhx
libhx509.so.4 => /usr/lib/libhx509.so.4 (0x00007ffcdfb20000)
Offline
Symlinks to libraries are bad.... Make sure your system is fully up to date. Then, if this is still an issue, run "lddd" from the devtools package and look in the raw output for libhx509.so.3 to find out what package needs rebuilt. Try reinstalling that package and, if that does not help, file a bug report.
Offline
I'm sorry it's taken so long for my reply. Thank you skottish and Allan for the welcome and your help. In order to help anyone else who googles and finds this post (like I did) I wanted to mention I found the problem/solution.
The solution is to upgrade ghostscript to be >= 8.64. The rest of the post is the convoluted story of how I found out...
The packager requires heimdal >= 1.2.1 in the PKGBUILD for imagemagick. heimdal libraries are actually a requirement of ghostscript, not imagemagick. However, the ghostscript package does not list heimdal as a requirement, as it should. Perhaps this is the reason the imagemagick packager added heimdal in the first place? Chaos ensues!
I did not realize the 'ldd' command lists the libraries needed for a binary, as well as the libraries needed by those libraries, and those libraries... etc. I found the 'readelf' command (with the --dynamic flag) will list just the immediate dependencies of a program/library. Then I made a perl script to call readelf and pacman to get a better view of the dependency "tree".
The dependency tree of the "broken" convert:
/usr/bin/convert (imagemagick)
|-- libMagickCore.so.2 (imagemagick)
|-- libMagickWand.so.2 (imagemagick)
|-- liblcms.so.1 (lcms)
|-- libtiff.so.3 (libtiff)
|-- libfreetype.so.6 (freetype2)
|-- libjasper.so.1 (jasper)
|-- libjpeg.so.62 (libjpeg)
|-- libgs.so.8 (ghostscript)
| |-- libcupsimage.so.2 (libcups)
| |-- libcups.so.2 (libcups)
| |-- libgssapi.so.2 (heimdal)
| | |-- libhx509.so.4 (heimdal)
| | `-- libsqlite3.so.0 (sqlite3)
| |-- libheimntlm.so.0 (heimdal)
| |-- libkrb5.so.25 (heimdal)
| |-- libhx509.so.3 (?) <---- THE CULPRIT
| |-- libcom_err.so.2 (e2fsprogs)
| |-- libcrypto.so.0.9.8 (openssl)
| |-- libasn1.so.8 (heimdal)
| |-- libwind.so.0 (heimdal)
| |-- libroken.so.18 (heimdal)
| |-- libgnutls.so.26 (gnutls)
| |-- libtasn1.so.3 (libtasn1)
| `-- libgcrypt.so.11 (libgcrypt)
|-- libpng12.so.0 (libpng)
|-- libfontconfig.so.1 (fontconfig)
| `-- libexpat.so.1 (expat)
|-- libXext.so.6 (libxext)
| `-- libXau.so.6 (libxau)
|-- libXt.so.6 (libxt)
|-- libIlmImf.so.6 (openexr)
|-- libImath.so.6 (ilmbase)
|-- libHalf.so.6 (ilmbase)
|-- libIex.so.6 (ilmbase)
|-- libIlmThread.so.6 (ilmbase)
|-- libcairo.so.2 (cairo)
| |-- libxcb.so.1 (libxcb)
| | `-- libXdmcp.so.6 (libxdmcp)
| `-- libXrender.so.1 (libxrender)
|-- libxml2.so.2 (libxml2)
|-- libltdl.so.7 (libtool)
|-- libSM.so.6 (libsm)
| `-- libuuid.so.1 (e2fsprogs)
`-- libICE.so.6 (libice)
Hopefully the tree makes it easier to see ghostscript is the one trying to use libhx509.so.3, our no longer existing library file. I will submit bug reports for ghostscript and imagemagick packages.
Offline