centos下安装phalcon提示成功,phpinfo找不到相关记录 - 小众知识


2013年01月27日 14:18:05 苏内容
  标签: centos/phalcon
第一次在linux下安装phalcon,我的系统是centos 6.2,安装结果如下:

Libraries have been installed in:

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/lib64/php/modules/

Thanks for compiling Phalcon!
Build succeed: Please restart your web server to complete the installation

看提示已经安装成功了吧? 但是phpinfo()中输出却没有任何phalcon信息,程序也执行不了,请问是什么问题?

查看apache的 error_log文件发现有这样的错误

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/phalcon.so' - /usr/lib64/php/modules/phalcon.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0


1.查看你的/etc/php.d 目录下有无phalcon.ini 的文件
2. 如果没有在/etc/php.d里面建一个phalcon.ini的文件,内容写上  extension=phalcon.so
© CopyRight 2010-2021, PREDREAM.ORG, Inc.All Rights Reserved. 京ICP备13045924号-1