Cleanup: Difference between revisions
m 10 revisions |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= | == Manual install methods == | ||
Should work on all cent versions and on both 64bit, and 32bit. | |||
=== ImageMagick === | |||
First we need to remove any ImageMagick RPMs | First we need to remove any ImageMagick RPMs | ||
Line 14: | Line 16: | ||
cd /usr/local/src | cd /usr/local/src | ||
wget | wget http://layer3.liquidweb.com/scripts/plBake/packages/ImageMagick-6.8.2-2.tar.gz | ||
tar zxvf ImageMagick.tar.gz | tar zxvf ImageMagick-6.8.2-2.tar.gz | ||
cd ImageMagick-6.* | cd ImageMagick-6.* | ||
./configure --without-x --with-perl-options=LIBS='-L../magick/.libs -lMagickCore -L../wand/.libs -lMagickWand -lm' | ./configure --without-x --with-perl-options=LIBS='-L../magick/.libs -lMagickCore -L../wand/.libs -lMagickWand -lm' | ||
make && make install | make && make install | ||
/etc/init.d/httpd restart | |||
Now test with the following. | |||
php -i | grep -i imagemagick | |||
=== IMagick === | |||
cd /usr/local/src | cd /usr/local/src | ||
wget http:// | wget http://layer3.liquidweb.com/scripts/plBake/packages/imagick-3.1.0RC2.tgz | ||
tar -zxvf imagick-3.1.0RC2.tgz | tar -zxvf imagick-3.1.0RC2.tgz | ||
cd imagick-3.1.0RC2 | cd imagick-3.1.0RC2 | ||
phpize | phpize | ||
./configure | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig | ||
./configure --without-x --with-perl-options=LIBS='-L../magick/.libs -lMagickCore -L../wand/.libs -lMagickWand -lm' | |||
make && make install | make && make install | ||
echo "extension=imagick.so" >> /usr/local/lib/php.ini | echo "extension=imagick.so" >> /usr/local/lib/php.ini | ||
/etc/init.d/httpd restart | /etc/init.d/httpd restart | ||
Now test with the following. | |||
php -i | grep -i imagick | |||
=== Magickwand === | |||
cd /usr/local/src | cd /usr/local/src | ||
wget http:// | wget http://layer3.liquidweb.com/scripts/plBake/packages/MagickWandForPHP-1.0.9.tar.gz | ||
tar -zxvf MagickWandForPHP-1.0.9 | tar -zxvf MagickWandForPHP-1.0.9.tar.gz | ||
cd MagickWandForPHP-1.0.9 | cd MagickWandForPHP-1.0.9 | ||
ln -s /usr/local/lib/libMagickWand-Q16.so /usr/local/lib/libMagickWand.so | |||
ln -s /usr/local/lib/libMagickCore-Q16.so /usr/local/lib/libMagickCore.so | |||
phpize | phpize | ||
./configure | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && ./configure --without-x --with-perl-options=LIBS='-L../magick/.libs -lMagickCore -L../wand/.libs -lMagickWand -lm' | ||
make && make install | make && make install | ||
echo "extension=magickwand.so" >> /usr/local/lib/php.ini | echo "extension=magickwand.so" >> /usr/local/lib/php.ini | ||
/etc/init.d/httpd restart | /etc/init.d/httpd restart | ||
Now test with the following. | |||
php -i | grep -i magickwand | |||
=== PerlMagick === | |||
cd /usr/local/src/ImageMagick-6.8.2-2/PerlMagick | |||
perl Makefile.PL | |||
cd | |||
make && make install | make && make install | ||
/etc/init.d/httpd restart | /etc/init.d/httpd restart | ||
Now test with the following. | |||
perl -MImage::Magick -e "print \"Module installed.\\n\";" | |||
= Troubleshooting = | == Troubleshooting == | ||
== libMagickCore.so.1: cannot open shared object file == | ==== libMagickCore.so.1: cannot open shared object file ==== | ||
If, after installing ImageMagick, you receive the following error" | If, after installing ImageMagick, you receive the following error" | ||
Line 230: | Line 84: | ||
make && make install | make && make install | ||
== PHP Upgraded? == | ==== PHP Upgraded? ==== | ||
Most everything will need to be recompiled to work with the new php version. | Most everything will need to be recompiled to work with the new php version. | ||
Line 237: | Line 91: | ||
== Cant install the perl module == | ==== Cant install the perl module ==== | ||
It occurs sometimes that you are unable to install the Image::Magick perl module. Determine the version the Image::Magick that the perl installer is trying to add in relation to your '''convert --version''' output. The ImageMagick version must be higher than the perl Image::Magick version. For example, if you have ImageMagick 6.7.0 installed, but you are trying to install Image::Magick 6.77, it will fail. You will need ImageMagick 6.7.7 or higher. | It occurs sometimes that you are unable to install the Image::Magick perl module. Determine the version the Image::Magick that the perl installer is trying to add in relation to your '''convert --version''' output. The ImageMagick version must be higher than the perl Image::Magick version. For example, if you have ImageMagick 6.7.0 installed, but you are trying to install Image::Magick 6.77, it will fail. You will need ImageMagick 6.7.7 or higher. | ||
In this case, get the source files from imagemagick.org and upgrade manually above the attempted install version. | In this case, get the source files from imagemagick.org and upgrade manually above the attempted install version. |
Latest revision as of 23:51, 23 October 2014
Manual install methods
Should work on all cent versions and on both 64bit, and 32bit.
ImageMagick
First we need to remove any ImageMagick RPMs
rpm -qa ImageMagick | xargs rpm -e
Customers may want Ghostscript fonts installed, so install those:
yum install ghostscript-fonts
Next we need to get the source and compile it
cd /usr/local/src wget http://layer3.liquidweb.com/scripts/plBake/packages/ImageMagick-6.8.2-2.tar.gz tar zxvf ImageMagick-6.8.2-2.tar.gz cd ImageMagick-6.* ./configure --without-x --with-perl-options=LIBS='-L../magick/.libs -lMagickCore -L../wand/.libs -lMagickWand -lm' make && make install /etc/init.d/httpd restart
Now test with the following.
php -i | grep -i imagemagick
IMagick
cd /usr/local/src wget http://layer3.liquidweb.com/scripts/plBake/packages/imagick-3.1.0RC2.tgz tar -zxvf imagick-3.1.0RC2.tgz cd imagick-3.1.0RC2 phpize export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --without-x --with-perl-options=LIBS='-L../magick/.libs -lMagickCore -L../wand/.libs -lMagickWand -lm' make && make install echo "extension=imagick.so" >> /usr/local/lib/php.ini /etc/init.d/httpd restart
Now test with the following.
php -i | grep -i imagick
Magickwand
cd /usr/local/src wget http://layer3.liquidweb.com/scripts/plBake/packages/MagickWandForPHP-1.0.9.tar.gz tar -zxvf MagickWandForPHP-1.0.9.tar.gz cd MagickWandForPHP-1.0.9 ln -s /usr/local/lib/libMagickWand-Q16.so /usr/local/lib/libMagickWand.so ln -s /usr/local/lib/libMagickCore-Q16.so /usr/local/lib/libMagickCore.so phpize export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && ./configure --without-x --with-perl-options=LIBS='-L../magick/.libs -lMagickCore -L../wand/.libs -lMagickWand -lm' make && make install echo "extension=magickwand.so" >> /usr/local/lib/php.ini /etc/init.d/httpd restart
Now test with the following.
php -i | grep -i magickwand
PerlMagick
cd /usr/local/src/ImageMagick-6.8.2-2/PerlMagick perl Makefile.PL make && make install /etc/init.d/httpd restart
Now test with the following.
perl -MImage::Magick -e "print \"Module installed.\\n\";"
Troubleshooting
If, after installing ImageMagick, you receive the following error"
convert: error while loading shared libraries: libMagickCore.so.1: cannot open shared object file: No such file or directory
You need to reinstall with the following method:
./configure LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" make && make install
PHP Upgraded?
Most everything will need to be recompiled to work with the new php version.
cd /usr/local/src/lwbake
Go into each folder in turn and run through the phpize and compile scripts. then run a "make clean" and "make && make install" as usual.
Cant install the perl module
It occurs sometimes that you are unable to install the Image::Magick perl module. Determine the version the Image::Magick that the perl installer is trying to add in relation to your convert --version output. The ImageMagick version must be higher than the perl Image::Magick version. For example, if you have ImageMagick 6.7.0 installed, but you are trying to install Image::Magick 6.77, it will fail. You will need ImageMagick 6.7.7 or higher.
In this case, get the source files from imagemagick.org and upgrade manually above the attempted install version.