• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1709
  • Last Modified:

PHP Imagick reading certain images produces 502 Bad Gateway

I have written a PHP routine to read a high-resolution (300-350ppi) CMYK JPEG image, convert it to sRGB and down size it to 72ppi. The script seems to be working fine for most images, but some images cause the server to return a 502 Bad Gateway page. How can I determine what error is being generated and what's causing the error.

I original had the following command
$img = new Imagick($file_full_path);

Open in new window

I've tried creating an empty Imagick object and reading the file into it. fopen($file_full_path) does not produce any errors but if I then try to use a readImageFile command, I get the same results.

The JPEG file I'm working with is less than 5MB. I have tried resaving the image in Photoshop. Any suggestions?
0
Kim Walker
Asked:
Kim Walker
  • 29
  • 27
2 Solutions
 
Chris SandriniSenior System EngineerCommented:
Hi

Can you track it down on what command it fails?

If you have access to shell there is a some debug options using imagemagick

http://www.imagemagick.org/script/command-line-options.php#debug
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
It's the command I posted in my original question:
$img = new Imagick($file_full_path);

Open in new window

I do have access to shell, but I don't know what the equivalent shell command would be.

I have determined that several of the images in a particular folder produce the error. I've tried resaving the images, moving the images to a different folder, resizing the images, removing paths from the image, removing the profile from the image, changing the folder name, changing the file name. Nothing seems to change it.
0
 
Chris SandriniSenior System EngineerCommented:
have you also checked permissions?

Can you grat access to an image that is not working? I try it on my server...
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
They seem to have the same permissions as images that are working which I believe is 644. Unfortunately, last night I tried to update to imagick-3.1.0RC1 and now I can't get imagick to load. My appache error log has:
/usr/sbin/httpd: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so: undefined symbol: MagickWandGenesis

Open in new window

I've tried uninstalling and reinstalling 3.0.1 but I continue to get this error and phpinfo() is not listing ImageMagick as an installed extension.
0
 
Chris SandriniSenior System EngineerCommented:
Might be a symlink error

check what this command says

ldd /usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so

Open in new window

0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
ldd: warning: you do not have execution permission for `/usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so'
 libc.so.6 => /lib64/libc.so.6 (0x00002b05bd70a000)
 /lib64/ld-linux-x86-64.so.2 (0x000000377b400000)

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
hm

can you check in your php extension directory if ou have a file called imagick.so and if this is a symlink or not?

For example

find / -name "imagick.so" -ls

Open in new window

0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
It was found in three locations
8176127  924 -rwxr-xr-x   1 root     root       938517 Apr 11 15:02 /home/admin/imagick-3.1.0RC1/modules/imagick.so
8176124  924 -rwxr-xr-x   1 root     root       938517 Apr 11 15:02 /home/admin/imagick-3.1.0RC1/.libs/imagick.so
5299912  924 -rw-r--r--   1 root     root       939685 Apr 12 07:11 /usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so

Open in new window

I have tried several times this morning to reinstall 3.0.1. How do I determine if this is a symlink or not?
0
 
Chris SandriniSenior System EngineerCommented:
did you copy the new imagick.so file to the extensions folder?

show also the output of

grep imagick.so /path/to/php.ini

ajust the path so it points to your php.ini file
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
No, I don't even know how to copy a file in linux command line. I assume the "yum install" put it there.

The output is simply "extension=imagick.so".
0
 
Chris SandriniSenior System EngineerCommented:
I would completely uninstall imagemagick and reinstall it.

pecl uninstall imagick
yum remove ImageMagick*

Open in new window


and then reinstall

yum install ImageMagick
pecl install imagick

Open in new window

0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
I've done almost the exact same commands repeatedly this morning. But I just noticed something when I did it this time. When I executed the yum remove ImageMagick*, I received several lines of preparation feedback then,
No Match for argument: ImageMagick-6.7.6-4.tar.gz
No Packages marked for removal.

Open in new window

Then when I entered "yum install ImageMagick", I receive several more lines of preparation feedback then,
Package ImageMagick-6.2.8.0-4.e15_5.3.x86_64 already installed and latest version
Package ImageMagick-6.2.8.0-4.e15_5.3.i386 already installed and latest version
Nothing to do

Open in new window

It's as if the remove and the install are looking at two different versions.
0
 
Chris SandriniSenior System EngineerCommented:
can you run

rpm -qa | grep -i imagemagick
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
OK. I did a yum reinstall ImageMagick which reinstalled 6.2.8. Then when I did a remove ImageMagick it actually did execute the remove to the same 6.2.8 version. I then did a yum install ImageMagick which executed properly.

However, when I try to pecl install imagick, I get lots of warnings and errors then "ERROR: `make' failed". I think I need to redownload 3.0.1.
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
Sorry, I didn't see your last post. When I do the rpm, I get
ImageMagick-6.2.8.0-4.e15_5.3
ImageMagick-6.2.8.0-4.e15_5.3

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
you can delete them with

