VPS侦探论坛

 找回密码
 注册
查看: 5827|回复: 3

军哥,我安装pdo_mysql的时候出错了,请帮帮我。

[复制链接]
发表于 2013-12-19 19:48:19 | 显示全部楼层 |阅读模式

我安装的 lnmp1.0 是默认安装,没有改动过路径。
然后我是  cd /root/lnmp1.0-full/php-5.3.17/ext/pdo_mysql/

/usr/local/php/bin/phpize

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
config.m4:138: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
aclocal.m4:2754: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:138: the top level
config.m4:138: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
aclocal.m4:2754: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:138: the top level




然后:

./configure --with-php-config=/usr/local/php/bin/php-config


checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for MySQL support for PDO... yes, shared
checking for the location of libz... no
checking for mysql_config... not found
configure: error: Unable to find your mysql installation



error: Unable to find your mysql installation

就报这个错误了,好像是找不到 mysql 的安装路径吧。请问我应该怎么办?谢谢你了。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-12-19 20:32:43 | 显示全部楼层


pdo_mysql默认编译进去了,干嘛非要再弄一遍,编译上会和原来的重复会报错

只说错误的话需要指定上路径
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-12-19 20:52:39 | 显示全部楼层

回复 2# 的帖子


军哥,麻烦你看看这个错误。这个错误是我在安装 pdo_mysql 之前就有的,我才想起来要安装 pdo_mysql 的,我最开始是全部默认安装 lnmp1.0 然后我修改了 /usr/local/php/etc/php.ini 中的 ;extension=php_pdo_mysql.dll

把前面的分号去掉了,开启 php_pdo_mysql.dll

然后 /root/lnmp restart

就报这个错误。麻烦你帮我看看是怎么回事,谢谢了。

=========================================================================
Manager for LNMP V1.0  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Stopping nginx daemon: nginx.
Gracefully shutting down php-fpm . done
Shutting down MySQL. SUCCESS!
Starting LNMP...
Starting nginx daemon: nginx.
Starting php-fpm [19-Dec-2013 20:46:40] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.dll' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
done
Starting MySQL........... SUCCESS!

[ 本帖最后由 ldlbf 于 2013-12-19 20:54 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-12-20 12:46:34 | 显示全部楼层

回复 3# 的帖子




这个说过很多次了,dll是windows下的

安装模块要按https://www.vpser.net/manage/lnmp-php-install-ext.html 这个教程
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-15 11:49 , Processed in 0.034315 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表