容器技术交流

 找回密码
 立即注册
查看: 2945|回复: 4

centos5.2下安装失败

[复制链接]
发表于 2009-6-20 11:46:59 | 显示全部楼层 |阅读模式
Configuring Apache Portable Runtime library ...
checking for APR... yes
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting CFLAGS to " -g -O2 -pthread"
  setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
  setting LDFLAGS to " "
Configuring Apache Portable Runtime Utility library...
checking for APR-util... reconfig
configure: error: Cannot use an external APR with the bundled APR-util
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有规则可以创建目标“install”。 停止。
./apache.sh: line 16: /usr/local/apache/apache-start: 没有那个文件或目录
./apache.sh: line 17: /usr/local/apache/apache-start: 没有那个文件或目录
./apache.sh: line 19: /usr/local/apache/apache-stop: 没有那个文件或目录
./apache.sh: line 21: /usr/local/apache/apache-restart: 没有那个文件或目录
./apache.sh: line 22: /usr/local/apache/apache-restart: 没有那个文件或目录
chmod: 无法访问 “/usr/local/apache/apache-start”: 没有那个文件或目录
chmod: 无法访问 “/usr/local/apache/apache-stop”: 没有那个文件或目录
chmod: 无法访问 “/usr/local/apache/apache-restart”: 没有那个文件或目录
./apache.sh: line 30: /usr/local/apache/conf/httpd.conf: 没有那个文件或目录
chown: 无法访问 “/usr/local/apache/conf/httpd.conf”: 没有那个文件或目录
cp: 无法 stat “/usr/local/apache/conf/httpd.conf”: 没有那个文件或目录
./apache.sh: line 34: /usr/local/apache/conf/vhost.conf: 没有那个文件或目录
chmod: 无法访问 “/usr/local/apache/conf/vhost.conf”: 没有那个文件或目录
chown: 无法访问 “/usr/local/apache/conf/vhost.conf”: 没有那个文件或目录
Apache 安装不成功!取消后面的安装
 楼主| 发表于 2009-6-20 12:09:48 | 显示全部楼层
补充:

在 /usr/local/ 下手动建立了apache的文件夹,再建立子文件夹conf,将code目录下的httpd.conf_add移动到conf目录下,并改名为:httpd.conf ,将vhost_apache.conf移动到conf目录下,并改名为:vhost.conf  然后再次运行code中的apache.sh脚本,出现以下内容:
checking for APR... yes
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting CFLAGS to " -g -O2 -pthread"
  setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
  setting LDFLAGS to " "
Configuring Apache Portable Runtime Utility library...
checking for APR-util... reconfig
configure: error: Cannot use an external APR with the bundled APR-util
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有规则可以创建目标“install”。 停止。
发表于 2009-6-20 13:16:33 | 显示全部楼层
可能是你改了linux的默认配置
重装一下 centos试一下
发表于 2009-6-21 09:10:25 | 显示全部楼层
configure: error: Cannot use an external APR with the bundled APR-util
这个地方是根源
发表于 2009-6-21 09:12:16 | 显示全部楼层
configure: error: Cannot use an external APR with the bundled APR-util
当前登录操作系统的用户不是管理员或权限太低,可能当前用户没有权限访问这些文件,换为管理员登录看看是否还有有问题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2024-5-15 12:34 , Processed in 0.039065 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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