源码安装httpd报错: checking for APR... configure: error: the --with-apr parameter is incorrect.

Liunx 专栏收录该内容
32 篇文章 1 订阅

在这里插入图片描述

Hello,我是普通Gopher,00后男孩,极致的共享主义者,想要成为一个终身学习者。专注于做最通俗易懂的计算机基础知识类公众号。每天推送Golang技术干货,内容起于K8S而不止于K8S,涉及Docker、微服务、DevOps、数据库、虚拟化等云计算内容及SRE经验总结
=======================
初次见面,我为你准备了100G学习大礼包:
1、《百余本最新计算机电子图书》
2、《30G Golang学习视频》
3、《20G Java学习视频》
4、《90G Liunx高级学习视频》
5、《10G 算法(含蓝桥杯真题)学习视频》
6、《英语四级,周杰伦歌曲免费送!》
路过麻烦动动小手,点个关注,持续更新技术文章与资料!


使用源码安装httpd时,执行命令
./configure --prefix=/usr/local/apache

configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/apr.h
config.status: creating build/apr_rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating apr--config
config.status: WARNING: apr-config.in seems to ignore the --datarootdir setting
config.status: creating apr.pc
config.status: creating test/Makefile
config.status: creating test/internal/Makefile
config.status: creating include/arch/unix/apr_private.h
config.status: executing default commands
config.status: include/apr.h is unchanged
config.status: include/arch/unix/apr_private.h is unchanged
srclib/apr configured properly
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
setting CC to ""
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
setting CPP to ""
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
setting CFLAGS to ""
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
setting CPPFLAGS to ""
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
setting LDFLAGS to ""
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory
./configure: line 1: ./srclib/apr/apr-1-config: No such file or directory

Configuring Apache Portable Runtime Utility library...

checking for APR-util... reconfig
configuring package in srclib/apr-util now
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.2.10
checking for chosen layout... apr-util
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
Applying apr-util hints file rules for x86_64-unknown-linux-gnu
checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
configure failed for srclib/apr-util

猜测可能没有安装gcc,g++库

安装完报错依旧

尝试给与httpd-2.2.17权限

chmod -R 777 httpd-2.2.17
在这里插入图片描述
成功!

  • 0
    点赞
  • 2
    评论
  • 2
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 点我我会动 设计师:白松林 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值