Skip to main content

All your Imagick Install Problem!!

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

    Comments

    Anonymous said…
    this post is DANGEROUS. following the first few lines will install a shitload of gnome and X stuff on a server. downright stupid.
    Anonymous said…
    Thank you for the comment I have updated the post with a warning information.

    Popular posts from this blog

    15 things that you should give up to be happy

    1. Give up your need to always be right.  There are so many of us who can’t stand the idea of being wrong – wanting to always be right – even at the risk of ending great relationships or causing a great deal of stress and pain, for us and for others. It’s just not worth it. Whenever you feel the ‘urgent’ need to jump into a fight over who is right and who is wrong, ask yourself this question:  “Would I rather be right, or would I rather be kind?” Wayne Dyer. What difference will that make? Is your ego really that big? 2. Give up your need for control.  Be willing to give up your need to always control everything that happens to you and around you – situations, events, people, etc. Whether they are loved ones, coworkers, or just strangers you meet on the street – just allow them to be. Allow everything and everyone to be just as they are and you will see how much better will that make you feel. “By letting it go it all gets done. The world is won by those who let it go. But when

    XAMPP: Couldn't start MySQL!

    XAMPP: Couldn't start MySQL! Trying to run mysql on ubuntu 10.10 and give this vauge error "XAMPP: Couldn't start MySQL!" Try this 1. Open a terminal. 2. run this command sudo chown -hR root /opt/lampp 3. then run this sudo chmod -R 777 /opt/lampp 4. Now Restart XAMPP sudo /opt/lampp/lampp restart U are all set. And if u r getting the follwing warning after restarting "Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored" 1.Open terminal 2.Migrate to /opt/lampp/etc 3.run the command sudo chmod 755 my.cnf

    Show full path in iterm

    Show Full Path in Terminal Opern Iterm, duh! Go to you home direct Type:   cd ~ Type:   mate .bashrc Type:  export PS1=" " Between the quotation marks, you can add the following lines to customize your Terminal prompt: \d – Current date \t – Current time \h – Host name \# – Command number \u – User name \W – Current working directory (ie: Desktop/) \w – Current working directory, full path (ie: /Users/Admin/Desktop) export PS1="\u@\h\w$ "   which will look like:  Admin@MacBook~Desktop/$ " mate is text mate you need to install it in mac to make it work or you can also use free editors like nano, vi/vim. Source: soniajahid