Just Do IT !

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

字数统计: 492阅读时长: 2 min
2019/10/24 Share

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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
在这里插入图片描述
成功!

CATALOG