LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2128|回复: 3

linux-AS4上安装MySQL-5.0.45+php

[复制链接]
发表于 2007-8-15 15:32:59 | 显示全部楼层 |阅读模式
安装MySQL的rpm安装包
MySQL-client-community-5.0.45-0.rhel4.i386.rpm
MySQL-server-community-5.0.45-0.rhel4.i386.rpm
MySQL-shared-community-5.0.45-0.rhel4.i386.rpm
安装完Apache2.0.53和MySQL后,
[root@localhost php-5.2.3]# ./configure --with-apxs2=/home/wiki/apache2/bin/apxs --with-mysql
或者
[root@localhost php-5.2.3]# ./configure --with-apxs2=/home/wiki/apache2/bin/apxs --with-mysql=/var/lib/mysql
都配置不能通过:
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

[root@localhost php-5.2.3]# ls /var/lib/mysql/
ibdata1  ib_logfile0  ib_logfile1  localhost.localdomain.err  localhost.localdomain.pid  mysql  mysql.sock  test

大家遇到过没有
发表于 2007-8-15 16:32:36 | 显示全部楼层
--with-mysql=shared
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-16 00:36:41 | 显示全部楼层
谢谢回复,明天试下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-16 14:09:05 | 显示全部楼层
今天终于搞定了,
我把下面这个包下下来安装就OK了,
MySQL-devel-community-5.0.45-0.rhel4.i386.rpm
然后直接使用:
./configure --with-apxs2=/home/wiki/apache2/bin/apxs --with-mysql
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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