安装mysqli是出错啊~~
提示:collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
什么意思呢 这样看不出原因,贴多一点错误信息 _globals_id'
/root/lanmp/php-5.2.17/ext/standard/info.c:749: undefined reference to `executor_globals_id'
/root/lanmp/php-5.2.17/ext/standard/info.c:752: undefined reference to `executor_globals_id'
/root/lanmp/php-5.2.17/ext/standard/info.c:676: undefined reference to `sapi_globals_id'
/root/lanmp/php-5.2.17/ext/standard/info.c:469: undefined reference to `sapi_globals_id'
/root/lanmp/php-5.2.17/ext/standard/info.c:655: undefined reference to `sapi_globals_id'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
就这些提示了,我用的lanmp v2.1一键安装包,选择的是3,a+n的
安装方法就是按教程的,没变一个字[url=http://www.wdlinux.cn/bbs/viewthread.php?tid=10&highlight=mysqli]http://www.wdlinux.cn/bbs/viewthread.php?tid=10&highlight=mysqli[/url] 系统是什么版本 linux_centos54_32_ 大神?求解哟~~ 这样看不出原因,你换个版本试试,如5。5/5。6 我也找不到原因 那位用在wdlinux安装成功的 给我点提示啊 我的联系方式 qq:416426659 cd lanmp/php-25.2.17/ext
linux下将源码文件编译应该都有configure吧,可这里没有,在我们已经安装php后,php5这个文件夹里的命令目录bin里有一个文件叫phpize,用它就可以生成configure文件啦,继续
#/www/wdlinux/php-5.2.17/bin/phpize
这里回车运行,执行完后就出了configure文件,
./configure --prefix=/www/wdlinux/mysqli --with-php-config=/www/wdlinux/php-5.2.17/bin/php-config --with-mysqli=/www/wdlinux/mysql/bin/mysql_config
#make
#make test
make install
(不出错就会显示Installing shared extensions: /www/wdlinux/php-5.2.17/lib/php/extensions/no-debug-non-zts-20060613
现在mysqli.so文件就出来啦。。
直接在php.ini里把这个文件加载就OK啦。。
extension_dir=”/www/wdlinux/php-5.2.17/lib/php/extensions/no-debug-non-zts-20060613“
extension=mysqli.so
重启apache. 第一行错了应是这样 cd lanmp/php-25.2.17/ext/mysqli
页:
[1]