[转载]FC6 Centos 5 64位安装httpd-2.2.4出错 ..
时间:2007-04-25 来源:zhangzhu1984
来自 http://blog.sina.com.cn/u/53a964b9010008i2
# tar -jxvf httpd-2.2.3.tar.bz2
# cd httpd-2.2.3
# ./configure LDFLAGS="-L/usr/lib64 -L/lib64" --enable-so --enable-rewrite --enable-cgi
# vi ./srclib/apr-util/Makefile
将
APRUTIL_LIBS = -lsqlite3 /usr/lib/libexpat.la /root/tar/httpd-2.2.3/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
改为
APRUTIL_LIBS = -lsqlite3 /usr/lib64/libexpat.la /root/tar/httpd-2.2.3/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
# make
# make install
# cd /usr/local/apache2/
# ./bin/apachectl -k start
在浏览器中输入
http://127.0.0.1/
如果能够看到
It works!
则表示安装成功
参考地址:
http://www.mail-archive.com/[email protected]/msg24675.html
collect2: ld returned 1 exit status
make[3]: *** [libaprutil-1.la] 错误 1
make[3]: Leaving directory `/root/tar/httpd-2.2.3/srclib/apr-util'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/root/tar/httpd-2.2.3/srclib/apr-util'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/tar/httpd-2.2.3/srclib'
make: *** [all-recursive] 错误 1