OscarXie.net

关注质量与体验——电子商务与自动化测试

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
Apache官网没有找到64位的,http://httpd.apache.org/download.cgi

网上找到个办法,贴过来:

Linux下Apache安装64位问题
网上说之一:
1、删除安装目录下的configure文件,在我的环境中是httpd-2.2.6/configure
2、删除“httpd-2.26/srclib/apr-util/configure”
3、通过以下命令重建编译文件(以下命令在http-2.26/目录下运行)。
#./buildconf
4. 、通过以上重建编译文件,现在可以拥有64位的apr-util了,最后在编辑时加上以上参数:
–enable-lib64
以下是我编译的例子:
[root@yangjf packages]# ./configure --prefix=/usr/local/apache --enable-mods-shared=all --enable-so –enable-ssl –enable-lib64 -libdir=/usr/lib64
[root@yangjf packages]#make
[root@yangjf packages]#make install
网上说之二:
解决方法:编译时增加编译参数 --with-expat=builtin 。貌似在64位服务器下编译脚本在定位系统 expat 支持时有些问题。使用自带的expat来编译就不存在这个问题了。举例如下:

# ./configure --prefix=/usr/local/apache2 --enable-modules=so --enable-rewrite --with-expat=builtin 

 

我自己试了第二种,是可用的。 

$ ./configure --prefix=[APACHEINSTALLDIR] \
--with-mpm=worker \
--enable-mods-shared=all \
--enable-so \
--enable-rewrite=static \
--enable-headers=static \
--enable-expires=static \
--enable-log-config=static \
--enable-nonportable-atomics=yes \

--with-expat=builtin 


补一下,32位机器装32位Apache

$ ./configure --prefix=[APACHEINSTALLDIR] \
--with-mpm=worker \
--enable-mods-shared=all \
--enable-so \
--enable-rewrite=static \
--enable-headers=static \
--enable-expires=static \
--enable-log-config=static \
--enable-nonportable-atomics=yes


64位机器装32位Apache

$ ./configure --prefix=[APACHEINSTALLDIR] \
LDFLAGS=-L/lib32 \
CPPFLAGS=-m32 \
CFLAGS=-m32 \
--with-mpm=worker \
--enable-mods-shared=all \
--enable-so \
--enable-rewrite=static \
--enable-headers=static \
--enable-expires=static \
--enable-log-config=static \
--enable-nonportable-atomics=yes \
--disable-deflate

 

posted on 2012-03-26 10:48  oscarxie  阅读(3351)  评论(0编辑  收藏  举报