rpm -e ImageMagic*
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
error: package ImageMagick-6.7.6-4 is not installed
error: package ImageMagick-6.7.6-4.tar.gz is not installed

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
ah sorry you have some packages in your folder.... run

rpm -e ImageMagick
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
error: "ImageMagick" specifies multiple packages

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
weird that you have 2 rpms with exact the same name. I'd try to remove everything

yum remove ImageMagick

check if you still have rpms with that name

rpm -qa | grep -i imagemagick
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
I did not receive any response from rpm -qa | grep -i imagemagick.
0
 
Chris SandriniSenior System EngineerCommented:
That means that everything has been deleted.... now you can start freshly with your installation.

Get the newest version from here
http://www.imagemagick.org/script/binary-releases.php?ImageMagick=hsqigb111shrjar07cf7e56lf3#unix

Take the RPM either i386 or x86_64 depending what architecture you are using. (you can find out by running "uname -a"

once you have that RPM install it with rpm -ivh /path/to/xxx.rpm
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
Can I use wget with that url? I only have SSH and FTP access to my server and I'm not sure how to get to the FTP directory from SSH. I also have DirectAdmin control panel. I can probably figure out how to get to the FTP directory. But it'd be easier with wget.
0
 
Chris SandriniSenior System EngineerCommented:
You can directly install it

 If i386 (x86 32bit)

rpm -ivh http://www.imagemagick.org/download/linux/CentOS/i386/ImageMagick-6.7.6-5.i386.rpm

Open in new window


if 64bit

rpm -ivh http://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-6.7.6-5.x86_64.rpm

Open in new window

0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
It lists several failed dependencies -- libHalf.so.4, libIex.so.4, libIlmImf.so.4, libImath.so.4, etc.
0
 
Chris SandriniSenior System EngineerCommented:
Depending on what yum version you have you could install the rpm with. (choose the right one. x86 or 64)

yum install http://www.imagemagick.org/download/linux/CentOS/i386/ImageMagick-6.7.6-5.i386.rpm

Open in new window


OR

Install them with yum before. You can search for it like this

 yum whatprovides *libHalf.so*

ilmbase-1.0.1-6.1.el6.x86_64 : Abstraction/convenience libraries
Repo        : rhel-x86_64-server-6.2-security
Matched from:
Filename    : /usr/lib64/libHalf.so.6.0.0
Other       : libHalf.so.6()(64bit)
Filename    : /usr/lib64/libHalf.so.6

Open in new window


The package you need to install would be ilmbase. Install it then with

yum install ilmbase

Open in new window


Do it with all dependencies
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
When I typed in line 1 above, I got this response:
[root@s admin]# yum whatprovides *libHalf.so*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: p3mirror02.cloud.secureserver.net
 * atomic: www6.atomicorp.com
 * base: p3mirror02.cloud.secureserver.net
 * edc-vm-tools: p3mirror02.cloud.secureserver.net
 * extras: p3mirror02.cloud.secureserver.net
 * updates: p3mirror02.cloud.secureserver.net
Excluding Packages in global exclude list
Finished
atomic/filelists_db                                      | 868 kB     00:00
No Matches found

Open in new window

By the way, I have x86_64
0
 
Chris SandriniSenior System EngineerCommented:
Ok... well :)

install imagemagick with yum and then update it using the rpm...

yum install imagemagick

and after

yum update ImageMagick-6.7.6-5.x86_64.rpm
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
I may overwhelm you here with excess information, but here's the feedback I got. I was surprised to see that it installed both i386 and x86_64. Do we need to update both?
[root@s admin]# yum install ImageMagick
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: p3mirror02.cloud.secureserver.net
 * atomic: www6.atomicorp.com
 * base: p3mirror02.cloud.secureserver.net
 * edc-vm-tools: p3mirror02.cloud.secureserver.net
 * extras: p3mirror02.cloud.secureserver.net
 * updates: p3mirror02.cloud.secureserver.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ImageMagick.i386 0:6.2.8.0-4.el5_5.3 set to be updated
---> Package ImageMagick.x86_64 0:6.2.8.0-4.el5_5.3 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch          Version                     Repository   Size
================================================================================
Installing:
 ImageMagick        i386          6.2.8.0-4.el5_5.3           base        3.3 M
 ImageMagick        x86_64        6.2.8.0-4.el5_5.3           base        3.3 M

