PHP5配置错误,999

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
fancystyle
帖子: 20
注册时间: 2006-01-07 13:32

PHP5配置错误,999

#1

帖子 fancystyle » 2006-01-08 22:46

我按这篇文章配置的
http://www.ubuntu.org.cn/support/docume ... FromSource

在./configure \时
> && sudo /etc/init.d/apache2 start
loading cache ./config.cache
configure: warning: You will need bison 1.28, 1.35, 1.75 or 1.875 if you want to regenerate the Zend parser (found 2.0).
configure: warning: You will need flex 2.5.4 if you want to regenerate Zend/PHP lexical parsers.
configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore.

我用的是MYSQL4.1,APACHE2
如果你只有Mysql 4.0,删除--with-mysqli=/usr/bin/mysql_config,它对Mysql 4.1才有效!
删了也不行.

急等,更希望能看到PHP5+MYSQL5+APACHE2的配置方法
fancystyle
帖子: 20
注册时间: 2006-01-07 13:32

#2

帖子 fancystyle » 2006-01-08 23:03

我用新立得安装了bison-1.35和flex后,依然报错
loading cache ./config.cache
configure: warning: You will need bison if you want to regenerate the PHP parsers.
configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore.

不装MYSQL时浏览
http://localhost/phpinfo.php
提示保存文件,
PHP程序根本没编译嘛,怎么做哦
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

#3

帖子 firehare » 2006-01-08 23:57

根本不用从源来安装PHP5,请参见本栏置顶帖!里面有相应的教程!!
另:
没必要安装Mysql 5.0,你还是用源上推荐的吧,因为那是最稳定的,不容易出错!
我心无畏,源自于我心无知。
图片
fancystyle
帖子: 20
注册时间: 2006-01-07 13:32

#4

帖子 fancystyle » 2006-01-09 0:08

谢楼上的,我装PHP5已经成功了
只是在装MYSQL4.0/4.1都 出现
configure: warning: You will need bison 1.28, 1.35, 1.75 or 1.875 if you want to regenerate the Zend parser (found 2.0).
我用新立得安装bison 1.35错误提示找不到BISON了,怎么会事?
fancystyle
帖子: 20
注册时间: 2006-01-07 13:32

#5

帖子 fancystyle » 2006-01-09 0:09

直接运行命令
root@solo:/home/fancy/php-5.0.4# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

就这样
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

#6

帖子 firehare » 2006-01-09 9:04

安装MySQL的话,不是也有相应的源文件及教程吗??
我心无畏,源自于我心无知。
图片
fancystyle
帖子: 20
注册时间: 2006-01-07 13:32

#7

帖子 fancystyle » 2006-01-09 12:44

最后我装了MYSQL4.01了,装MYSQL5,不知行不行,听说,U下个版本支持.先用着再说吧,
谢谢楼上的,我也不会 我会在搜文章后发痴问的. :lol:
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

#8

帖子 firehare » 2006-01-10 13:02

不用客气
我心无畏,源自于我心无知。
图片
头像
coolsail
帖子: 77
注册时间: 2005-12-25 16:53

#9

帖子 coolsail » 2006-01-10 13:26

firehare 写了:安装MySQL的话,不是也有相应的源文件及教程吗??
可否给个地址?
头像
oneleaf
论坛管理员
帖子: 10454
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#10

帖子 oneleaf » 2006-01-10 14:00

cube316
帖子: 7
注册时间: 2006-01-25 9:38
联系:

#11

帖子 cube316 » 2006-01-27 8:58

firehare 写了:根本不用从源来安装PHP5,请参见本栏置顶帖!里面有相应的教程!!
另:
没必要安装Mysql 5.0,你还是用源上推荐的吧,因为那是最稳定的,不容易出错!
很多时候用户需要用到这些软件的新功能
比如PHP5.1.X里面的PDO连接
MYSQL5.0里面的完全事务支持等
这个时候如果网上已经编译的版本只是PHP5.0或者MYSQL4.1的时候,难免满足不了用户需要的,只能用source code自己编译
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

#12

帖子 firehare » 2006-01-27 18:28

如果你真的需要完全事务支持的话,那么你应该不是选择刚刚实现该功能的MySQL 5.0 而应该是 SQL Server 或 PostgreSQL 之类的数据库了!PHP 5.1.X中的PDO连接是不错,但官方不也是持谨慎态度吗?而且在PEAR中大有其它可以替代的东东!
我还是老观点,如果只是学习,那是无所谓,但如果是要做应用服务的话,最新是就是不稳定的代名词,还是滞后一步比较好!
以上意见,仅供参考!
我心无畏,源自于我心无知。
图片
回复