Hello,
So you are having problem installing ImageMagick! Find the errors below and the solution to resolve it, right next to it.
First of all if you are installing the software after December 2011(offcourse ur!!), always always install it from the source stop using the stupid useless(just 4r this case) yum command.
I'll show you how to install the software from the source:
sudo yum groupinstall "Development Tools"
( the above command will install the following tools MAKE SURE TO USE IT WITH CAUTION bison,byacc,cscope,ctags,cvs,diffstat,doxygen,flex,gcc,gcc-c++,gcc-gfortran,gettext,git,indent,intltool,libtool,patch,patchutils,rcs,redhat-rpm-config,rpm-build,subversion,swig,systemtap)
sudo yum install rpmdevtool libtool-ltdl-devel
yum install freetype-devel ghostscript-devel libwmf-devel
jasper-devel lcms-devel bzip2-devel librsvg2 librsvg2-devel
liblpr-1 liblqr-1-devel libtool-ltdl-devel autotrace-devel
yum -y install gcc automake autoconf libtool make
yum install libtool-ltdl libtool-ltdl-devel freetype
freetype-devel fontconfig-devel
wget
http://launchpad.net/imagemagick/main/6.7.3-7/+download/ImageMagick-6.7.3-7.tar.gz
tar -xvf ImageMagick-6.7.3-7.tar.gz
cd ImageMagick-6.7.3-7
./configure
make
make install
cd ..
wget http://pecl.php.net/get/imagick-3.0.1.tgz
yum install php-pear
yum remove php-pear
yum install php-pear
tar xvf imagick-3.0.1.tgz
cd imagick-3.0.1
yum install ImageMagick-devel
phpize && ./configure
--with-imagick=/usr/lib64/php/modules/
make
sudo make install
sudo ldconfig /usr/local/lib
/usr/local/bin/convert logo: logo.gif
yum --enablerepo=epel install jasper jasper-libs jasper-devel
pecl install imagick
vi /etc/php.ini (add "extension=imagick.so" inside
the file)
service httpd restart
Please ignore below
X-X-X-X
1. Login the server :) ... go create a directory, I named it Installation. Go inside it.
cd Installation
wget http://launchpad.net/imagemagick/main/6.7.3-7/+download/ImageMagick-6.7.3-7.tar.gz
Now the important thing to notice is the version no, ImageMagick-6.7.3-7.tar.gz, 6.7.3-7 you need to visit the website and download the new version.
2. wget will download the tar file(duh!). U need to extract it
tar xvfz ImageMagick-6.7.3-7.tar.gz
cd ImageMagick-6.7.3-7.tar.gz
3. Run the commands in the following manner
./configure
make
sudo make install
sudo ldconfig /usr/local/lib
Now dont ask I dont want to explain the commands(kid stuff!)
X-X-X-X
Error's
First:
Cannot find build files at '/usr/lib64/php/build'. Please check your PHP installation.
So resolve this error you need to remove and install new packges:
yum install ImageMagick
yum install php-pear(just to check of you get any conflicts if u do then prceed to the next step)
yum remove php-pear
yum install php-pear
Second:
This command should/will resolve most of the dependency required by ImageMagick
http://www.imagemagick.org/Usage/api/#building
yum -y install gcc automake autoconf libtool make
So you are having problem installing ImageMagick! Find the errors below and the solution to resolve it, right next to it.
First of all if you are installing the software after December 2011(offcourse ur!!), always always install it from the source stop using the stupid useless(just 4r this case) yum command.
I'll show you how to install the software from the source:
Please ignore below
X-X-X-X
1. Login the server :) ... go create a directory, I named it Installation. Go inside it.
cd Installation
wget http://launchpad.net/imagemagick/main/6.7.3-7/+download/ImageMagick-6.7.3-7.tar.gz
Now the important thing to notice is the version no, ImageMagick-6.7.3-7.tar.gz, 6.7.3-7 you need to visit the website and download the new version.
2. wget will download the tar file(duh!). U need to extract it
tar xvfz ImageMagick-6.7.3-7.tar.gz
cd ImageMagick-6.7.3-7.tar.gz
3. Run the commands in the following manner
./configure
make
sudo make install
sudo ldconfig /usr/local/lib
Now dont ask I dont want to explain the commands(kid stuff!)
X-X-X-X
Error's
First:
Cannot find build files at '/usr/lib64/php/build'. Please check your PHP installation.
So resolve this error you need to remove and install new packges:
yum install ImageMagick
yum install php-pear(just to check of you get any conflicts if u do then prceed to the next step)
yum remove php-pear
yum install php-pear
Second:
This command should/will resolve most of the dependency required by ImageMagick
http://www.imagemagick.org/Usage/api/#building
yum -y install gcc automake autoconf libtool make
Comments