Jump to content

Recommended Posts

I have installed ImageMagick on centos 5.3

used rpmforge

when i tried to call calss Imagick i faced this error.

 

Fatal error: Class 'Imagick' not found in /home/domain/public_html/images/test1.php on line 6

 

Ho do I fix it ?

Is there any need to create file imagick.ini ?

If yes in which folder ?

 

Location of ImageMagick is

/usr/lib/ImageMagick-6.2.8/

 

Please Help me

:(

please check my log

 

root@server [~]# yum -y install ImageMagick-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* rpmforge: fr2.rpmfind.net
rubyworks                                                                    |  951 B     00:00
rpmforge                                                                     | 1.1 kB     00:00
updates-burstnet                                                             |  951 B     00:00
centos-burstnet                                                              | 1.1 kB     00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package ImageMagick-devel.i386 0:6.2.8.0-4.el5_1.1 set to be updated
--> Processing Dependency: bzip2-devel for package: ImageMagick-devel
--> Processing Dependency: ghostscript-devel for package: ImageMagick-devel
--> Processing Dependency: lcms-devel for package: ImageMagick-devel
--> Running transaction check
---> Package bzip2-devel.i386 0:1.0.3-4.el5_2 set to be updated
---> Package ghostscript-devel.i386 0:8.15.2-9.4.el5_3.7 set to be updated
---> Package lcms-devel.i386 0:1.18-0.1.beta1.el5_3.2 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
Package                  Arch        Version                         Repository               Size
====================================================================================================
Installing:
ImageMagick-devel        i386        6.2.8.0-4.el5_1.1               centos-burstnet          75 k
Installing for dependencies:
bzip2-devel              i386        1.0.3-4.el5_2                   centos-burstnet          38 k
ghostscript-devel        i386        8.15.2-9.4.el5_3.7              updates-burstnet         40 k
lcms-devel               i386        1.18-0.1.beta1.el5_3.2          updates-burstnet        156 k

Transaction Summary
====================================================================================================
Install      4 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 309 k
Downloading Packages:
(1/4): bzip2-devel-1.0.3-4.el5_2.i386.rpm                                    |  38 kB     00:00
(2/4): ghostscript-devel-8.15.2-9.4.el5_3.7.i386.rpm                         |  40 kB     00:00
(3/4): ImageMagick-devel-6.2.8.0-4.el5_1.1.i386.rpm                          |  75 kB     00:00
(4/4): lcms-devel-1.18-0.1.beta1.el5_3.2.i386.rpm                            | 156 kB     00:00
----------------------------------------------------------------------------------------------------
Total                                                               287 kB/s | 309 kB     00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : lcms-devel                                        [1/4]
  Installing     : bzip2-devel                                       [2/4]
  Installing     : ghostscript-devel                                 [3/4]
  Installing     : ImageMagick-devel                                 [4/4]

Installed: ImageMagick-devel.i386 0:6.2.8.0-4.el5_1.1
Dependency Installed: bzip2-devel.i386 0:1.0.3-4.el5_2 ghostscript-devel.i386 0:8.15.2-9.4.el5_3.7 lcms-devel.i386 0:1.18-0.1.beta1.el5_3.2
Complete!
root@server [~]# pecl install channel://pecl.php.net/imagick-2.0.0b3
downloading imagick-2.0.0b3.tgz ...
Starting to download imagick-2.0.0b3.tgz (65,923 bytes)
.................done: 65,923 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Please provide the prefix of Imagemagick installation [autodetect] : autodetect
building in /var/tmp/pear-build-root/imagick-2.0.0b3
running: /root/tmp/pear/imagick/configure --with-imagick
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
ERROR: `/root/tmp/pear/imagick/configure --with-imagick' failed
root@server [~]#

Help plz

8)

 

Fixed tried alternative way: cpanel forums helped me.

 

# cd /usr/local/src
# wget http://pecl.php.net/get/imagick-2.2.2.tgz
# tar zxvf ./imagick-2.2.2.tgz
# cd imagick-2.2.2
# phpize
# ./configure
# make
# make test
# make install

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.