PHP compile and install amqp extension error solution: /usr/bin/ld: cannot find -lrabbitmq

question

When PHP uses RabbitMQ, you need to install the amqp extension. During the installation process, the following problems occur during compilation. The program cannot find the installed librabbitmq library

/usr/bin/ld: cannot find -lrabbitmq

solve

Enter the installed librabbitmq library directory, copy the lib64 directory under the directory as lib

test

Re-execute make and make install, the installation is successful as follows

compile

Install

Guess you like

Origin blog.csdn.net/Douz_lungfish/article/details/123814511