riadwkdm 发表于 2016-9-19 23:57:47

树莓派上的centos的centos编译apache的问题

1.
tar zxvf apr-1.4.6.tar.gz
tar zxvf apr-util-1.4.1.tar.gz
cp -r /lamp/apr-1.4.6 /lamp/httpd-2.4.7/srclib/apr
cp -r /lamp/apr-util-1.4.1 /lamp/httpd-2.4.7/srclib/apr-util
安装步骤:安装 apache
cd /lamp/httpd-2.4.7
./configure --prefix=/usr/local/apache2/ --sysconfdir=/usr/local/apache2/etc/
--with-included-apr --enable-so --enable-deflate=shared
--enable-expires=shared --enable-rewrite=shared


make得到:
-o abab.lo      /home/lamp/httpd-2.4.7/srclib/apr-util/libaprutil-1.la -lexpat /home/lamp/httpd-2.4.7/srclib/apr/libapr-1.la -lrt -lcrypt -lpthread -ldl
ab.o: In function `output_results':
/home/lamp/httpd-2.4.7/support/ab.c:876: undefined reference to `sqrt'
/home/lamp/httpd-2.4.7/support/ab.c:875: undefined reference to `sqrt'
/home/lamp/httpd-2.4.7/support/ab.c:877: undefined reference to `sqrt'
/home/lamp/httpd-2.4.7/support/ab.c:874: undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/lamp/httpd-2.4.7/support'
make: *** Error 1
make: Leaving directory `/home/lamp/httpd-2.4.7/support'
make: *** Error 1

licess 发表于 2016-9-20 10:29:08

换apache 2.4.23试试
页: [1]
查看完整版本: 树莓派上的centos的centos编译apache的问题