无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
本帖最后由 hyxuzhimin 于 2012-1-16 14:32 编辑

我需要装pdo_mysql.so 扩展是不是也重新编译这么装?
--with_pdo_mysql  ??
这是我lanmp.sh文件里找到的
325:    ./configure --prefix=$IN_DIR/php-5.2.17 --with-config-file-path=$IN_DIR/etc --with-mysql=$IN_DIR/mysql --with-iconv=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp $NV
请问是在这里添加--with_pdo_mysql  来安装pdo_mysql.so 扩展吗?

TOP

请问为什么我添加之后 configure,提示
configure: error: --with_pdo_mysql: invalid option; use --help to show usage

TOP

本帖最后由 hyxuzhimin 于 2012-1-25 21:03 编辑

回复 4# admin
很奇怪 只加--with-pdo-mysql然后configure会提示找不到mysql的header。有--with-mysql=/www/wdlinux/mysql-5.1.56 也不行。而mysql.h在这个路径里。
但是改成 --with-pdo-mysql=/www/wdlinux/mysql-5.1.56/bin/mysql_config    , configure就成功了。

TOP

改成这样就成功了。
./configure --prefix=/www/wdlinux/php-5.2.17 --with-config-file-path=/www/wdlinux/etc  --with-mysql=/www/wdlinux/mysql-5.1.56  --with-pdo-mysql=/www/wdlinux/mysql-5.1.56/bin/mysql_config  --with-iconv=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp

TOP

很奇怪用上面的configure参数可以make make install,但phpinfo()里依然没有pdo-mysql,而且参数里也没--with-pdo-mysql=/www/wdlinux/mysql-5.1.56/bin/mysql_config
pdo.jpg
configure.jpg

TOP

请问单独编译pdo_mysql为啥也不行?
我是通过这个教程装的 http://www.cnblogs.com/DavidYan/articles/2149647.html
使用了lanmp压缩包里的PDO_MYSQL-1.0.2.tgz
tar xzf  PDO_MYSQL-1.0.2.tgz
cd  PDO_MYSQL-1.0.2
/www/wdlinux/php-5.2.17/bin/phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
./configure --with-php-config=/www/wdlinux/php-5.2.17/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
顺利安装,并修改了vi /www/wdlinux/etc/php.ini
extension=pdo_mysql.so
我find一下pdo_mysql.so已经放在php/extensions/debug-non-zts-20060613/pdo_mysql.so文件夹了
重启httpd
但是phpinfo里还是没有pdo_mysql,Drupal安装也没有找到mysql,只有sqlite.
请问这是怎么回事呢?

TOP

./configure --prefix=/www/wdlinux/php-5.2.17 --with-config-file-path=/www/wdlinux/etc  --with-mysql=/www/wdlinux/mysql  --enable-pdo  --with-pdo-mysql=/www/wdlinux/mysql  --with-iconv=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp 重新改了参数make install 成功还是不能在phpinfo里看到pdo_mysql,drupal7也找不到mysql,只有sqlite。求助大虾了。因为上面两种安装现在都顺利了,但是还是开启不了pdo_mysql

TOP

回复 11# admin
重启过apache,机器也重启过。pdo-mysql还是没安装成功。

TOP

回复 11# admin
经自己编译的lamp(centos5.7+最新amp版本)测试可以加入pdo-mysql,并安装drupal成功。
但是cent5.6Base+lamnp的。死活不能加入pdo-mysql。请检查下。谢谢。

TOP

本帖最后由 hyxuzhimin 于 2012-1-28 21:39 编辑

回复 19# admin
./configure --prefix=/www/wdlinux/php-5.2.17 --with-config-file-path=/www/wdlinux/etc  --with-mysql=/www/wdlinux/mysql  --enable-pdo  --with-pdo-mysql=/www/wdlinux/mysql  --with-iconv=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp
你好。我试过好多遍了,参数是上面的,编译过程中没提示错误,我在非wdlinux版的centos5.7下编译安装可以成。不知道是不是系统的原因。还是apahce和nginx一起的原因。搞不清啊。

TOP

返回列表