donglong9745 2015-08-02 05:31
浏览 50

哪里是php phalcon的配置?

I installed phalcon follow it's Compilation document , the command showed that I install and build succeed. But when I run config script <?php print_r(get_loaded_extensions()); ?> it reported error:

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 shows that there are two phalcon.so, the first was installed by phalcon's install sctipt, the second was installed by 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

I don't know where is the phalcon's config, maybe it found phalcon.so from the wrong place.

How to fix it?

edit:

I found the phalcon's config file and change the path of phalcon.so, and the error still there.

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
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
    • ¥15 求daily translation(DT)偏差订正方法的代码
    • ¥15 js调用html页面需要隐藏某个按钮
    • ¥15 ads仿真结果在圆图上是怎么读数的
    • ¥20 Cotex M3的调试和程序执行方式是什么样的?
    • ¥20 java项目连接sqlserver时报ssl相关错误
    • ¥15 一道python难题3
    • ¥15 牛顿斯科特系数表表示
    • ¥15 arduino 步进电机
    • ¥20 程序进入HardFault_Handler