Ubuntu_ImageMagick_安装和问题

 

#安装

     1. sudo apt-get install libjpeg62 (not sure if this is required or just dev is enough)

     2. sudo apt-get install libjpeg62-dev

     3.   卸载以前所有和imagemagick相关的包, 如: 

          sudo aptitude purge imagemagick, 卸载libmagick9等

     4. install libperl-dev     

          sudo aptitude install libperl-dev

     5. install rmagick

          svn co https://www.imagemagick.org/subversion/ImageMagick/branches/ImageMagick-6.5.6

          cd ImageMagick-6.5.6 && ./configure && make & sudo make install

 

error while loading shared libraries: libMagickCore.so.4:

解决方法:

 -1 Type

    sudo ldconfig /usr/local/lib

-2 不太好的方法

place source code archive ImageMagick.tar.gz somewhere in Your home directory

 

 

error while loading shared libraries

解决方法:

1 运行 /sbin/ldconfig –v 更新
2 运行前执行 export LD_LIBRARY_PATH=/usr/local/lib

 

 

你可能感兴趣的:(ImageMagick)