Page 1 of 1

libMagick.so.10 not in /usr/local/lib after source install

Posted: 2008-11-04T16:20:40-07:00
by blurred_vision
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:

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

Re: libMagick.so.10 not in /usr/local/lib after source install

Posted: 2008-11-06T09:43:33-07:00
by blurred_vision
I got this to work. While I don't know what was the specific underlying cause of the problem, I believe it to be the result of junk left around from my first attempts to build ImageMagick. Simply put, I did a

make uninstall
make clean
make distclean

and started again with a

./configure --without-perl

and all was right with the world.

Re: libMagick.so.10 not in /usr/local/lib after source install

Posted: 2009-08-03T17:06:01-07:00
by SEO
Hi there!

I am getting this same error when trying to install 6.5.4-8 on Cent OS.

convert: error while loading shared libraries: libMagick.so.10: cannot open shared object file: No such file or directory

I followed your instructions and reinstalled ImageMagick, however, it did not work for me.

I was using the following installation instructions:

./configure --prefix=/usr/local --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes
make clean
make
make install

Re: libMagick.so.10 not in /usr/local/lib after source install

Posted: 2009-09-22T11:47:00-07:00
by shihkuang
Hi,

How do you solve this problem?

I couldn't find libMagick.so.10 anywhere in the system. In fact, there is no similar file like libMagick.so
Only libMagickcore exsits.

Is that what we should link to?

Thank you

Version : ImageMagick-6.5.6-3

Re: libMagick.so.10 not in /usr/local/lib after source install

Posted: 2009-09-22T12:17:50-07:00
by magick
It looks like you are running an older version of ImageMagick. Modern versions of ImageMagick install libMagickCore, not libMagick. Try running /usr/local/bin/convert.

Re: libMagick.so.10 not in /usr/local/lib after source insta

Posted: 2011-02-11T16:11:08-07:00
by cacycleworks
I'm currently trying to get php-cgi to work with Imagick tools... So far I've got ImageMagick compiled and installed. Finding my way here you might need to:

Code: Select all

$ su
# cd /usr/bin
# rm convert
# ln -s /usr/local/bin/convert
# /usr/local/bin/convert -version
Version: ImageMagick 6.6.7-6 2011-02-11 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP   
BTW, in case someone else comes here on a similar adventure, here's another great post I'm using. And this talks some about it too.