Transaction Summary
================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 6.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): ImageMagick-6.2.8.0-4.el5_5.3.i386.rpm            | 3.3 MB     00:00
(2/2): ImageMagick-6.2.8.0-4.el5_5.3.x86_64.rpm          | 3.3 MB     00:00
--------------------------------------------------------------------------------
Total                                            23 MB/s | 6.6 MB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : ImageMagick                                              1/2
  Installing     : ImageMagick                                              2/2

Installed:
  ImageMagick.i386 0:6.2.8.0-4.el5_5.3  ImageMagick.x86_64 0:6.2.8.0-4.el5_5.3

Complete!
[root@s admin]# yum update ImageMagick-6.7.6-5.x86_64.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: p3mirror02.cloud.secureserver.net
 * atomic: www6.atomicorp.com
 * base: p3mirror02.cloud.secureserver.net
 * edc-vm-tools: p3mirror02.cloud.secureserver.net
 * extras: p3mirror02.cloud.secureserver.net
 * updates: p3mirror02.cloud.secureserver.net
Excluding Packages in global exclude list
Finished
Setting up Update Process
Examining ImageMagick-6.7.6-5.x86_64.rpm: ImageMagick-6.7.6-5.x86_64
Marking ImageMagick-6.7.6-5.x86_64.rpm as an update to ImageMagick-6.2.8.0-4.el5_5.3.x86_64
Marking ImageMagick-6.7.6-5.x86_64.rpm as an update to ImageMagick-6.2.8.0-4.el5_5.3.i386
Resolving Dependencies
--> Running transaction check
---> Package ImageMagick.x86_64 0:6.7.6-5 set to be updated
--> Processing Dependency: libHalf.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libIex.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libIlmImf.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libImath.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libcdt.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libfftw3.so.3()(64bit) for package: ImageMagick
--> Processing Dependency: libgraph.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libgvc.so.5()(64bit) for package: ImageMagick
--> Processing Dependency: libjasper.so.1()(64bit) for package: ImageMagick
--> Processing Dependency: libltdl.so.3()(64bit) for package: ImageMagick
--> Processing Dependency: liblzma.so.0()(64bit) for package: ImageMagick
--> Running transaction check
---> Package ImageMagick.x86_64 0:6.7.6-5 set to be updated
--> Processing Dependency: libHalf.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libIex.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libIlmImf.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libImath.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libfftw3.so.3()(64bit) for package: ImageMagick
--> Processing Dependency: libgvc.so.5()(64bit) for package: ImageMagick
--> Processing Dependency: libjasper.so.1()(64bit) for package: ImageMagick
---> Package graphviz.x86_64 0:2.16.1-1.el5.art set to be updated
--> Processing Dependency: libXaw.so.7()(64bit) for package: graphviz
--> Processing Dependency: libXmu.so.6()(64bit) for package: graphviz
---> Package libtool-ltdl.x86_64 0:1.5.22-7.el5_4 set to be updated
---> Package xz-libs.x86_64 0:4.999.9-0.3.beta.20091007git.el5 set to be updated
--> Running transaction check
---> Package ImageMagick.x86_64 0:6.7.6-5 set to be updated
--> Processing Dependency: libHalf.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libIex.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libIlmImf.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libImath.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libfftw3.so.3()(64bit) for package: ImageMagick
--> Processing Dependency: libgvc.so.5()(64bit) for package: ImageMagick
--> Processing Dependency: libjasper.so.1()(64bit) for package: ImageMagick
---> Package libXaw.x86_64 0:1.0.2-8.1 set to be updated
---> Package libXmu.x86_64 0:1.0.2-5 set to be updated
--> Finished Dependency Resolution
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libgvc.so.5()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libjasper.so.1()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libIlmImf.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libHalf.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libImath.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libIex.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libfftw3.so.3()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libfftw3.so.3()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libImath.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libjasper.so.1()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libIlmImf.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libIex.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libHalf.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libgvc.so.5()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
hm you might need to install with

yum remove ImageMagick.i386

to get only the 64bit verison...

for the dependencies you need to find the proper RPMs.

http://rpmfind.net/

enter libfftw3.so or what is missing and choose the right RPM. install it then with yum
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
I have reduced the number of missing dependencies. Most of the packages I tried to install reported "No package available." One of them reported an older version already installed.
Error: Missing Dependency: libfftw3.so.3()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libImath.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libjasper.so.1()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libIlmImf.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libIex.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libHalf.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libgvc.so.5()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
Can you show complete output?
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
For libfftw3.so, the rpm search yielded:
fftw-devel-3.2.1-3.1.el6.i686.html	Headers, libraries and docs for the FFTW library	CentOS 6.2 for x86_64	fftw-devel-3.2.1-3.1.el6.i686.rpm

