Search code examples
phplinuxubuntu64-bitamqp

Cant get AMQP to load for apache2 on 64bit linux, php5.4


I have successfully PECL installed AMQP after installing rabbitmq-c as per the instructions at http://www.php.net/manual/en/amqp.installation.php

The .so file is created and I have added it to php.ini, but when I restart apache I get the following error:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/amqp.so' - /usr/lib/php5/20100525/amqp.so: undefined symbol: amqp_open_socket in Unknown on line 0

This happens on both Ubuntu 12.10 64bit PHP 5.4.6 and Ubuntu 13.04 64bit PHP 5.4.9

It does however work start up as expected on Ubuntu 12.04 32bit PHP 5.3.10

Has anyone managed to get AQMP to install on 64bit PHP 5.4? Does anyone know whether it is the PHP version or the fact that it's a 64bit OS that might be causing the problem?

Thanks


Solution

  • Looks like you don't have librabbitmq installed or librabbitmq version is incompatible with php-amqp extension or library placed in wrong location.