- Saved searches
- Use saved searches to filter your results more quickly
- Unable to load dynamic library ‘amqp.so’ on centos7 #345
- Unable to load dynamic library ‘amqp.so’ on centos7 #345
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Unable to load dynamic library ‘/usr/lib/php5/20100525/amqp.so’ on Ubuntu #151
- Unable to load dynamic library ‘/usr/lib/php5/20100525/amqp.so’ on Ubuntu #151
- Comments
- PHP startup unable to load dynamic library warning
- Take your skills to the next level ⚡️
- About
- Search
- Tags
- Как исправить ошибку «PHP Startup: Unable to load dynamic library»?
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load dynamic library ‘amqp.so’ on centos7 #345
Unable to load dynamic library ‘amqp.so’ on centos7 #345
Comments
PHP 7.2.6 (cli) (built: Oct 14 2018 15:49:36) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies PEAR Version: 1.9.4 PHP Version: 5.4.16 Zend Engine Version: 2.4.0 Running on: Linux izuf64gdegum84eku07pljz 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64
[28-Apr-2019 15:52:32 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘amqp.so’ (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/amqp.so (librabbitmq.so.4: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/amqp.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/amqp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 resolved:
mv /usr/local/rabbitmq-c/0.9/lib64 /usr/local/rabbitmq-c/0.9/lib
ok.
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load dynamic library ‘/usr/lib/php5/20100525/amqp.so’ on Ubuntu #151
Unable to load dynamic library ‘/usr/lib/php5/20100525/amqp.so’ on Ubuntu #151
Comments
I’m having a similar issue to #87. However, the steps he used to fix it have not fixed the issue for me.
After running all the installs, I get a PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20100525/amqp.so’ — /usr/lib/php5/20100525/amqp.so: undefined symbol: amqp_empty_table in Unknown on line 0 error when I try to load PHP.
What am I missing/doing wrong?
My environment:
Ubuntu 12.04.5 LTS
PHP 5.4.37
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
cmake version 2.8.7
I’ve installed lib-rabbitmq following the steps on a walk-through. I used the tarball for rabbitmq-c v0.5.2. I then went and got amqp v1.6.0beta2.
Ran sudo tar -xvzf amqp-1.6.0beta2 , ran sudo phpize , and then ran sudo ./configure —with-amqp , sudo make , and sudo make install . The outputs from those are here: https://gist.github.com/tlshaheen/c283d123e75b5684fd44.
My make install never prompts me to add the amqp.so extension; is that a sign something went wrong?
My ls /usr/lib shows librabbitmq.so.0 and librabbitmq.so.0.0.0 .
ls /usr/local/lib shows librabbitmq.so .
ls /usr/local/lib/lib/x86_64-linux-gnu shows librabbitmq.so librabbitmq.so.1 librabbitmq.so.1.2.2 .
Please let me know what other logs/outputs you need from me.
The text was updated successfully, but these errors were encountered:
PHP startup unable to load dynamic library warning
Most often, this happens when PHP can’t find the extension you defined in your php.ini file.
For example, the error goes like this:
To solve this warning, you need to make sure that PHP is able to find the required extension.
First, find the php.ini file location by running the phpinfo() function as follows:
Once you find the php.ini location, open the file and search for the line that says extension_dir as shown below:
The extension_dir configuration is used to define a folder where your PHP extensions are stored.
Open the extension_dir using your file explorer and see if the extension that causes the warning exists in that folder.
For example, the mysqli extension requires the php_mysqli.dll file (Windows) or php_mysqli.so (UNIX-like)
When you don’t find the file, then you need to somehow get it from the Internet.
For Windows, you can download the compiled PHP version from windows.php.net and get the extension in ext/ folder in the zip file.
You need to copy the extension from the ext/ folder to your extension_dir folder.
For UNIX-like OS, you can install PHP extensions with PEAR.
Once you have the extension, restart your PHP server. The warning should now disappear.
If you know that you don’t need the extension, you can comment out the extension to make the warning go away.
Add a semicolon ( ; ) before the extension configuration as shown below:
Save the changes to the php.ini file and restart your PHP server. You should no longer see the warning.
Now you’ve learned how to solve the warning PHP Startup: Unable to load dynamic library. Great work! 👍
Take your skills to the next level ⚡️
I’m sending out an occasional email with the latest tutorials on programming, web development, and statistics. Drop your email in the box below and I’ll send new stuff straight into your inbox!
About
Hello! This website is dedicated to help you learn tech and data science skills with its step-by-step, beginner-friendly tutorials.
Learn statistics, JavaScript and other programming languages using clear examples written for people.
Search
Type the keyword below and hit enter
Tags
Click to see all tutorials tagged with:
Как исправить ошибку «PHP Startup: Unable to load dynamic library»?
Для проекта необходима версия «php»: «^7.1.3», у меня была установлена в модулях 7.0.14 в версии 5.2.2.0 Пришлось скачать OS версию 5.2.8 В модулях выбран php 7.2*64 Apache 7.2*62
В phpinfo также инфа о том, что версия 7.2
В параметрах был изменен путь и версия php: Компьютер -> Свойство системы -> Дополнительный параметры -> «Дополнительно : Переменная среда» В системных переменных «Path» D:\OpenServer\modules\php\PHP-7.2*64
Но в cmd при запуске команды «composer update» теперь ругается на отсутствие кучи библиотек
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_mbstring.dll’ (tried: w:/modules/php/PHP-7.2-x64/ext/php_mbstring.dll (▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒. ), w:/modules/php/PHP-7.2-x64/ext/php_php_mbstring.dll.dll (▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒. )) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library ‘php_bz2.dll’ (tried: w:/modules/php/PHP-7.2-x64/ext/php_bz2.dll (▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒. ), w:/modules/php/PHP-7.2-x64/ext/php_php_bz2.dll.dll (▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒. )) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library ‘php_curl.dll’ (tried: w:/modules/php/PHP-7.2-x64/ext/php_curl.dll (▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒. ), w:/modules/php/PHP-7.2-x64/ext/php_php_curl.dll.dll (▒▒ ▒▒▒▒▒▒ ▒▒
[Composer\Exception\NoSslException] The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl ex tension, you can disable this error, at your own risk, by setting the ‘disable-tls’ option to true.
В config php 7.2 *64 эти extension имеются и не закомм.