Unable to install AMQP for PHP - Symbol not found error

equsernamet8

New Member
I'm getting the following error when running the code listed below. I have install AMQP extension through PECL and it shows up fine in my php.ini file when I do phpinfo both from the command line and browser.\[code\] <?php // amqp rabbitmq client test // Create a connection $cnn = new AMQPConnection(); exit();?>\[/code\]When trying to run that code I get this error:\[code\]dyld: lazy symbol binding failed: Symbol not found: _amqp_new_connection Referenced from: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/amqp.so Expected in: flat namespacedyld: Symbol not found: _amqp_new_connection Referenced from: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/amqp.so Expected in: flat namespace\[/code\]These are the install instructions I followed:\[code\]Download rabbitmq-c lib from: http://hg.rabbitmq.com/rabbitmq-c/ (.zip file)Download codegen http://hg.rabbitmq.com/rabbitmq-codegen/summary (.zip file)unzip rabbitmq-cunzip codegen and put it into the rabbitmq-c lib and rename it codegencd into rabbitmq-c dirautoreconf -i && ./configure && make && sudo make install#install the amqp extensionsudo pecl install -f amqp\[/code\]
 
Back
Top