免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4319 | 回复: 18
打印 上一主题 下一主题

请问PHP 5.1.2的安装问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-12 16:20 |只看该作者 |倒序浏览
刚刚在安装PHP5.1.2的过程中过了一关,把libxml2相关的2.5.X版本的3个包(在RHEL3下的rpm包)用nodeps方式删除后重新安装了libxml2_2.6.16版本的3个包,于是php的configure成功了(本来报libxml2版本低)。
现在要请教一个问题:./configure --with-mysql = [DIR]中的DIR我理解应该是安装源程序的目录,但是我是用rpm包安装的,应该如何指定目录呢?是否必须制定呢?
with-apache也有同样问题。

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
2 [报告]
发表于 2006-04-12 16:42 |只看该作者
rpm的一般是/usr/local

论坛徽章:
0
3 [报告]
发表于 2006-04-12 16:52 |只看该作者
谢谢,但是我看了我/usr/local/bin下没有mysql和apache,apache的配置文件在/etc/httpd/conf/httpd.conf下面,mysql则如下:
[root@rhe3pc1 php-5.1.2]# rpm -q MySQL-server-standard-5.0.18-0.rhel3  -l
/etc/init.d/mysql
/etc/logrotate.d/mysql
/usr/bin/my_print_defaults
/usr/bin/myisam_ftdump
/usr/bin/myisamchk
/usr/bin/myisamlog
/usr/bin/myisampack
/usr/bin/mysql_convert_table_format
/usr/bin/mysql_create_system_tables
/usr/bin/mysql_explain_log
/usr/bin/mysql_fix_extensions
/usr/bin/mysql_fix_privilege_tables
/usr/bin/mysql_install_db
/usr/bin/mysql_secure_installation
/usr/bin/mysql_setpermission
/usr/bin/mysql_tzinfo_to_sql
/usr/bin/mysql_zap
/usr/bin/mysqlbug
/usr/bin/mysqld_multi
/usr/bin/mysqld_safe
/usr/bin/mysqlhotcopy
/usr/bin/mysqltest
/usr/bin/perror
/usr/bin/replace
/usr/bin/resolve_stack_dump
/usr/bin/resolveip
/usr/bin/safe_mysqld
/usr/lib/mysql/mysqld.sym
/usr/sbin/mysqld
/usr/sbin/mysqlmanager
/usr/sbin/rcmysql
/usr/share/doc/MySQL-server-standard-5.0.18
/usr/share/doc/MySQL-server-standard-5.0.18/COPYING
/usr/share/doc/MySQL-server-standard-5.0.18/README
/usr/share/doc/MySQL-server-standard-5.0.18/my-huge.cnf
/usr/share/doc/MySQL-server-standard-5.0.18/my-innodb-heavy-4G.cnf
/usr/share/doc/MySQL-server-standard-5.0.18/my-large.cnf
/usr/share/doc/MySQL-server-standard-5.0.18/my-medium.cnf
/usr/share/doc/MySQL-server-standard-5.0.18/my-small.cnf
/usr/share/info/mysql.info.gz
/usr/share/man/man1/mysql_fix_privilege_tables.1.gz
......
/usr/share/mysql
/usr/share/mysql/binary-configure
/usr/share/mysql/charsets
......

如果我执行./configure --with-mysql=/usr/bin --with-apache=/etc/httpd
会报错:
configure: error: Invalid Apache directory - unable to find httpd.h under /etc/httpd

还是不清楚--with-mysql和--with-apache应该指定何目录。

[ 本帖最后由 jackhoo72 于 2006-4-12 16:55 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2006-04-13 16:43 |只看该作者
help!!!

[ 本帖最后由 jackhoo72 于 2006-4-14 09:05 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2006-04-14 09:09 |只看该作者
好心人帮帮我吧。我没法进展到PHP编程啊。谢谢。

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
6 [报告]
发表于 2006-04-14 09:11 |只看该作者
你可以换个好用一点的操作系统,例如Windows么?

你的操作系统,应该支持:
find / -name "httpd.h"
或者
find / | grep "httpd.h"
看样子你的可能是/usr,不然就是/usr/local

论坛徽章:
0
7 [报告]
发表于 2006-04-14 11:37 |只看该作者
./configure --with-mysql = [DIR]
这里很明显是MYSQL的目录
一般的是/usr/local/mysql
如果楼主问的是PHP的指定目录
用参数--prefix=[PHP_DIR]

论坛徽章:
0
8 [报告]
发表于 2006-04-14 11:39 |只看该作者
原帖由 HonestQiao 于 2006-4-14 09:11 发表
你可以换个好用一点的操作系统,例如Windows么?

你的操作系统,应该支持:
find / -name "httpd.h"
或者
find / | grep "httpd.h"
看样子你的可能是/usr,不然就是/usr/local


window作SERVER的操作系统是很难用的。

论坛徽章:
0
9 [报告]
发表于 2006-04-14 11:42 |只看该作者
to 楼主
这里需要填的都是mysql/apache的目录,而不是bin程序的目录。

论坛徽章:
0
10 [报告]
发表于 2006-04-14 13:03 |只看该作者
谢谢各位的指导,但是仍然未解决:
# ./configure --with-mysql=/usr/local
显示正常。但是依然没有找到“*libphp*.so”之类的文件,这样WEB服务器仍然无法解析PHP语句。

但如果执行
# ./configure --with-mysql=/usr/local --with-apache=/usr/local
最后报错:
......
configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local

# cd /
# find . -name "httpd.h"
找不到httpd.h文件。

我在怀疑是否我没有安装APACHE?因为我在client端IE打开http://[linux_IP]/后显示的是Red Hat Enterprise Linux Test Page ,右下角显示Powered by APACHE2.0的LOGO。
怎么办呢?谢谢指点。

[ 本帖最后由 jackhoo72 于 2006-4-14 13:33 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP