Problem with Imagick.so

Trouble during PacsOne Server installations
Post Reply
Stephan
Posts:34
Joined:Sat Apr 08, 2006 6:22 pm
Problem with Imagick.so

Post by Stephan » Wed Sep 02, 2009 2:23 pm

Hi,

got a little problem loading the imagick.so extension from PacsOne.
System: Fedora Linux 11 64-Bit, lampp 1.6.8a (this is only available in 32 bit, but runs perfectly on a 64 bit system). PacsOne is the current 64 bit version.

Installation so far has completed successfully. I then modified httpd.conf and php.ini and copied the imagick.so file from the pacsone folder to my php installation directory but it can't be loaded when Apache/PHP is started.


Here's the output of ldd imagick.so:

Code: Select all

root@PACS no-debug-non-zts-20060613]# ldd imagick.so 
	linux-vdso.so.1 =>  (0x00007fffa83fe000)
	libMagick-5.5.6-Q16.so.0 => /usr/local/lib/libMagick-5.5.6-Q16.so.0 (0x00007fb19fe18000)
	libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fb19fbf1000)
	libm.so.6 => /lib64/libm.so.6 (0x00007fb19f96d000)
	libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fb19f6d4000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fb19f365000)
	libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007fb19f153000)
	libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007fb19ef4b000)
	libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007fb19ed2e000)
	libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fb19e9f3000)
	libz.so.1 => /lib64/libz.so.1 (0x00007fb19e7de000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb19e5c1000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007fb19e3bd000)
	/lib64/ld-linux-x86-64.so.2 (0x000000325c400000)
	libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fb19e1bb000)
	libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fb19dfb6000)
	libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fb19dd9b000)
So all dependencies are found. When I try to start Apache/PHP I'm getting the following error:

Code: Select all

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/imagick.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/imagick.so: wrong ELF class: ELFCLASS64 in Unknown on line 0
My first guess was, imagick.so is the wrong version (32 vs. 64 bit), so I've tried the imagick.so from the 32 bit PacsOne package, but without any luck.

Is there any way to resolve this without a complete re-install?

Thanks,
Stephan
- Stephan

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Thu Sep 03, 2009 12:52 am

Your guess is right because if LAMPP is 32-bit, then all PHP extensions must also be 32-bit instead of the 64-bit.

Copying the imagick.so from the 32-bit PacsOne Server package along is not enough, as it has dependent libraries (e.g., /usr/local/lib/libMagick-5.5.6-Q16.so) which are from the 64-bit PacsOne Server package.

A clean solution is to simply install the 32-bit version of PacsOne Server instead of 64-bit version. Another option is to try load the 32-bit version of each dependent libraries from the 32-bit PacsOne Server package, but this is complicated and time consuming. A 3rd option is to install the 64-bit of LAMPP then you can install the 64-bit version of PacsOne Server without any trouble.

Stephan
Posts:34
Joined:Sat Apr 08, 2006 6:22 pm

Post by Stephan » Thu Sep 03, 2009 5:56 pm

I decided to remove lampp and PacsOne from the system and install each package (httdp, mysqld and php) on its own. Obviously the license is now missing due to the new installation, but that's not a problem.

Everything else is up and running as expected in full 64-Bit. The problem with Lampp is, there's no full 64-Bit version yet. So while it is easier to install as everything is included, it can be a pain in some cases.

Going to send you an email in a minute with the licensing information you need. :)

Thanks.
- Stephan

fhahjee1
Posts:1
Joined:Wed Mar 04, 2015 10:02 am

Re: Problem with Imagick.so

Post by fhahjee1 » Wed Mar 04, 2015 10:05 am

Has anyone managed to get PacsOne running out of Amazons EC2 cloud? I can't get it to install on a Windows instance. Would I have better luck on a Linux instance?
We are the pioneers in providing Test-king.com - togaf certification toefl and with 100% exam pass Download Test-king.com ceh certification our latest passguidegmat and fcc.edu ccna or pass real exam pmc.edu

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Re: Problem with Imagick.so

Post by pacsone » Wed Mar 04, 2015 4:43 pm

What specific error/problem did you run into when installing PacsOne Server on Amazon EC2? This should be not different from installing PacsOne on a physical server running either Windows or Linux OS.

Post Reply