LinuxSir.cn,穿越时空的Linuxsir!

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

装 Apache-2.0.54,出问题

[复制链接]
发表于 2006-3-27 12:09:23 | 显示全部楼层 |阅读模式
gawk -f /mnt/hda8/source/httpd-2.0.54/build/make_exports.awk `cat export_files` > exports.c
/mnt/hda8/source/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile gcc  -g -O2 -pthread    -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER   -I/mnt/hda8/source/httpd-2.0.54/srclib/apr/include -I/mnt/hda8/source/httpd-2.0.54/srclib/apr-util/include -I. -I/mnt/hda8/source/httpd-2.0.54/os/unix -I/mnt/hda8/source/httpd-2.0.54/server/mpm/prefork -I/mnt/hda8/source/httpd-2.0.54/modules/http -I/mnt/hda8/source/httpd-2.0.54/modules/filters -I/mnt/hda8/source/httpd-2.0.54/modules/proxy -I/mnt/hda8/source/httpd-2.0.54/include -I/mnt/hda8/source/httpd-2.0.54/modules/generators -I/mnt/hda8/source/httpd-2.0.54/server -I/mnt/hda8/source/httpd-2.0.54/modules/dav/main -prefer-non-pic -static -c exports.c && touch exports.lo
exports.c:115:2: #endif without #if
make[2]: *** [exports.lo] 错误 1
make[2]: Leaving directory `/mnt/hda8/source/httpd-2.0.54/server'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/mnt/hda8/source/httpd-2.0.54/server'
make: *** [all-recursive] 错误 1
root@lfs : /rootroot@lfs:/mnt/hda8/source/httpd-2.0.54#
发表于 2006-3-27 12:21:21 | 显示全部楼层
源码应该不会出现这样的错误吧?你换2.2.0版本试试。
回复 支持 反对

使用道具 举报

发表于 2006-3-27 13:42:10 | 显示全部楼层
patch -Np1 < ../httpd-2.0.55-config-1.patch &&

./configure \
        --prefix=/opt/apache --sysconfdir=/etc/apache \
        --enable-layout=FHS --enable-mods-shared=all \
        --with-gdbm --with-ssl=/usr --with-berkeley-db=/usr/ \
        --enable-{so,cache,gdbm,auth-anon,file-cache,mine-magic,headers,usertrack} \
        --enable-{ssl,rewrite,vhost-alias,proxy,proxy-connect} \
        &&

make -j3 &&
make install

我用过的脚本。你试试。。。2.0.55 版本。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-28 18:07:13 | 显示全部楼层
我试过了,还是那样,那个错误,我把export.c的115行删掉还是这样,出错后在看export。c文件,又自动添加 #endif
以上实验都是在/root下做的,我试过2.0.54, 2.0.55, 2.2.0都是这样
现在我该怎么办?
回复 支持 反对

使用道具 举报

发表于 2006-3-28 21:19:08 | 显示全部楼层
大家有没有碰到这个问题?我以前碰到过,不过现在没有了。。奇怪。
回复 支持 反对

使用道具 举报

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

本版积分规则

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