If you encounter an error similar to this when installing rmagick:
1 Rmagick. So: libwand. so.10: cannot open shared object file: no such file or directory-
The problem should be in the path of the shared library, so you can declare the path before configure:
1 1) Export LD_LIBRARY_PATH =/usr/local/lib
2 2) added "/usr/local/lib" to/etc/lD. So. conf, then
Then configure, make, make install ..
Sent to me for installation on LinuxRmagick steps and experience .. this module is also very troublesome to install .. A lot of things are needed .. and the path problem has been tossing me for a long time... don't talk about it .. the procedure is as follows:
Bytes ---------------------------------------------------------------------------------------------------
The premise for installing rmagick is the following modules...
1) install libjpg
Wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz
Tar-xzvf restart src.v6b.tar.gz
CD jpeg-6b/
./Configure -- enable-shared
Make
Make Test
Make install
2) install libpng
Wget http://easynews.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.16.tar.bz2
Tar-xvjf libpng-1.2.16.tar.bz2
./Configure
Make check
3) install FreeType
Wget http://superb-west.dl.sourceforge.net/sourceforge/freetype/freetype-2.3.2.tar.bz2
Tar-xjvf freetype-2.3.2.tar.bz2
CD freetype-2.3.2
Make
Make
CP objs/. libs/*. So */usr/local/lib/
CP-RV include/*/usr/local/include/
4) install ghostscript
Wget http://umn.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-8.54-gpl.tar.bz2
Tar xjvf ghostscript-8.54-gpl.tar.bz2
CD ghostscript-8.54-gpl
./Configure
Make
Make install
5) install ghostscript Fonts
Wget http://internap.dl.sourceforge.net/sourceforge/gs-fonts/ghostscript-fonts-std-8.11.tar.gz
Tar-xvzf ghostscript-fonts-std-8.11.tar.gz
CP-RV fonts/usr/local/share/ghostscript/
6) install ImageMagick
Wget ftp://ftp.fifi.org/pub/ImageMagick/ImageMagick-6.3.2-9.tar.bz2
Tar-xjvf ImageMagick-6.3.2-9.tar.bz2
CD ImageMagick-6.3.2
./Configure -- without-perl -- without-magick-plus
Export Path = $ path:/usr/local/imagemagic/bin
Edit:/etc/lD. So. conf, add
/Usr/local/ImageMagick/lib
Run ldconfig to check for exceptions ..
Make sure the following configuration information appears:
Ghostscript none GS (8.54)
FreeType -- With-FreeType = Yes
JPEG V1 -- With-JPEG = Yes
PNG -- With-PNG = Yes
Next, make install (run as root)
If the system reports that the font cannot be found after the installation, test the usr/share/fonts/type1 font to the directory/usr/share/ghostscript/fonts.
Bytes ---------------------------------------------------------------------------------------
Now the previous steps of rmagick are completed... now the installation of rmagick is started... It is relatively simple... you can choose two ways:
1. Install gem
Gem install rmagick
Prompt after success:
Bulk updating gem source index for: http://gems.rubyforge.org
Building native extensions. This cocould take a while...
Successfully installed rmagick-X.Y.Z
2. Source Code installation:
1) Export LD_LIBRARY_PATH =/usr/local/lib
2) added "/usr/local/lib" to/etc/lD. So. conf, then
3)./configure
4) Make & make install
Now rmagick installation is complete ..
Now let's test whether rmagick has been installed successfully.
IRB-rubygems-r rmagick
IRB (main): 001: 0> puts magick: long_version if the output information is OK:
This is rmagick 1.15.3 ($ Date: 2007/01/20 15:45:29 $) Copyright (c) 2007 by Timothy P. Hunter
Built with ImageMagick 6.3.2 02/23/07 Q8 http://www.imagemagick.org
Built for Ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.0.0]
Web page: http://rmagick.rubyforge.org
Email: rmagick@rubyforge.org
=> Nil