PHP5.X系列命令行跑php PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/··
2017-03-09 17:10
721 查看
现象:
PHP5.X系列命令行跑php程序 出现PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/php_gd2.dll·····
解决方案:
从网上查看会有许多类似现象, 事实上就是php配置文件(php.ini)中关于拓展功能的开启问题。
在linux下是.so等类似的动态库文件,如果缺失,需要在php.ini中相应的拓展库位置补充上相应的库位置和库文件,如果冗余就直接在相应的配置项前面加上‘;'分号注释掉即可。
在windows下则是.dll,解决方案同上。
这次就是没有将windows下相应的配置项注释去,所以导致警告。请看截图,将相应的位置注释即可。
PHP5.X系列命令行跑php程序 出现PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/php_gd2.dll·····
解决方案:
从网上查看会有许多类似现象, 事实上就是php配置文件(php.ini)中关于拓展功能的开启问题。
在linux下是.so等类似的动态库文件,如果缺失,需要在php.ini中相应的拓展库位置补充上相应的库位置和库文件,如果冗余就直接在相应的配置项前面加上‘;'分号注释掉即可。
在windows下则是.dll,解决方案同上。
这次就是没有将windows下相应的配置项注释去,所以导致警告。请看截图,将相应的位置注释即可。
相关文章推荐
- PHP linux服务器报错 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/的解决方法!
- 安装Mongodb驱动程序出现 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/ex
- PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/pdo_mysql.so' - /us
- PHP Warning: PHP Startup: unable to load dynamic library
- PHP7+Phalcon, 配置时出现Warning: PHP Startup: Unable to load dynamic library
- Warning: PHP Startup: Unable to load dynamic library 'php/ext\php_pgsql.dll' - %1 不是有效的 Win32 应用程序
- PHP Warning: PHP Startup: Unable to load dynamic library 'C:/PHP/ext\\php_ldap.dll' - The specified
- Unable to load dynamic library '/usr/lib/php5/20121212/pdo_mysql.so'
- php 编译安装插件提示PHP Warning: PHP Startup: Unable to load dynamic library 报错
- PHP Warning Unable to load dynamic library 'E:/lib/php-5.2.17/ext/php_mysqli.dll'
- ubuntu16.04解决Unable to load dynamic library '/usr/lib/php/20151012/mysqli.so'
- PHP Warning: PHP Startup: Unable to load dynamic library \ D:/php5/ext/php_mysqli.dll\
- PHP message: PHP Warning: PHP Startup: Unable to load dynamic library
- PHP Warning: PHP Startup: Unable to load dynamic library 'F:\phpWorkspace\php5\ext\php_mysqli.dll'
- PHP Warning: PHP Startup: Unable to load dynamic library \ D:/php5/ext/php_mysqli.dll\-PHPphp技巧
- PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - /xd5/xd2/xb2/xbb/xb5/xbd/xd6/xb8/xb6/xa8/xb5/xc4/x
- PHP Startup: Unable to load dynamic library
- windows环境配置XAMMP,报错 PHP Startup: Unable to load dynamic library 'xxxx' 到指定的模块
- PHP startup: Unable to load dynamic library错误的错误
- PHP Warning:PHP startup:Unables to load dynamic library ..