Open in new window

and the yum install yielded this:
[root@s admin]# yum install fftw-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: p3mirror02.cloud.secureserver.net
 * atomic: www6.atomicorp.com
 * base: p3mirror02.cloud.secureserver.net
 * edc-vm-tools: p3mirror02.cloud.secureserver.net
 * extras: p3mirror02.cloud.secureserver.net
 * updates: p3mirror02.cloud.secureserver.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package fftw-devel available.
Nothing to do

Open in new window

For libgvc.so, the rpm search yielded
graphviz-devel-2.26.0-7.el6.i686.html	Development package for graphviz	CentOS 6.2 for x86_64	graphviz-devel-2.26.0-7.el6.i686.rpm

Open in new window

The yum install yielded
[root@s admin]# yum install graphviz-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: p3mirror02.cloud.secureserver.net
 * atomic: www6.atomicorp.com
 * base: p3mirror02.cloud.secureserver.net
 * edc-vm-tools: p3mirror02.cloud.secureserver.net
 * extras: p3mirror02.cloud.secureserver.net
 * updates: p3mirror02.cloud.secureserver.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package graphviz-devel-2.16.1-1.el5.art.x86_64 already installed and latest version
Nothing to do

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
yes you need to download the RPM from rpmserch and install it

like yum install ftp://rpmfind.net/linux/centos/6.2/os/x86_64/Packages/graphviz-devel-2.26.0-7.el6.x86_64.rpm
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
Odd that I can't yum install that url but I can wget it.
[root@s admin]# yum install ftp://rpmfind.net/linux/centos/6.2/os/x86_64/Packages/graphviz-devel-2.26.0-7.el6.x86_64.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: p3mirror02.cloud.secureserver.net
 * atomic: www6.atomicorp.com
 * base: p3mirror02.cloud.secureserver.net
 * edc-vm-tools: p3mirror02.cloud.secureserver.net
 * extras: p3mirror02.cloud.secureserver.net
 * updates: p3mirror02.cloud.secureserver.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package ftp://rpmfind.net/linux/centos/6.2/os/x86_64/Packages/graphviz-devel-2.26.0-7.el6.x86_64.rpm available.
Nothing to do

Open in new window

What do I do with it after I download it with wget?
0
 
Chris SandriniSenior System EngineerCommented:
yum install rpmpackage
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
This is really frustrating
[root@s admin]# yum install graphviz-devel-2.26.0-7.el6.x86_64.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: p3mirror02.cloud.secureserver.net
 * atomic: www6.atomicorp.com
 * base: p3mirror02.cloud.secureserver.net
 * edc-vm-tools: p3mirror02.cloud.secureserver.net
 * extras: p3mirror02.cloud.secureserver.net
 * updates: p3mirror02.cloud.secureserver.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Examining graphviz-devel-2.26.0-7.el6.x86_64.rpm: graphviz-devel-2.26.0-7.el6.x86_64
Marking graphviz-devel-2.26.0-7.el6.x86_64.rpm as an update to graphviz-devel-2.16.1-1.el5.art.x86_64
Resolving Dependencies
--> Running transaction check
---> Package graphviz-devel.x86_64 0:2.26.0-7.el6 set to be updated
--> Processing Dependency: graphviz = 2.26.0-7.el6 for package: graphviz-devel
--> Processing Dependency: graphviz-gd = 2.26.0-7.el6 for package: graphviz-devel
--> Processing Dependency: libgvc.so.5()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvplugin_core.so.6()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvplugin_dot_layout.so.6()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvplugin_gd.so.6()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvplugin_gdk_pixbuf.so.6()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvplugin_gtk.so.6()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvplugin_neato_layout.so.6()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvplugin_pango.so.6()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvplugin_xlib.so.6()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvpr.so.1()(64bit) for package: graphviz-devel
--> Processing Dependency: libxdot.so.4()(64bit) for package: graphviz-devel
--> Finished Dependency Resolution
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libgvplugin_pango.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libgvplugin_gd.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libgvplugin_dot_layout.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libgvplugin_gtk.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libxdot.so.4()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: graphviz-gd = 2.26.0-7.el6 is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libgvpr.so.1()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libgvplugin_xlib.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libgvc.so.5()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: graphviz = 2.26.0-7.el6 is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libgvplugin_neato_layout.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libgvplugin_core.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
graphviz-devel-2.26.0-7.el6.x86_64 from /graphviz-devel-2.26.0-7.el6.x86_64 has depsolving problems
  --> Missing Dependency: libgvplugin_gdk_pixbuf.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libgvplugin_pango.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libgvplugin_dot_layout.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: graphviz-gd = 2.26.0-7.el6 is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libgvplugin_gd.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libgvplugin_core.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libgvplugin_xlib.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libgvc.so.5()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libxdot.so.4()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libgvplugin_gdk_pixbuf.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libgvplugin_neato_layout.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libgvpr.so.1()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: graphviz = 2.26.0-7.el6 is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
Error: Missing Dependency: libgvplugin_gtk.so.6()(64bit) is needed by package graphviz-devel-2.26.0-7.el6.x86_64 (/graphviz-devel-2.26.0-7.el6.x86_64)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
it is indeed frustrating :)

I can easily install it on my server because I have some repositories that you don't have. Few questions:

- what OS is it? CentOS?
- is it a hosted server?
- can you add more repositories?
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
It's called "Virtual Data Center" from GoDaddy. They provide the hardware with basic linux operating system. The rest is all my creation.

OS: CentOS 5.6 (64-bit)
Dedicated Server
I "may" add anything I choose, but I'm not that proficient with linux.

The product was misrepresented to me before we purchased it. I specifically asked if it had a control panel similar to GoDaddy's shared hosting accounts and was told yes. I was also told they had support available 24/7 but their support told me after we paid for a year at a discount price that they offer no support for the product beyond administering the server platform. I installed the canned apache and php software, but those were changed when I installed DirectAdmin control panel.

I'm about ready to reinstall php and start all over. I'd like to upgrade to PHP 5.3. It's running 5.2.17 now.

I really appreciate your diligence in this. I'm an expert, too (in other topics of course). I don't think I've ever had a thread to go this long.

I'll be leaving for the weekend in a few minutes. We'll have to resume on Monday if you're up to it.
0
 
Chris SandriniSenior System EngineerCommented:
Ah ok.

Wel linstall the centos 5 repo.

Download this file and put it into /etc/yum.repos.d

http://www.llaumgui.com/public/files/postfix-centos/CentOS-Base.repo

then do a yum update

This will read the repo. You should then be able to install the ImageMagick RPM with

yum install OpenEXR-devel ImageMagick-6.7.6-5.x86_64.rpm

Open in new window

0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
I received a Complete! after the yum update. But it still said the other packages were not available. So I restarted the server and tried again. I think the reason it tried to install ImageMagick is because I have the rpm in the folder I was in when I entered the yum command. Here is the feedback:
[root@s admin]# yum install OpenEXR-devel ImageMagick-6.7.6-5.x86_64.rpm
Loaded plugins: fastestmirror
Repository addons is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * addons: p3mirror02.cloud.secureserver.net
 * atomic: www6.atomicorp.com
 * base: p3mirror02.cloud.secureserver.net
 * centosplus: mirrors.easynews.com
 * edc-vm-tools: p3mirror02.cloud.secureserver.net
 * extras: p3mirror02.cloud.secureserver.net
 * updates: p3mirror02.cloud.secureserver.net
Excluding Packages in global exclude list
Finished
Excluding Packages from CentOS-5 - Plus
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
No package OpenEXR-devel available.
Examining ImageMagick-6.7.6-5.x86_64.rpm: ImageMagick-6.7.6-5.x86_64
Marking ImageMagick-6.7.6-5.x86_64.rpm as an update to ImageMagick-6.2.8.0-4.el5_5.3.x86_64
Resolving Dependencies
--> Running transaction check
---> Package ImageMagick.x86_64 0:6.7.6-5 set to be updated
--> Processing Dependency: libHalf.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libIex.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libIlmImf.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libImath.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libfftw3.so.3()(64bit) for package: ImageMagick
--> Processing Dependency: libgvc.so.5()(64bit) for package: ImageMagick
--> Processing Dependency: libjasper.so.1()(64bit) for package: ImageMagick
--> Finished Dependency Resolution
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libgvc.so.5()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libjasper.so.1()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libIlmImf.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libHalf.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libImath.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libIex.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
ImageMagick-6.7.6-5.x86_64 from /ImageMagick-6.7.6-5.x86_64 has depsolving problems
  --> Missing Dependency: libfftw3.so.3()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libfftw3.so.3()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libImath.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libjasper.so.1()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libIlmImf.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libIex.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libHalf.so.4()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
Error: Missing Dependency: libgvc.so.5()(64bit) is needed by package ImageMagick-6.7.6-5.x86_64 (/ImageMagick-6.7.6-5.x86_64)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
Yes because you did not install the centos repository before

--> No package OpenEXR-devel available.

Or the package is not in that repository :/ You need to find another Repo that has this package... Google for it.

I use also the Fedore EPEL repository as well as RPMForge

See more here

http://wiki.centos.org/AdditionalResources/Repositories
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
I thought that was what I was doing when I downloaded the CentOS-Base.repo and did the yum update. There was already a CentOS-Base.repo, so when I downloaded the new one with wget, it renamed it to CentOS-Base.repo.1. I renamed the old one to CentOS-Base.repo.old and renamed the new one to CentOS-Base.repo, then did the yum update. I got a LOT of feedback, then a Complete!. Then I tried the yum install and received a message that no packages were found. Then I restarted the server and tried again. The feedback from the second attempt is what I posted above.
0
 
Chris SandriniSenior System EngineerCommented:
yes it was not able to find the OpenEXR ....
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
I believe I've resolved the dependencies. Now how do I get my rpm -- which I downloaded with wget -- signed?
[root@s admin]# yum update ImageMagick-6.7.6-5.x86_64.rpm
Loaded plugins: fastestmirror
Repository addons is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * atomic: www6.atomicorp.com
 * base: centos-distro.cavecreek.net
 * centosplus: centos.mirrors.hoobly.com
 * edc-vm-tools: p3mirror02.cloud.secureserver.net
 * extras: mirror.san.fastserv.com
 * rpmforge: ftp-stud.fht-esslingen.de
 * updates: mirror.5ninesolutions.com
Excluding Packages in global exclude list
Finished
Excluding Packages from CentOS-5 - Plus
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Update Process
Examining ImageMagick-6.7.6-5.x86_64.rpm: ImageMagick-6.7.6-5.x86_64
Marking ImageMagick-6.7.6-5.x86_64.rpm as an update to ImageMagick-6.2.8.0-12.el5.x86_64
Resolving Dependencies
--> Running transaction check
---> Package ImageMagick.x86_64 0:6.7.6-5 set to be updated
--> Processing Dependency: libHalf.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libIex.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libIlmImf.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libImath.so.4()(64bit) for package: ImageMagick
--> Processing Dependency: libfftw3.so.3()(64bit) for package: ImageMagick
--> Processing Dependency: libgvc.so.5()(64bit) for package: ImageMagick
--> Processing Dependency: libjasper.so.1()(64bit) for package: ImageMagick
--> Running transaction check
---> Package fftw3.x86_64 0:3.1.1-1.el5.rf set to be updated
--> Processing Dependency: libagraph.so.4()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvc.so.4()(64bit) for package: graphviz-devel
--> Processing Dependency: libgvc_builtins.so.4()(64bit) for package: graphviz-devel
--> Processing Dependency: graphviz = 2.16.1-1.el5.art for package: graphviz-devel
---> Package graphviz.x86_64 0:2.22.0-4.el5.rf set to be updated
---> Package jasper.x86_64 0:1.900.1-2.el5.rf set to be updated
--> Processing Dependency: libglut.so.3()(64bit) for package: jasper
--> Processing Dependency: libGLU.so.1()(64bit) for package: jasper
---> Package openexr.x86_64 0:1.4.0a-1.el5.rf set to be updated
--> Processing Dependency: libfltk.so.1.1()(64bit) for package: openexr
--> Processing Dependency: libfltk_gl.so.1.1()(64bit) for package: openexr
--> Running transaction check
---> Package fltk.x86_64 0:1.1.7-2.el5.rf set to be updated
---> Package freeglut.x86_64 0:2.4.0-7.1.el5 set to be updated
---> Package graphviz-devel.x86_64 0:2.22.0-4.el5.rf set to be updated
---> Package mesa-libGLU.x86_64 0:6.5.1-7.10.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package         Arch    Version             Repository                    Size
================================================================================
Updating:
 ImageMagick     x86_64  6.7.6-5             /ImageMagick-6.7.6-5.x86_64   11 M
Installing for dependencies:
 fftw3           x86_64  3.1.1-1.el5.rf      rpmforge                     1.1 M
 fltk            x86_64  1.1.7-2.el5.rf      rpmforge                     1.6 M
 freeglut        x86_64  2.4.0-7.1.el5       base                         150 k
 jasper          x86_64  1.900.1-2.el5.rf    rpmforge                     786 k
 mesa-libGLU     x86_64  6.5.1-7.10.el5      base                         224 k
 openexr         x86_64  1.4.0a-1.el5.rf     rpmforge                     1.7 M
Updating for dependencies:
 graphviz        x86_64  2.22.0-4.el5.rf     rpmforge                     2.5 M
 graphviz-devel  x86_64  2.22.0-4.el5.rf     rpmforge                      59 k

Transaction Summary
================================================================================
Install       6 Package(s)
Upgrade       3 Package(s)

Total size: 19 M
Is this ok [y/N]: y
Downloading Packages:


Package ImageMagick-6.7.6-5.x86_64.rpm is not signed

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
yum update ImageMagick-6.7.6-5.x86_64.rpm --nogpgcheck

Open in new window


cheers
Chris
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
Finally I have the latest ImageMagick installed!

Now can you help me install imagick. I must have removed too many files/directories.
[root@s admin]# pecl install imagick
No releases available for package "pecl.php.net/imagick"
install failed

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
Hm :D

Try to clear the pear cache

pecl clear-cache

Open in new window


Then search the package

pecl search imagick

Open in new window


if it finds install it with -vvv

pecl -vvv install imagick

Open in new window

0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
The errors overflowed my SSH buffer. Here's what I could capture.
/tmp/pear/temp/imagick/imagick_class.c: In function âzim_imagick_setinterlaceschemeâ:
/tmp/pear/temp/imagick/imagick_class.c:9447: error: âMagickBooleanTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9447: error: expected â;â before âstatusâ
/tmp/pear/temp/imagick/imagick_class.c:9455: error: âstatusâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9455: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9458: error: âMagickFalseâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9459: error: âExceptionTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9459: error: expected â;â before âseverityâ
/tmp/pear/temp/imagick/imagick_class.c:9459: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9459: error: âseverityâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9459: warning: assignment makes pointer from integer without a cast
/tmp/pear/temp/imagick/imagick_class.c:9459: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9459: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9459: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c: In function âzim_imagick_setoptionâ:
/tmp/pear/temp/imagick/imagick_class.c:9471: error: âMagickBooleanTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9471: error: expected â;â before âstatusâ
/tmp/pear/temp/imagick/imagick_class.c:9481: error: âstatusâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9481: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9484: error: âMagickFalseâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9485: error: âExceptionTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9485: error: expected â;â before âseverityâ
/tmp/pear/temp/imagick/imagick_class.c:9485: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9485: error: âseverityâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9485: warning: assignment makes pointer from integer without a cast
/tmp/pear/temp/imagick/imagick_class.c:9485: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9485: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9485: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c: In function âzim_imagick_setpageâ:
/tmp/pear/temp/imagick/imagick_class.c:9497: error: âMagickBooleanTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9497: error: expected â;â before âstatusâ
/tmp/pear/temp/imagick/imagick_class.c:9506: error: âstatusâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9506: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9509: error: âMagickFalseâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9510: error: âExceptionTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9510: error: expected â;â before âseverityâ
/tmp/pear/temp/imagick/imagick_class.c:9510: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9510: error: âseverityâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9510: warning: assignment makes pointer from integer without a cast
/tmp/pear/temp/imagick/imagick_class.c:9510: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9510: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9510: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c: In function âzim_imagick_setimageprogressmonitorâ:
/tmp/pear/temp/imagick/imagick_class.c:9535: error: âExceptionTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9535: error: expected â;â before âseverityâ
/tmp/pear/temp/imagick/imagick_class.c:9535: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9535: error: âseverityâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9535: warning: initialization makes pointer from integer without a cast
/tmp/pear/temp/imagick/imagick_class.c:9535: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9535: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9537: error: âphp_imagick_objectâ has no member named âprogress_monitor_nameâ
/tmp/pear/temp/imagick/imagick_class.c:9538: error: âphp_imagick_objectâ has no member named âprogress_monitor_nameâ
/tmp/pear/temp/imagick/imagick_class.c:9538: warning: passing argument 1 of â_efreeâ discards qualifiers from pointer target type
/tmp/pear/temp/imagick/imagick_class.c:9541: error: âphp_imagick_objectâ has no member named âprogress_monitor_nameâ
/tmp/pear/temp/imagick/imagick_class.c:9542: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9542: error: âphp_imagick_progress_monitorâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c: In function âzim_imagick_setresourcelimitâ:
/tmp/pear/temp/imagick/imagick_class.c:9551: error: âMagickBooleanTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9551: error: expected â;â before âstatusâ
/tmp/pear/temp/imagick/imagick_class.c:9559: error: âstatusâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9562: error: âMagickFalseâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c: In function âzim_imagick_setresolutionâ:
/tmp/pear/temp/imagick/imagick_class.c:9575: error: âMagickBooleanTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9575: error: expected â;â before âstatusâ
/tmp/pear/temp/imagick/imagick_class.c:9584: error: âstatusâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9584: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9587: error: âMagickFalseâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9588: error: âExceptionTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9588: error: expected â;â before âseverityâ
/tmp/pear/temp/imagick/imagick_class.c:9588: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9588: error: âseverityâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9588: warning: assignment makes pointer from integer without a cast
/tmp/pear/temp/imagick/imagick_class.c:9588: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9588: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9588: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c: In function âzim_imagick_setsamplingfactorsâ:
/tmp/pear/temp/imagick/imagick_class.c:9600: error: âMagickBooleanTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9600: error: expected â;â before âstatusâ
/tmp/pear/temp/imagick/imagick_class.c:9618: error: âstatusâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9618: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9622: error: âMagickFalseâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9623: error: âExceptionTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9623: error: expected â;â before âseverityâ
/tmp/pear/temp/imagick/imagick_class.c:9623: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9623: error: âseverityâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9623: warning: assignment makes pointer from integer without a cast
/tmp/pear/temp/imagick/imagick_class.c:9623: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9623: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9623: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c: In function âzim_imagick_setsizeâ:
/tmp/pear/temp/imagick/imagick_class.c:9636: error: âMagickBooleanTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9636: error: expected â;â before âstatusâ
/tmp/pear/temp/imagick/imagick_class.c:9644: error: âstatusâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9644: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9647: error: âMagickFalseâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9648: error: âExceptionTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9648: error: expected â;â before âseverityâ
/tmp/pear/temp/imagick/imagick_class.c:9648: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9648: error: âseverityâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9648: warning: assignment makes pointer from integer without a cast
/tmp/pear/temp/imagick/imagick_class.c:9648: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9648: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9648: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c: In function âzim_imagick_settypeâ:
/tmp/pear/temp/imagick/imagick_class.c:9661: error: âMagickBooleanTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9661: error: expected â;â before âstatusâ
/tmp/pear/temp/imagick/imagick_class.c:9669: error: âstatusâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9669: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9672: error: âMagickFalseâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9673: error: âExceptionTypeâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9673: error: expected â;â before âseverityâ
/tmp/pear/temp/imagick/imagick_class.c:9673: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/tmp/pear/temp/imagick/imagick_class.c:9673: error: âseverityâ undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9673: warning: assignment makes pointer from integer without a cast
/tmp/pear/temp/imagick/imagick_class.c:9673: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9673: warning: cast to pointer from integer of different size
/tmp/pear/temp/imagick/imagick_class.c:9673: error: âphp_imagick_objectâ has no member named âmagick_wandâ
make: *** [imagick_class.lo] Error 1
rolling back 25 file operations
+ rm /usr/local/lib/php/doc/imagick/examples/.tmppolygon.php
+ rm /usr/local/lib/php/doc/imagick/examples/.tmpcaptcha.php
+ rm /usr/local/lib/php/doc/imagick/examples/.tmpthumbnail.php
+ rm /usr/local/lib/php/doc/imagick/examples/.tmpwatermark.php

Warning: rmdir(/tmp/pear/temp/imagick): Directory not empty in PEAR/Installer.php on line 995
+ rmdir /tmp/pear/temp/imagick
+ rm /usr/local/lib/php/doc/imagick/.tmpCREDITS
+ rm /usr/local/lib/php/doc/imagick/.tmpTODO
+ rm /usr/local/lib/php/doc/imagick/.tmpINSTALL
+ rm /usr/local/lib/php/doc/imagick/.tmpChangeLog
ERROR: `make' failed

Warning: unlink(/tmp/glibctesttyRJtj): No such file or directory in System.php on line 214

Warning: unlink(/tmp/pear/temp/pear1nTvJr): No such file or directory in System.php on line 214

Open in new window

0
 
Chris SandriniSenior System EngineerCommented:
Was this with the clear command?
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
No. It completed without error, so did the search. This was the pecl -vvv install imagick command.
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
It turns out the reason I was getting these last errors was that I needed to also install ImageMagick-devel. I have upgraded my PHP to 5.3 and upgraded ImageMagick and all is working correctly so far.

Now back to my original question -- 502 Bad Gateway. I'll be running some tests soon to see if this error was resolved in the process.
0
 
Chris SandriniSenior System EngineerCommented:
If you can please provide this image that is giving you a bad gateay error. So I can test it.
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
It appears that the 502 Bad Gateway error has been resolved by a successful upgrade to PHP 5.3.10, ImageMagick 6.7.6-7, and Imagick 3.0.1. The upgrade would not have been successful without the diligent assistance of un1x86. Thanks.
0
 
Chris SandriniSenior System EngineerCommented:
Well done mate! :D

That was a long one :)
0
 
Kim WalkerWeb Programmer/TechnicianAuthor Commented:
The solution spans the whole of this thread which has only one contributor, un1x86. I chose my own comment as a summation of the answer.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 29
  • 27
Tackle projects and never again get stuck behind a technical roadblock.
Join Now