Apache官網沒有找到64位的,http://httpd.apache.org/download.cgi
網上找到個辦法,貼過來:
Linux下Apache安裝64位問題網上說之一:1、刪除安裝目錄下的configure檔案,在我的環境中是httpd-2.2.6/configure2、刪除“httpd-2.26/srclib/apr-util/configure”3、通過以下命令重建編譯檔案(以下命令在http-2.26/目錄下運行)。#./buildconf4. 、通過以上重建編譯檔案,現在可以擁有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