xiaui520 发表于 2018-11-23 06:34:17

centos6.4编译apache时的错误

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: *** 错误 1
make: Leaving directory `/usr/local/source/httpd-2.2.10/srclib/apr-util'
make: *** 错误 1
make: Leaving directory `/usr/local/source/httpd-2.2.10/srclib'
make: *** 错误 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这个参数,解决了  




页: [1]
查看完整版本: centos6.4编译apache时的错误