rclib/apr-util/xml/expat/lib/libexpat.la /usr/local/source/httpd-2.2.10/srclib/apr/libapr-1.la -lrt -lcrypt -lpthread libtool: link: cannot find the library `/usr/local/source/httpd-2.2.10/srclib/apr-util/xml/expat/lib/libexpat.la‘ or unhandled argument `/usr/local/source/httpd-2.2.10/srclib/apr-util/xml/expat/lib/libexpat.la‘ make[2]: *** [libaprutil-1.la] 错误 1 make[2]: Leaving directory `/usr/local/source/httpd-2.2.10/srclib/apr-util‘ make[1]: *** [install-recursive] 错误 1 make[1]: Leaving directory `/usr/local/source/httpd-2.2.10/srclib‘ make: *** [install-recursive] 错误 1
今天在某宝上购买了个vps准备编译安装apache可是到make intall 这一步时遇到如上的错误,于是自己试
yum install libapreq2-devel.i686 yum install apr-util* yum install ghc-haskell-src.i686 yum install perl-File-Copy-Recursive.noarch 以上这些都是我自己尝试的解决方案,都是失败的,只能够Google了一下
找到以下解决方法
./configure --prefix=/usr/local/apache2 --sysconfdir=/etc/httpd --with-zlib=/usr/local/zlib --with-include-apr --enable-so --enable-deflate=share --enable-expire=share --enable-rewrite=share --enable-static-support --with-mpm=worker --libdir=/usr/lib32 #在这里加上了 --libdir=/usr/lib32这个参数,解决了
本文出自 “Freax” 博客,请务必保留此出处http://freax.blog.51cto.com/6614733/1391044
centos6.4编译apache时的错误,布布扣,bubuko.com
原文:http://freax.blog.51cto.com/6614733/1391044