libMagick.so.10 not in /usr/local/lib after source install
Posted: 2008-11-04T16:20:40-07:00
I'm trying to do a source install of 6.4.4 on a RHEL5.2 system and after the .\configure --without-perl, make, make install I try identify -list list and get the familiar "error while loading shared libraries: libMagick.so.10: cannot open shared object file: No such file or directory". The standard solution is use ldconfig to make sure that /usr/local/lib is in the library load path. I've done that but it doesn't work because libMagick.so.10 is not there anyway. A find / -name "libMagick*" -print shows that it exists nowhere on the system. There are libMagicCore, libMagick++, and libMagickWand.so files in /usr/local/lib.
What am I doing wrong? Do I need to build PerlMagick or is it something else? I do get the following warnings generated during the make:
coders/mat.c: In function ‘ReadMATImage’:
coders/mat.c:620: warning: assignment from incompatible pointer type
coders/mat.c:628: warning: assignment from incompatible pointer type
coders/msl.c: In function ‘MSLSetDocumentLocator’:
coders/msl.c:434: warning: unused parameter ‘location’
coders/msl.c: In function ‘ProcessMSLScript’:
coders/msl.c:7059: warning: missing initializer
coders/msl.c:7059: warning: (near initialization for ‘SAXModules.initialized’)
coders/svg.c: In function ‘ReadSVGImage’:
coders/svg.c:2698: warning: missing initializer
coders/svg.c:2698: warning: (near initialization for ‘SAXModules.initialized’)
./wand/mogrify-private.h:123: warning: ‘respect_parenthesis’ defined but not used
coders/jpeg.c: In function ‘WriteJPEGImage’:
coders/jpeg.c:1572: warning: argument ‘image’ might be clobbered by ‘longjmp’ or ‘vfork’
coders/png.c: In function ‘ReadOnePNGImage’:
coders/png.c:1610: warning: variable ‘image’ might be clobbered by ‘longjmp’ or ‘vfork’
coders/png.c: In function ‘WriteOnePNGImage’:
coders/png.c:6135: warning: argument ‘image’ might be clobbered by ‘longjmp’ or ‘vfork’
The tail end of the output of ./configure --without-perl is:
What am I doing wrong? Do I need to build PerlMagick or is it something else? I do get the following warnings generated during the make:
coders/mat.c: In function ‘ReadMATImage’:
coders/mat.c:620: warning: assignment from incompatible pointer type
coders/mat.c:628: warning: assignment from incompatible pointer type
coders/msl.c: In function ‘MSLSetDocumentLocator’:
coders/msl.c:434: warning: unused parameter ‘location’
coders/msl.c: In function ‘ProcessMSLScript’:
coders/msl.c:7059: warning: missing initializer
coders/msl.c:7059: warning: (near initialization for ‘SAXModules.initialized’)
coders/svg.c: In function ‘ReadSVGImage’:
coders/svg.c:2698: warning: missing initializer
coders/svg.c:2698: warning: (near initialization for ‘SAXModules.initialized’)
./wand/mogrify-private.h:123: warning: ‘respect_parenthesis’ defined but not used
coders/jpeg.c: In function ‘WriteJPEGImage’:
coders/jpeg.c:1572: warning: argument ‘image’ might be clobbered by ‘longjmp’ or ‘vfork’
coders/png.c: In function ‘ReadOnePNGImage’:
coders/png.c:1610: warning: variable ‘image’ might be clobbered by ‘longjmp’ or ‘vfork’
coders/png.c: In function ‘WriteOnePNGImage’:
coders/png.c:6135: warning: argument ‘image’ might be clobbered by ‘longjmp’ or ‘vfork’
The tail end of the output of ./configure --without-perl is:
Code: Select all
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.
Host system type: x86_64-unknown-linux-gnu
Build system type: x86_64-unknown-linux-gnu
Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=yes yes
Static libraries --enable-static=yes yes
Module support --with-modules=yes yes
GNU ld --with-gnu-ld=yes yes
Quantum depth --with-quantum-depth=16 16
High Dynamic Range Imagery
--enable-hdri=no no
Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes yes
FreeType --with-freetype=yes yes
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (8.15.2)
result_ghostscript_font_dir='none'
Ghostscript fonts --with-gs-font-dir=default
Ghostscript lib --with-gslib=yes yes
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no
LQR --with-lqr=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PNG --with-png=yes yes
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes yes
result_windows_font_dir='none'
Windows fonts --with-windows-font-dir=
WMF --with-wmf=yes no
X11 --with-x= yes
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes
X11 Configuration:
X_CFLAGS =
X_PRE_LIBS =
X_LIBS =
X_EXTRA_LIBS =
Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.4.4
CC = gcc -std=gnu99
CFLAGS = -fopenmp -g -O2 -Wall -W
MAGICK_CFLAGS = -fopenmp -g -O2 -Wall -W
CPPFLAGS = -I/usr/local/include/ImageMagick
PCFLAGS = -fopenmp
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -lfreetype
MAGICK_LDFLAGS = -L/usr/local/lib -lfreetype
LIBS = -lMagickCore -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread
CXX = g++
CXXFLAGS = -g -O2 -Wall -W