解决php命令行错误

时间:2013-08-03 13:53:42

标签: php

当我从命令行运行php -v时,我得到了一些警告,然后它最终告诉我我正在运行的版本。我不知道从哪里开始解决它们。

以下是错误。感谢您提供的任何帮助。

$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/msql.so' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20090626/msql.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/msql.so' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20090626/msql.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/open_ssl.so' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20090626/open_ssl.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/open_ssl.so' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20090626/open_ssl.so, 9): image not found in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0

Warning: Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'xsl' already loaded in Unknown on line 0

Warning: Module 'xsl' already loaded in Unknown on line 0
PHP 5.3.17 (cli) (built: Nov 27 2012 14:16:56) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

(我想知道我的Mac(OS 10.7.5)附带的php安装与我使用MacPorts安装的php版本之间是否存在冲突(配置为我的Apache安装 - 也安装了MacPorts我想解决这个问题所以我可以使用php依赖管理器编写器而没有任何问题。我不能确定是否有冲突导致错误:版本(5.3.17)和命令行输出的构建日期与localhost使用phpinfo()的版本和构建日期相同。)

0 个答案:

没有答案