VPS侦探论坛

 找回密码
 注册
查看: 4014|回复: 1

[Apache] 树莓派上的centos的centos编译apache的问题

[复制链接]
发表于 2016-9-19 23:57:47 | 显示全部楼层 |阅读模式

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 ab  ab.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[2]: *** [ab] Error 1
make[2]: Leaving directory `/home/lamp/httpd-2.4.7/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lamp/httpd-2.4.7/support'
make: *** [all-recursive] Error 1
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-9-20 10:29:08 | 显示全部楼层


换apache 2.4.23试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-23 11:04 , Processed in 0.025928 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表