- 论坛徽章:
- 0
|
最近Linux编译PHP,我把mysql编译成了so,在php.ini中也设置了
extension=mysql.so
可是phpinfo()显示没有mysql的支持,求助!
编译选项
'./configure' '--prefix=/home/zhen/php/php51' '--with-apxs2=/home/zhen/apache22/bin/apxs' '--enable-fastcgi' '--enable-calendar' '--enable-bcmath' '--with-libxml-dir' '--with-zlib' '--with-bz2' '--enable-ftp' '--with-gd=shared' '--with-jpeg-dir' '-with-png-dir' '--with-xpm-dir' '--with-freetype-dir' '--enable-gd-native-ttf' '--with-ldap=shared' '--with-mysql=shared,/home/zhen/mysql50/' '--with-pdo-mysql=shared,/home/zhen/mysql50/' '--enable-soap' '--enable-mbstring' '--enable-maintainer-zts' '--enable-shared'
执行
./php -v
显示:
PHP Warning: PHP Startup: Unable to load dynamic library '/home/zhen/php/php51/lib/php/extensions/no-debug-non-zts-20050922/mysql.so' - /home/zhen/php/php51/lib/php/extensions/no-debug-non-zts-20050922/mysql.so: undefined symbol: core_globals in Unknown on line 0
求问core_globals何解
[ 本帖最后由 kytexzy 于 2008-3-20 21:35 编辑 ] |
|