[imagemagick]binaries not found on gallery module configure when imagemagick installed/tested

mikeah21

Joined: 2007-03-15
Posts: 2
Posted: Thu, 2007-03-15 23:14

Installed imagemagick 6.3.2 for Mac PowerPC and tested the installation afterwards with the imagemagick test, showing the it was a good installation.

Trying to configure the module in Gallery 2 and it fails with the following information:

realpath(/private/ImageMagick-6.3.2/bin/)
realpath(/Library/WebServer/)
Loading plugin imagemagick
imagemagick plugin successfully instantiated
Check the version of the imagemagick plugin
The version of the imagemagick plugin is ok
getcwd()
chdir(/Library/WebServer/g2gfx/tmp/)
file_exists(/private/ImageMagick-6.3.2/bin/gm)
realpath(/private/ImageMagick-6.3.2/bin/identify)
realpath(/Library/WebServer/)
getParameter exec.beNice for core plugin
Executing: ( "/private/ImageMagick-6.3.2/bin/identify"
"/Library/WebServer/Documents/gallery2/modules/imagemagick/data/test.gif"
) 2>/Library/WebServer/g2gfx/tmp/g2dbg0AqHx8
getParameter exec.expectedStatus for core plugin
file_exists(/Library/WebServer/g2gfx/tmp/g2dbg0AqHx8)
filesize(/Library/WebServer/g2gfx/tmp/g2dbg0AqHx8)
fopen(/Library/WebServer/g2gfx/tmp/g2dbg0AqHx8, r, 0)
feof(Resource id #90)
fgets(Resource id #90, 4096)
feof(Resource id #90)
fgets(Resource id #90, 4096)
feof(Resource id #90)
fgets(Resource id #90, 4096)
feof(Resource id #90)
fgets(Resource id #90, 4096)
feof(Resource id #90)
fclose(Resource id #90)
unlink(/Library/WebServer/g2gfx/tmp/g2dbg0AqHx8)
Regular Output:
Error Output:
dyld: Library not loaded: /ImageMagick-6.3.2/lib/libMagick.10.dylib
Referenced from: /private/ImageMagick-6.3.2/bin/identify
Reason: image not found
Status: 133 (expected 0)
file_exists(/private/ImageMagick-6.3.2/bin/gm)
tempnam(/Library/WebServer/g2gfx/tmp/, imgk_)
realpath(/private/ImageMagick-6.3.2/bin/convert)
realpath(/Library/WebServer/)
Executing: ( "/private/ImageMagick-6.3.2/bin/convert" "-size" "200x200"
"-geometry" "200x200"
"/Library/WebServer/Documents/gallery2/modules/imagemagick/data/test.gif"
"/Library/WebServer/g2gfx/tmp/imgk_f1nJNt" )
2>/Library/WebServer/g2gfx/tmp/g2dbgqPaf2z
file_exists(/Library/WebServer/g2gfx/tmp/g2dbgqPaf2z)
filesize(/Library/WebServer/g2gfx/tmp/g2dbgqPaf2z)
fopen(/Library/WebServer/g2gfx/tmp/g2dbgqPaf2z, r, 0)
feof(Resource id #92)
fgets(Resource id #92, 4096)
feof(Resource id #92)
fgets(Resource id #92, 4096)
feof(Resource id #92)
fgets(Resource id #92, 4096)
feof(Resource id #92)
fgets(Resource id #92, 4096)
feof(Resource id #92)
fclose(Resource id #92)
unlink(/Library/WebServer/g2gfx/tmp/g2dbgqPaf2z)
Regular Output:
Error Output:
dyld: Library not loaded: /ImageMagick-6.3.2/lib/libMagick.10.dylib
Referenced from: /private/ImageMagick-6.3.2/bin/convert
Reason: image not found
Status: 133 (expected 0)
unlink(/Library/WebServer/g2gfx/tmp/imgk_f1nJNt)
file_exists(/private/ImageMagick-6.3.2/bin/gm)
file_exists(/private/ImageMagick-6.3.2/bin/combine)
file_exists(/private/ImageMagick-6.3.2/bin/composite)
file_exists(/private/ImageMagick-6.3.2/bin/gm)
tempnam(/Library/WebServer/g2gfx/tmp/, imgk_)
Executing: ( "/private/ImageMagick-6.3.2/bin/composite" "-geometry"
"+0+0"
"/Library/WebServer/Documents/gallery2/modules/imagemagick/data/test.jpg"
"/Library/WebServer/Documents/gallery2/modules/imagemagick/data/test.gif"
"/Library/WebServer/g2gfx/tmp/imgk_6N6UWO" )
2>/Library/WebServer/g2gfx/tmp/g2dbg3IRbJx
file_exists(/Library/WebServer/g2gfx/tmp/g2dbg3IRbJx)
filesize(/Library/WebServer/g2gfx/tmp/g2dbg3IRbJx)
fopen(/Library/WebServer/g2gfx/tmp/g2dbg3IRbJx, r, 0)
feof(Resource id #94)
fgets(Resource id #94, 4096)
feof(Resource id #94)
fgets(Resource id #94, 4096)
feof(Resource id #94)
fgets(Resource id #94, 4096)
feof(Resource id #94)
fgets(Resource id #94, 4096)
feof(Resource id #94)
fclose(Resource id #94)
unlink(/Library/WebServer/g2gfx/tmp/g2dbg3IRbJx)
Regular Output:
Error Output:
dyld: Library not loaded: /ImageMagick-6.3.2/lib/libMagick.10.dylib
Referenced from: /private/ImageMagick-6.3.2/bin/composite
Reason: image not found
Status: 133 (expected 0)
unlink(/Library/WebServer/g2gfx/tmp/imgk_6N6UWO)
chdir(/Library/WebServer/Documents/gallery2)

From what I can tell from this, the libMagick.10.dylib library is not loading, but the libraries are installed in the /lib directory of the module. Environment paths are configured correctly I think-one export for /bin, another for /lib. Read/execute on files in /bin and /lib. Also read the Gallery FAQ for setting the absolute path of the binaries, using something like /usr/ImageMagic-6.3.2/bin, which I'm doing. Any ideas on what I can do to get the module working with Gallery? Thanks!

System details are:

Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.4 apache
Webserver = Apache/1.3.33 (Darwin) mod_jk/1.2.6 mod_ssl/2.8.24 OpenSSL/0.9.7l PHP/4.4.4
Database = mysql 4.1.22-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, Thumbnail
Acceleration = none, none
Operating system = Darwin 8.9.1 Darwin Kernel Version 8.9.1: Thu Feb 22 20:58:18 PST 2007; root:xnu-792.18.15~1/RELEASE_PPC Power Macintosh
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/419 (KHTML, like Gecko) Safari/419.3

 
ruetz@oelzgmbh.com

Joined: 2010-04-11
Posts: 3
Posted: Sun, 2010-04-11 23:59

Hi,

I had a similar problem running Gallery2 on my Mac OS X 10.5 under MAMP:

It produced the following error code:

code: "ImageMagick reported an error: dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib Referenced from: /opt/local/bin/convert Reason: Incompatible library version: convert requires version 11.0.0 or later, but libfreetype.6.dylib provides version 10.0.0"

Unlike the error message the problem was not /opt/local/lib/libfreetype.6.dylib but the same file in the MAMP-directory. I replaced it with the Macports-file and now everything works fine.

(to find all libfreetype.6.lib files on your Mac just enter "locate libfreetype.6.lib" in the terminal, then move the new libfreetype.6.lib from macports to MAMP)