免费注册 查看新帖 |

Chinaunix

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

red hat linux 5 安装apache 出错 没有bin文件夹 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-01-06 15:11 |只看该作者 |倒序浏览
1. tar -zxvf httpd.tar.gz
2.  ./configure --prefix=/usr/local/apache/apache --enable-module=so
3.  make    出错
错误信息如下:

sockopt.c: In function 'apr_socket_opt_set':
sockopt.c:216: error: 'SCTP_NODELAY' undeclared (first use in this function)
sockopt.c:216: error: (Each undeclared identifier is reported only once
sockopt.c:216: error: for each function it appears in.)
make[4]: *** [sockopt.lo] 错误 1
make[4]: Leaving directory `/usr/local/apache/httpd-2.0.49/srclib/apr/network_io/unix'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/usr/local/apache/httpd-2.0.49/srclib/apr/network_io/unix'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/usr/local/apache/httpd-2.0.49/srclib/apr'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/apache/httpd-2.0.49/srclib'
make: *** [all-recursive] 错误 1


如果我忽略此错误,继续  make install,又发生错误,提示如下:

make[2]: *** [libapr-0.la] 错误 1
make[2]: Leaving directory `/usr/local/apache/httpd-2.0.49/srclib/apr'
make[1]: *** [install-recursive] 错误 1
make[1]: Leaving directory `/usr/local/apache/httpd-2.0.49/srclib'
make: *** [install-recursive] 错误 1



我试过  make FORCE_PKG_REGISTER=yes reinstall clean
              make deinstall clean
              make reinstall clean
都不行,提示没有规则可以创建目标“reinstall”“
在安装目录里没有 ../bin/apachectl  等文件,请那位朋友给看看,非常感谢,

论坛徽章:
0
2 [报告]
发表于 2009-01-06 22:17 |只看该作者

回复 #1 yagami01 的帖子

gcc 编译环境

论坛徽章:
0
3 [报告]
发表于 2009-01-07 17:40 |只看该作者
gcc 版本 4.1.2-14

论坛徽章:
0
4 [报告]
发表于 2009-01-07 17:43 |只看该作者
gcc -v
使用内建 specs。
目标:i386-redhat-linux
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
线程模型:posix
gcc 版本 4.1.2 20070626 (Red Hat 4.1.2-14)

论坛徽章:
0
5 [报告]
发表于 2009-01-08 08:15 |只看该作者
楼主./configure 的时候没错误 ?  如果没错的话,看起来像是编译器bug

论坛徽章:
0
6 [报告]
发表于 2009-01-08 15:10 |只看该作者
我另找了个httpd-2.2版本的,configure和make都通过了
现在是我在我机器上拷贝了一个asp的文件夹e1,想访问试一下
修改了../apache/conf/httpd.conf  和 /etc/httpd/conf/httpd.conf,使其指向我的asp的文件夹e1,
但是restart apache 报错,
提示httpd not running
我用 #/etc/rc.d/init.d/httpd restart 执行成功
restart apache 还是报错,提示httpd not running

我用chkconfig --list查看发现,httpd 状态为0-6都是关闭的,请问在哪里可以打开httpd服务,使其在2-5运行级别都是开启状态,
请问是不是需要修改../httpd.conf 文件的:80端口,哪位朋友给点提示,谢谢啦

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-03-10 06:20:00
7 [报告]
发表于 2009-01-08 16:05 |只看该作者
chkconfig httpd on  可以打开httpd服务

你编译安装的话,需要copy一个httpd.conf配置文件到/etc下

论坛徽章:
0
8 [报告]
发表于 2009-01-08 17:02 |只看该作者
谢谢了  问题基本搞定了

论坛徽章:
0
9 [报告]
发表于 2009-01-08 17:11 |只看该作者
用的是版本几啊?

论坛徽章:
0
10 [报告]
发表于 2009-01-09 11:57 |只看该作者
httpd-2.2.11
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP