我安装了phalcon跟随它的Compilation document,命令显示我安装并构建成功。但是当我运行配置脚本<?php print_r(get_loaded_extensions()); ?>
时,它报告错误:
PHP Warning: PHP Startup: Unable to load dynamic library '@@HOMEBREW_PREFIX@@/opt/php55-phalcon/phalcon.so' - dlopen(@@HOMEBREW_PREFIX@@/opt/php55-phalcon/phalcon.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '@@HOMEBREW_PREFIX@@/opt/php55-phalcon/phalcon.so' - dlopen(@@HOMEBREW_PREFIX@@/opt/php55-phalcon/phalcon.so, 9): image not found in Unknown on line 0
locate
显示有两个phalcon.so,第一个是由phalcon的install
sctipt安装的,第二个是由brew install php5x php5x-phalcon
安装的
/usr/local/Cellar/php55/5.5.27_2/lib/php/extensions/no-debug-non-zts-20121212/phalcon.so
/usr/local/Cellar/php55-phalcon/2.0.6/phalcon.so
我不知道phalcon的配置在哪里,也许它从错误的地方发现了phalcon.so。
如何解决?
编辑:
我找到了phalcon的配置文件并更改了phalcon.so的路径,错误仍然存在。
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php55-phalcon/2.1.6/phalcon.so' - dlopen(/usr/local/Cellar/php55-phalcon/2.1.6/phalcon.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php55-phalcon/2.1.6/phalcon.so' - dlopen(/usr/local/Cellar/php55-phalcon/2.1.6/phalcon.so, 9): image not found in Unknown on line 0