2024年3月22日发(作者:)

Apache安装

错误一

checking for APR version 1.3.0 no

configure: error: APR version 1.3.0 or later is required

错误二

checking for APR version 1.3.0 yes

checking for APR-util version 1.3.0 no

configure: error: APR-util version 1.3.0 or later is required

错误三

checking no

configure: error: APR could not be located.

错误四

checking no

configure: error: APR-UTIL could not be located.

安装 Apr-util-1.4.1

make

libtool: link: `dbd/apr_dbd_' is not a valid libtool object

make[1]: *** [dbd/apr_dbd_] Error 1

make[1]: Leaving directory `/root/apr-util-1.4.1'

make: *** [all-recursive] Error 1

Make install

dbd/apr_dbd_ -lsqlite3

libtool: link: `dbd/apr_dbd_' is not a valid libtool object

正常信息

make[1]: Entering directory `/root/apr-util-0.9.19'

Found newer headers. Will rebuild .

rm -f

gcc -E -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE

-D_LARGEFILE64_SOURCE -I/root/apr-util-0.9.19/include

-I/root/apr-util-0.9.19/include/private

-I/usr/local/apr/include/apr-1 exports.c | grep "ap_hack_" | sed

-e 's/^.*[)](.*);$/1/' >>

In file included from exports.c:35:

/root/apr-util-0.9.19/include/apu_compat.h:34:24: error:

apr_compat.h: No such file or directory

gcc -E -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE

-D_LARGEFILE64_SOURCE -I/root/apr-util-0.9.19/include

-I/root/apr-util-0.9.19/include/private

-I/usr/local/apr/include/apr-1 export_vars.h | sed -e

's/^#[^!]*//' | sed -e '/^$/d' >>

make[1]: Leaving directory `/root/apr-util-0.9.19'

安装apr apr-util pcre 参加要加prefix记录安装到什么位置

Apr apr-util下载目录

/apr/

Pcre下载地址

ftp:///pub/software/programming/pcre/

Linux上的Apache http Server安装说明

第一次安装Apache http Server,太多问题了,把问题整理出来让以后安装Apache

服务的人少一些麻烦吧;

简要说明一下

我这里用的是虚拟机

操作系统为 Red Hat Enterprise Linux Server 5.4

安装的Apache Http服务为

系统操作用户为 root用户

操作目录为 /root

将 放到系统中

unzip

解压缩完成后 形成一个的文件

tar -xvf

解包;解包完成后形成一个httpd.2.4.1的文件夹

cd httpd.2.4.1

进入文件夹; 在本文件夹下面有一个文件configure文件;

我通过 sh configure 执行了一下此文件;报错

错误代码为

checking no

configure: error: APR not found.

提示找不到APR;通过上网搜索发布需要下载安装APR包;

于是到Apache官网/apr/ 上找到APR包;我这里下的是

2和2;