+ -
当前位置:首页 → 问答吧 → 安装pdo遇到的怪问题:系统不认php版本

安装pdo遇到的怪问题:系统不认php版本

时间:2010-03-15

来源:互联网

我的服务器是ubuntu6.10, php版本5.16,执行pecl install pdo 时,报错:
pecl/PDO requires PHP (version >= 5.0.3), installed version is 4.4.2-1.1
可我的php是5,16的,怎么会出现这种情况?
请大侠们指点.
谢谢.

作者: biadlo   发布时间: 2010-03-15

去看看pdo的安装文档。

作者: scyzxp   发布时间: 2010-03-15

谁有 pdo文档呢? 我的安装方法都是在网上找的,没看到过安装文档.哪位大侠贡献一个?

作者: biadlo   发布时间: 2010-03-16

自己编译吧

作者: scyzxp   发布时间: 2010-03-16

Hi.
according to your imformation report,you have installed php4 on your server.please check your php release again with this command.

php-config --version

after executing "php-config --version","4" appears.it denotes that you have installed php 4 in your server.please uninstall php4 in your server,and then reconfigure your correlative programme.

gook luck to you.

作者: todayhero   发布时间: 2010-03-16

Hi, Todayhero,
First thanks for your advice.
I check the version accroding to your method, but it only shows the version is 5.1.6. no php4 appears. How could I do now?

作者: biadlo   发布时间: 2010-03-16

in this case,i don't know how to solve it.but i search some materials from google.com.

http://www.developpez.net/forums ... serveur-php-apache/

this maybe help you.but this page doesn't written in english.you try again.

if you could not do you should read correlative manual to get help.

作者: todayhero   发布时间: 2010-03-16

simutanously.i strongly recommand that you use apt-get command to check your server whether you don't really install php 4 release.

作者: todayhero   发布时间: 2010-03-16

hello, todayhero, i use apt-get remove php4, it shows "package php4 is not installed."
still can't solve the problem. anyway, thank you for your help.

作者: biadlo   发布时间: 2010-03-16

你不是在手工编译前,用自动安装安装了别的!

作者: badb0y   发布时间: 2010-03-16

楼上说的是php还是pdo?
php应该是apt-get的(以前的同事做的,好几年了),但我看到/usr/lib/里有php4目录,但检查版本始终是php5.1.6
pdo, 我开始是下载了 pdo_mysql_1.0.2.tgz, phpize, ./configure出错,
然后改用apt-get install php5-pear, php5-dev, libmysqlclient15, 等等,然后在pecl install pdo时出错。

作者: biadlo   发布时间: 2010-03-16