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 \
補一下,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
