I am trying to install Rabbit MQ and the php library AMQP on Ubuntu 14.04, but am receiving an error upon apache start (in apache error log)
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/amqp.so' - /usr/lib/php5/20121212/amqp.so: undefined symbol: amqp_error_string2 in Unknown on line 0
And AMQP does not start.
I followed this: https://github.com/pdezwart/php-amqp/issues/87
And...
locate librabbitmq.so
returns:
/usr/lib/librabbitmq.so.0
/usr/lib/librabbitmq.so.0.0.0
ls -al librabb* returns:
/usr/lib/librabbitmq.so.0 -> librabbitmq.so.0.0.0 (root / root)
librabbitmq.so.0.0.0 (root / root)
In /user/local/lib there is also:
librabbitmq.so -> /usr/lib/librabbitmq.so.0 (root / root)
Permissions are root/root and 755 on all.
Any help, most appreciated.
Thanks
Installing amqp via pecl didn't worked for me so i had to compile the RabbitMQ C AMQP client library and pecl amqp myself.
RabbitMQ C AMQP Client library can be found at https://github.com/alanxz/rabbitmq-c/ and Pecl amqp from http://pecl.php.net/package/amqp .
Here is a list of commands that should do the trick on ubuntu 14.04: