概述
httpd是什么:httpd是Apache超文本传输协议(HTTP)服务器的主程序。被设计为一个独立运行的后台进程,它会建立一个处理请求的子进程或线程的池。
httpd用在哪里:httpd是一个开源软件,且一般用作web服务器来使用。目前最流行的web服务器软件叫做httpd,在早期的http server就叫做apache,到了http server 2.0以后就改名为httpd了。
所以有时候听到apache服务器和httpd服务器其实都是指得是一个意思。
httpd什么时候使用: Apache HTTP 服务器被设计为一个功能强大,并且灵活的 web 服务器, 可以在很多平台与环境中工作。不同平台和不同的环境往往需要不同的特性,或可能以不同的方式实现相同的特性最有效率。Apache HTTP 服务器通过模块化的设计来适应各种环境。这种设计允许网站管理员通过在编译时或运行时,选择哪些模块将会加载在服务器中,来选择服务器特性。
为什么使用httpd:
httpd-2.2:1. 事先创建进程
2. 按需维持适当的进程
3. 模块化设计,核心比较小,各种功能通过模块添加(包括PHP),支持运行时配置,支持单独编译模块
4. 支持多种方式的虚拟主机配置,如基于ip的虚拟主机,基于端口的虚拟主机,基于域名的虚拟主机等
5. 支持https协议(通过mod_ssl模块实现)
6. 支持用户认证
7. 支持基于IP或域名的ACL访问控制机制
8. 支持每目录的访问控制(用户访问默认主页时不需要提供用户名和密码,但是用户访问某特定目录时需要提供用户名和密码)
9. 支持URL重写
10. 支持MPM(Multi Path Modules,多处理模块)。用于定义httpd的工作模型(单进程、单进程多线程、多进程、多进程单线程、多进程多线程)
httpd-2.4:1. MPM支持运行DSO机制(Dynamic Share Object,模块的动态装/卸载机制),以模块形式按需加载
2. 支持event MPM,eventMPM模块生产环境可用
3. 支持异步读写
4. 支持每个模块及每个目录分别使用各自的日志级别
5. 每个请求相关的专业配置,使用来配置
6. 增强版的表达式分析器
7. 支持毫秒级的keepalive timeout
8. 基于FQDN的虚拟主机不再需要NameVirtualHost指令
9. 支持用户自定义变量
10. 支持新的指令(AllowOverrideList)
11. 降低对内存的消耗
创建一个阿帕奇的用户(系统用户不需要家目录,不需要登录)
[root@xk ~]# useradd -r -M -s /sbin/nologin apache
查看该用户
[root@xk ~]# id apache
uid=994(apache) gid=991(apache) groups=991(apache)
安装wget
[root@xk ~]# yum -y install wget
Last metadata expiration check: 13:46:08 ago on Sun 25 Dec 2022 02:43:22 PM CST.
Dependencies resolved.
=====================================================================
Package Arch Version Repository Size
=====================================================================
Installing:
wget x86_64 1.19.5-10.el8 appstream 734 k
Installing dependencies:
libmetalink x86_64 0.1.3-7.el8 baseos 32 k
Transaction Summary
=====================================================================
Install 2 Packages
Total download size: 766 k
Installed size: 2.8 M
Downloading Packages:
(1/2): libmetalink-0.1.3-7.el8.x86_6 84 kB/s | 32 kB 00:00
(2/2): wget-1.19.5-10.el8.x86_64.rpm 650 kB/s | 734 kB 00:01
---------------------------------------------------------------------
Total 676 kB/s | 766 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libmetalink-0.1.3-7.el8.x86_64 1/2
Installing : wget-1.19.5-10.el8.x86_64 2/2
Running scriptlet: wget-1.19.5-10.el8.x86_64 2/2
Verifying : wget-1.19.5-10.el8.x86_64 1/2
Verifying : libmetalink-0.1.3-7.el8.x86_64 2/2
Installed:
libmetalink-0.1.3-7.el8.x86_64 wget-1.19.5-10.el8.x86_64
Complete!
进入usr/src目录
[root@xk ~]# cd /usr/src/
[root@xk src]# ls
debug kernels
下载两个安装包
[root@xk src]# wget https://downloads.apache.org/apr/apr-1.7.0.tar.gz--2022-12-26 05:54:48-- https://downloads.apache.org/apr/apr-1.7.0.tar.gz
Resolving downloads.apache.org (downloads.apache.org)... 135.181.214.104, 88.99.95.219, 2a01:4f9:3a:2c57::2, ...
Connecting to downloads.apache.org (downloads.apache.org)|135.181.214.104|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1093896 (1.0M) [application/x-gzip]
Saving to: ‘apr-1.7.0.tar.gz’
apr-1.7.0.tar.gz 100%[==========>] 1.04M 570KB/s in 1.9s
2022-12-26 05:54:51 (570 KB/s) - ‘apr-1.7.0.tar.gz’ saved [1093896/1093896]
[root@xk src]# wget https://downloads.apache.org/apr/apr-util-1.6.1.tar.gz
--2022-12-26 05:56:28-- https://downloads.apache.org/apr/apr-util-1.6.1.tar.gz
Resolving downloads.apache.org (downloads.apache.org)... 88.99.95.219, 135.181.214.104, 2a01:4f8:10a:201a::2, ...
Connecting to downloads.apache.org (downloads.apache.org)|88.99.95.219|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 554301 (541K) [application/x-gzip]
Saving to: ‘apr-util-1.6.1.tar.gz’
apr-util-1.6.1.ta 100%[==========>] 541.31K 85.7KB/s in 7.0s
2022-12-26 05:56:36 (76.9 KB/s) - ‘apr-util-1.6.1.tar.gz’ saved [554301/554301]
主程序apache下载
[root@xk src]# wget https://downloads.apache.org/httpd/httpd-2.4.54.tar.gz
--2022-12-26 05:58:16-- https://downloads.apache.org/httpd/httpd-2.4.54.tar.gz
Resolving downloads.apache.org (downloads.apache.org)... 135.181.214.104, 88.99.95.219, 2a01:4f9:3a:2c57::2, ...
Connecting to downloads.apache.org (downloads.apache.org)|135.181.214.104|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9743277 (9.3M) [application/x-gzip]
Saving to: ‘httpd-2.4.54.tar.gz’
httpd-2.4.54.tar. 100%[==========>] 9.29M 122KB/s in 94s
2022-12-26 05:59:51 (101 KB/s) - ‘httpd-2.4.54.tar.gz’ saved [9743277/9743277]
三个软件包下载完成
[root@xk src]# ls
apr-1.7.0.tar.gz debug kernels
apr-util-1.6.1.tar.gz httpd-2.4.54.tar.gz
解压三个软件包
[root@xk src]# tar xf apr-1.7.0.tar.gz
[root@xk src]# tar xf apr-util-1.6.1.tar.gz
[root@xk src]# tar xf httpd-2.4.54.tar.gz
[root@xk src]# ls
apr-1.7.0 apr-util-1.6.1.tar.gz httpd-2.4.54.tar.gz
apr-1.7.0.tar.gz debug kernels
apr-util-1.6.1 httpd-2.4.54
进入apr-1.7.0查看到有configure
[root@xk src]# cd apr-1.7.0
[root@xk apr-1.7.0]# ls
apr-config.in CMakeLists.txt libapr.mak poll
apr.dep config.layout libapr.rc random
apr.dsp configure LICENSE README
apr.dsw configure.in locks README.cmake
apr.mak docs Makefile.in shmem
apr.pc.in dso Makefile.win strings
apr.spec emacs-mode memory support
atomic encoding misc tables
build file_io mmap test
build.conf helpers network_io threadproc
buildconf include NOTICE time
build-outputs.mk libapr.dep NWGNUmakefile tools
CHANGES libapr.dsp passwd user
安装vim编辑器
[root@xk apr-1.7.0]# yum -y install vim
Last metadata expiration check: 0:51:47 ago on Mon 26 Dec 2022 05:12:47 AM CST.
Package vim-enhanced-2:8.0.1763-16.el8.x86_64 is already installed.
Dependencies resolved.
找到configure里删除此行 $RM "$cfgfile"
"libtool":C)
# See if we are running on zsh, and set the options that allow our
# commands through without removal of escapes.
if test -n "${ZSH_VERSION+set}"; then
setopt NO_GLOB_SUBST
fi
cfgfile=${ofile}T
trap "$RM "$cfgfile"; exit 1" 1 2 15
$RM "$cfgfile"
cat <<_LT_EOF >> "$cfgfile"
#! $SHELL
# Generated automatically by $as_me ($PACKAGE) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
/cfgfile
保存并退出
安装依赖包
[root@xk apr-1.7.0]# yum -y install openssl-devel pcre-devel expat-devel libtool
Last metadata expiration check: 1:16:25 ago on Mon 26 Dec 2022 05:12:47 AM CST.
Dependencies resolved.
=====================================================================
Package Arch Version Repo Size
=====================================================================
Installing:
expat-devel x86_64 2.2.5-4.el8 baseos 55 k
libtool x86_64 2.4.6-25.el8 appstream 709 k
openssl-devel x86_64 1:1.1.1k-5.el8_5 baseos 2.3 M
pcre-devel x86_64 8.42-6.el8 baseos 551 k
Installing dependencies:
autoconf noarch 2.69-29.el8 appstream 710 k
automake noarch 1.16.1-7.el8 appstream 713 k
emacs-filesystem noarch 1:26.1-7.el8 baseos 70 k
keyutils-libs-devel x86_64 1.5.10-9.el8 baseos 48 k
krb5-devel x86_64 1.18.2-14.el8 baseos 560 k
libcom_err-devel x86_64 1.45.6-2.el8 baseos 38 k
libkadm5 x86_64 1.18.2-14.el8 baseos 187 k
libselinux-devel x86_64 2.9-5.el8 baseos 200 k
libsepol-devel x86_64 2.9-3.el8 baseos 87 k
libverto-devel x86_64 0.3.0-5.el8 baseos 18 k
m4 x86_64 1.4.18-7.el8 baseos 223 k
pcre-cpp x86_64 8.42-6.el8 baseos 47 k
pcre-utf16 x86_64 8.42-6.el8 baseos 195 k
pcre-utf32 x86_64 8.42-6.el8 baseos 186 k
pcre2-devel x86_64 10.32-2.el8 baseos 605 k
pcre2-utf16 x86_64 10.32-2.el8 baseos 229 k
pcre2-utf32 x86_64 10.32-2.el8 baseos 220 k
perl-Carp noarch 1.42-396.el8 baseos 30 k
perl-Data-Dumper x86_64 2.167-399.el8 baseos 58 k
perl-Digest noarch 1.17-395.el8 appstream 27 k
perl-Digest-MD5 x86_64 2.55-396.el8 appstream 37 k
perl-Encode x86_64 4:2.97-3.el8 baseos 1.5 M
perl-Errno x86_64 1.28-420.el8 baseos 76 k
perl-Exporter noarch 5.72-396.el8 baseos 34 k
perl-File-Path noarch 2.15-2.el8 baseos 38 k
perl-File-Temp noarch 0.230.600-1.el8 baseos 63 k
perl-Getopt-Long noarch 1:2.50-4.el8 baseos 63 k
perl-HTTP-Tiny noarch 0.074-1.el8 baseos 58 k
perl-IO x86_64 1.38-420.el8 baseos 142 k
perl-MIME-Base64 x86_64 3.15-396.el8 baseos 31 k
perl-Net-SSLeay x86_64 1.88-1.module_el8.3.0+410+ff426aa3
appstream 379 k
perl-PathTools x86_64 3.74-1.el8 baseos 90 k
perl-Pod-Escapes noarch 1:1.07-395.el8 baseos 20 k
perl-Pod-Perldoc noarch 3.28-396.el8 baseos 86 k
perl-Pod-Simple noarch 1:3.35-395.el8 baseos 213 k
perl-Pod-Usage noarch 4:1.69-395.el8 baseos 34 k
perl-Scalar-List-Utils x86_64 3:1.49-2.el8 baseos 68 k
perl-Socket x86_64 4:2.027-3.el8 baseos 59 k
perl-Storable x86_64 1:3.11-3.el8 baseos 98 k
perl-Term-ANSIColor noarch 4.06-396.el8 baseos 46 k
perl-Term-Cap noarch 1.17-395.el8 baseos 23 k
perl-Text-ParseWords noarch 3.30-395.el8 baseos 18 k
perl-Text-Tabs+Wrap noarch 2013.0523-395.el8 baseos 24 k
perl-Thread-Queue noarch 3.13-1.el8 appstream 24 k
perl-Time-Local noarch 1:1.280-1.el8 baseos 34 k
perl-URI noarch 1.73-3.el8 appstream 116 k
perl-Unicode-Normalize x86_64 1.25-396.el8 baseos 82 k
perl-constant noarch 1.33-396.el8 baseos 25 k
perl-interpreter x86_64 4:5.26.3-420.el8 baseos 6.3 M
perl-libnet noarch 3.11-3.el8 appstream 121 k
perl-libs x86_64 4:5.26.3-420.el8 baseos 1.6 M
perl-macros x86_64 4:5.26.3-420.el8 baseos 72 k
perl-parent noarch 1:0.237-1.el8 baseos 20 k
perl-podlators noarch 4.11-1.el8 baseos 118 k
perl-threads x86_64 1:2.21-2.el8 baseos 61 k
perl-threads-shared x86_64 1.58-2.el8 baseos 48 k
zlib-devel x86_64 1.2.11-17.el8 baseos 58 k
Installing weak dependencies:
perl-IO-Socket-IP noarch 0.39-5.el8 appstream 47 k
perl-IO-Socket-SSL noarch 2.066-4.module_el8.3.0+410+ff426aa3
appstream 298 k
perl-Mozilla-CA noarch 20160104-7.module_el8.3.0+416+dee7bcef
appstream 15 k
Enabling module streams:
perl 5.26
perl-IO-Socket-SSL 2.066
perl-libwww-perl 6.34
Transaction Summary
=====================================================================
Install 64 Packages
Total download size: 20 M
Installed size: 53 M
Downloading Packages:
(1/64): automake-1.16.1-7.el8.noarch 800 kB/s | 713 kB 00:00
(2/64): libtool-2.4.6-25.el8.x86_64. 791 kB/s | 709 kB 00:00
(3/64): perl-Digest-1.17-395.el8.noa 263 kB/s | 27 kB 00:00
(4/64): perl-Digest-MD5-2.55-396.el8 306 kB/s | 37 kB 00:00
(5/64): perl-IO-Socket-IP-0.39-5.el8 241 kB/s | 47 kB 00:00
(6/64): autoconf-2.69-29.el8.noarch. 491 kB/s | 710 kB 00:01
(7/64): perl-Mozilla-CA-20160104-7.m 55 kB/s | 15 kB 00:00
(8/64): perl-IO-Socket-SSL-2.066-4.m 591 kB/s | 298 kB 00:00
(9/64): perl-Thread-Queue-3.13-1.el8 182 kB/s | 24 kB 00:00
(10/64): perl-URI-1.73-3.el8.noarch. 598 kB/s | 116 kB 00:00
(11/64): perl-libnet-3.11-3.el8.noar 612 kB/s | 121 kB 00:00
(12/64): perl-Net-SSLeay-1.88-1.modu 1.0 MB/s | 379 kB 00:00
(13/64): emacs-filesystem-26.1-7.el8 417 kB/s | 70 kB 00:00
(14/64): expat-devel-2.2.5-4.el8.x86 310 kB/s | 55 kB 00:00
(15/64): keyutils-libs-devel-1.5.10- 272 kB/s | 48 kB 00:00
(16/64): libkadm5-1.18.2-14.el8.x86_ 669 kB/s | 187 kB 00:00
(17/64): krb5-devel-1.18.2-14.el8.x8 1.0 MB/s | 560 kB 00:00
(18/64): libselinux-devel-2.9-5.el8. 727 kB/s | 200 kB 00:00
(19/64): libcom_err-devel-1.45.6-2.e 67 kB/s | 38 kB 00:00
(20/64): libsepol-devel-2.9-3.el8.x8 449 kB/s | 87 kB 00:00
(21/64): libverto-devel-0.3.0-5.el8. 123 kB/s | 18 kB 00:00
(22/64): m4-1.4.18-7.el8.x86_64.rpm 345 kB/s | 223 kB 00:00
(23/64): pcre-cpp-8.42-6.el8.x86_64. 83 kB/s | 47 kB 00:00
(24/64): pcre-utf16-8.42-6.el8.x86_6 178 kB/s | 195 kB 00:01
(25/64): openssl-devel-1.1.1k-5.el8_ 1.3 MB/s | 2.3 MB 00:01
(26/64): pcre-utf32-8.42-6.el8.x86_6 815 kB/s | 186 kB 00:00
(27/64): pcre-devel-8.42-6.el8.x86_6 348 kB/s | 551 kB 00:01
(28/64): pcre2-devel-10.32-2.el8.x86 1.1 MB/s | 605 kB 00:00
(29/64): pcre2-utf16-10.32-2.el8.x86 695 kB/s | 229 kB 00:00
(30/64): perl-Carp-1.42-396.el8.noar 164 kB/s | 30 kB 00:00
(31/64): perl-Data-Dumper-2.167-399. 271 kB/s | 58 kB 00:00
(32/64): perl-Errno-1.28-420.el8.x86 229 kB/s | 76 kB 00:00
(33/64): pcre2-utf32-10.32-2.el8.x86 306 kB/s | 220 kB 00:00
(34/64): perl-Exporter-5.72-396.el8. 122 kB/s | 34 kB 00:00
(35/64): perl-File-Path-2.15-2.el8.n 127 kB/s | 38 kB 00:00
(36/64): perl-Getopt-Long-2.50-4.el8 287 kB/s | 63 kB 00:00
(37/64): perl-Encode-2.97-3.el8.x86_ 1.5 MB/s | 1.5 MB 00:00
(38/64): perl-HTTP-Tiny-0.074-1.el8. 313 kB/s | 58 kB 00:00
(39/64): perl-IO-1.38-420.el8.x86_64 720 kB/s | 142 kB 00:00
(40/64): perl-MIME-Base64-3.15-396.e 228 kB/s | 31 kB 00:00
(41/64): perl-PathTools-3.74-1.el8.x 507 kB/s | 90 kB 00:00
(42/64): perl-Pod-Escapes-1.07-395.e 180 kB/s | 20 kB 00:00
(43/64): perl-File-Temp-0.230.600-1. 69 kB/s | 63 kB 00:00
(44/64): perl-Pod-Perldoc-3.28-396.e 369 kB/s | 86 kB 00:00
(45/64): perl-Pod-Simple-3.35-395.el 774 kB/s | 213 kB 00:00
(46/64): perl-Scalar-List-Utils-1.49 453 kB/s | 68 kB 00:00
(47/64): perl-Pod-Usage-1.69-395.el8 174 kB/s | 34 kB 00:00
(48/64): perl-Socket-2.027-3.el8.x86 305 kB/s | 59 kB 00:00
(49/64): perl-Term-ANSIColor-4.06-39 292 kB/s | 46 kB 00:00
(50/64): perl-Term-Cap-1.17-395.el8. 166 kB/s | 23 kB 00:00
(51/64): perl-Text-ParseWords-3.30-3 139 kB/s | 18 kB 00:00
(52/64): perl-Storable-3.11-3.el8.x8 326 kB/s | 98 kB 00:00
(53/64): perl-Text-Tabs+Wrap-2013.05 198 kB/s | 24 kB 00:00
(54/64): perl-Unicode-Normalize-1.25 563 kB/s | 82 kB 00:00
(55/64): perl-Time-Local-1.280-1.el8 207 kB/s | 34 kB 00:00
(56/64): perl-constant-1.33-396.el8. 208 kB/s | 25 kB 00:00
(57/64): perl-macros-5.26.3-420.el8. 365 kB/s | 72 kB 00:00
(58/64): perl-parent-0.237-1.el8.noa 79 kB/s | 20 kB 00:00
(59/64): perl-podlators-4.11-1.el8.n 298 kB/s | 118 kB 00:00
(60/64): perl-libs-5.26.3-420.el8.x8 1.3 MB/s | 1.6 MB 00:01
(61/64): perl-threads-2.21-2.el8.x86 203 kB/s | 61 kB 00:00
(62/64): perl-threads-shared-1.58-2. 278 kB/s | 48 kB 00:00
(63/64): zlib-devel-1.2.11-17.el8.x8 251 kB/s | 58 kB 00:00
(64/64): perl-interpreter-5.26.3-420 1.3 MB/s | 6.3 MB 00:05
---------------------------------------------------------------------
Total 1.6 MB/s | 20 MB 00:12
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : perl-Digest-1.17-395.el8.noarch 1/64
Installing : perl-Digest-MD5-2.55-396.el8.x86_64 2/64
Installing : perl-Data-Dumper-2.167-399.el8.x86_64 3/64
Installing : perl-libnet-3.11-3.el8.noarch 4/64
Installing : perl-Net-SSLeay-1.88-1.module_el8.3.0+4 5/64
Installing : perl-URI-1.73-3.el8.noarch 6/64
Installing : perl-Pod-Escapes-1:1.07-395.el8.noarch 7/64
Installing : perl-Mozilla-CA-20160104-7.module_el8.3 8/64
Installing : perl-IO-Socket-IP-0.39-5.el8.noarch 9/64
Installing : perl-Time-Local-1:1.280-1.el8.noarch 10/64
Installing : perl-IO-Socket-SSL-2.066-4.module_el8.3 11/64
Installing : perl-Term-ANSIColor-4.06-396.el8.noarch 12/64
Installing : perl-Term-Cap-1.17-395.el8.noarch 13/64
Installing : perl-File-Temp-0.230.600-1.el8.noarch 14/64
Installing : perl-Pod-Simple-1:3.35-395.el8.noarch 15/64
Installing : perl-HTTP-Tiny-0.074-1.el8.noarch 16/64
Installing : perl-podlators-4.11-1.el8.noarch 17/64
Installing : perl-Pod-Perldoc-3.28-396.el8.noarch 18/64
Installing : perl-Text-ParseWords-3.30-395.el8.noarc 19/64
Installing : perl-Pod-Usage-4:1.69-395.el8.noarch 20/64
Installing : perl-MIME-Base64-3.15-396.el8.x86_64 21/64
Installing : perl-Storable-1:3.11-3.el8.x86_64 22/64
Installing : perl-Getopt-Long-1:2.50-4.el8.noarch 23/64
Installing : perl-Errno-1.28-420.el8.x86_64 24/64
Installing : perl-Socket-4:2.027-3.el8.x86_64 25/64
Installing : perl-Encode-4:2.97-3.el8.x86_64 26/64
Installing : perl-Carp-1.42-396.el8.noarch 27/64
Installing : perl-Exporter-5.72-396.el8.noarch 28/64
Installing : perl-libs-4:5.26.3-420.el8.x86_64 29/64
Installing : perl-Scalar-List-Utils-3:1.49-2.el8.x86 30/64
Installing : perl-parent-1:0.237-1.el8.noarch 31/64
Installing : perl-macros-4:5.26.3-420.el8.x86_64 32/64
Installing : perl-Text-Tabs+Wrap-2013.0523-395.el8.n 33/64
Installing : perl-Unicode-Normalize-1.25-396.el8.x86 34/64
Installing : perl-File-Path-2.15-2.el8.noarch 35/64
Installing : perl-IO-1.38-420.el8.x86_64 36/64
Installing : perl-PathTools-3.74-1.el8.x86_64 37/64
Installing : perl-constant-1.33-396.el8.noarch 38/64
Installing : perl-threads-1:2.21-2.el8.x86_64 39/64
Installing : perl-threads-shared-1.58-2.el8.x86_64 40/64
Installing : perl-interpreter-4:5.26.3-420.el8.x86_6 41/64
Installing : perl-Thread-Queue-3.13-1.el8.noarch 42/64
Installing : zlib-devel-1.2.11-17.el8.x86_64 43/64
Installing : pcre2-utf32-10.32-2.el8.x86_64 44/64
Installing : pcre2-utf16-10.32-2.el8.x86_64 45/64
Installing : pcre2-devel-10.32-2.el8.x86_64 46/64
Installing : pcre-utf32-8.42-6.el8.x86_64 47/64
Installing : pcre-utf16-8.42-6.el8.x86_64 48/64
Installing : pcre-cpp-8.42-6.el8.x86_64 49/64
Installing : m4-1.4.18-7.el8.x86_64 50/64
Running scriptlet: m4-1.4.18-7.el8.x86_64 50/64
Installing : libverto-devel-0.3.0-5.el8.x86_64 51/64
Installing : libsepol-devel-2.9-3.el8.x86_64 52/64
Installing : libselinux-devel-2.9-5.el8.x86_64 53/64
Installing : libkadm5-1.18.2-14.el8.x86_64 54/64
Installing : libcom_err-devel-1.45.6-2.el8.x86_64 55/64
Installing : keyutils-libs-devel-1.5.10-9.el8.x86_64 56/64
Installing : krb5-devel-1.18.2-14.el8.x86_64 57/64
Installing : emacs-filesystem-1:26.1-7.el8.noarch 58/64
Installing : autoconf-2.69-29.el8.noarch 59/64
Running scriptlet: autoconf-2.69-29.el8.noarch 59/64
Installing : automake-1.16.1-7.el8.noarch 60/64
Installing : libtool-2.4.6-25.el8.x86_64 61/64
Running scriptlet: libtool-2.4.6-25.el8.x86_64 61/64
Installing : openssl-devel-1:1.1.1k-5.el8_5.x86_64 62/64
Installing : pcre-devel-8.42-6.el8.x86_64 63/64
Installing : expat-devel-2.2.5-4.el8.x86_64 64/64
Running scriptlet: expat-devel-2.2.5-4.el8.x86_64 64/64
Verifying : autoconf-2.69-29.el8.noarch 1/64
Verifying : automake-1.16.1-7.el8.noarch 2/64
Verifying : libtool-2.4.6-25.el8.x86_64 3/64
Verifying : perl-Digest-1.17-395.el8.noarch 4/64
Verifying : perl-Digest-MD5-2.55-396.el8.x86_64 5/64
Verifying : perl-IO-Socket-IP-0.39-5.el8.noarch 6/64
Verifying : perl-IO-Socket-SSL-2.066-4.module_el8.3 7/64
Verifying : perl-Mozilla-CA-20160104-7.module_el8.3 8/64
Verifying : perl-Net-SSLeay-1.88-1.module_el8.3.0+4 9/64
Verifying : perl-Thread-Queue-3.13-1.el8.noarch 10/64
Verifying : perl-URI-1.73-3.el8.noarch 11/64
Verifying : perl-libnet-3.11-3.el8.noarch 12/64
Verifying : emacs-filesystem-1:26.1-7.el8.noarch 13/64
Verifying : expat-devel-2.2.5-4.el8.x86_64 14/64
Verifying : keyutils-libs-devel-1.5.10-9.el8.x86_64 15/64
Verifying : krb5-devel-1.18.2-14.el8.x86_64 16/64
Verifying : libcom_err-devel-1.45.6-2.el8.x86_64 17/64
Verifying : libkadm5-1.18.2-14.el8.x86_64 18/64
Verifying : libselinux-devel-2.9-5.el8.x86_64 19/64
Verifying : libsepol-devel-2.9-3.el8.x86_64 20/64
Verifying : libverto-devel-0.3.0-5.el8.x86_64 21/64
Verifying : m4-1.4.18-7.el8.x86_64 22/64
Verifying : openssl-devel-1:1.1.1k-5.el8_5.x86_64 23/64
Verifying : pcre-cpp-8.42-6.el8.x86_64 24/64
Verifying : pcre-devel-8.42-6.el8.x86_64 25/64
Verifying : pcre-utf16-8.42-6.el8.x86_64 26/64
Verifying : pcre-utf32-8.42-6.el8.x86_64 27/64
Verifying : pcre2-devel-10.32-2.el8.x86_64 28/64
Verifying : pcre2-utf16-10.32-2.el8.x86_64 29/64
Verifying : pcre2-utf32-10.32-2.el8.x86_64 30/64
Verifying : perl-Carp-1.42-396.el8.noarch 31/64
Verifying : perl-Data-Dumper-2.167-399.el8.x86_64 32/64
Verifying : perl-Encode-4:2.97-3.el8.x86_64 33/64
Verifying : perl-Errno-1.28-420.el8.x86_64 34/64
Verifying : perl-Exporter-5.72-396.el8.noarch 35/64
Verifying : perl-File-Path-2.15-2.el8.noarch 36/64
Verifying : perl-File-Temp-0.230.600-1.el8.noarch 37/64
Verifying : perl-Getopt-Long-1:2.50-4.el8.noarch 38/64
Verifying : perl-HTTP-Tiny-0.074-1.el8.noarch 39/64
Verifying : perl-IO-1.38-420.el8.x86_64 40/64
Verifying : perl-MIME-Base64-3.15-396.el8.x86_64 41/64
Verifying : perl-PathTools-3.74-1.el8.x86_64 42/64
Verifying : perl-Pod-Escapes-1:1.07-395.el8.noarch 43/64
Verifying : perl-Pod-Perldoc-3.28-396.el8.noarch 44/64
Verifying : perl-Pod-Simple-1:3.35-395.el8.noarch 45/64
Verifying : perl-Pod-Usage-4:1.69-395.el8.noarch 46/64
Verifying : perl-Scalar-List-Utils-3:1.49-2.el8.x86 47/64
Verifying : perl-Socket-4:2.027-3.el8.x86_64 48/64
Verifying : perl-Storable-1:3.11-3.el8.x86_64 49/64
Verifying : perl-Term-ANSIColor-4.06-396.el8.noarch 50/64
Verifying : perl-Term-Cap-1.17-395.el8.noarch 51/64
Verifying : perl-Text-ParseWords-3.30-395.el8.noarc 52/64
Verifying : perl-Text-Tabs+Wrap-2013.0523-395.el8.n 53/64
Verifying : perl-Time-Local-1:1.280-1.el8.noarch 54/64
Verifying : perl-Unicode-Normalize-1.25-396.el8.x86 55/64
Verifying : perl-constant-1.33-396.el8.noarch 56/64
Verifying : perl-interpreter-4:5.26.3-420.el8.x86_6 57/64
Verifying : perl-libs-4:5.26.3-420.el8.x86_64 58/64
Verifying : perl-macros-4:5.26.3-420.el8.x86_64 59/64
Verifying : perl-parent-1:0.237-1.el8.noarch 60/64
Verifying : perl-podlators-4.11-1.el8.noarch 61/64
Verifying : perl-threads-1:2.21-2.el8.x86_64 62/64
Verifying : perl-threads-shared-1.58-2.el8.x86_64 63/64
Verifying : zlib-devel-1.2.11-17.el8.x86_64 64/64
Installed:
autoconf-2.69-29.el8.noarch
automake-1.16.1-7.el8.noarch
emacs-filesystem-1:26.1-7.el8.noarch
expat-devel-2.2.5-4.el8.x86_64
keyutils-libs-devel-1.5.10-9.el8.x86_64
krb5-devel-1.18.2-14.el8.x86_64
libcom_err-devel-1.45.6-2.el8.x86_64
libkadm5-1.18.2-14.el8.x86_64
libselinux-devel-2.9-5.el8.x86_64
libsepol-devel-2.9-3.el8.x86_64
libtool-2.4.6-25.el8.x86_64
libverto-devel-0.3.0-5.el8.x86_64
m4-1.4.18-7.el8.x86_64
openssl-devel-1:1.1.1k-5.el8_5.x86_64
pcre-cpp-8.42-6.el8.x86_64
pcre-devel-8.42-6.el8.x86_64
pcre-utf16-8.42-6.el8.x86_64
pcre-utf32-8.42-6.el8.x86_64
pcre2-devel-10.32-2.el8.x86_64
pcre2-utf16-10.32-2.el8.x86_64
pcre2-utf32-10.32-2.el8.x86_64
perl-Carp-1.42-396.el8.noarch
perl-Data-Dumper-2.167-399.el8.x86_64
perl-Digest-1.17-395.el8.noarch
perl-Digest-MD5-2.55-396.el8.x86_64
perl-Encode-4:2.97-3.el8.x86_64
perl-Errno-1.28-420.el8.x86_64
perl-Exporter-5.72-396.el8.noarch
perl-File-Path-2.15-2.el8.noarch
perl-File-Temp-0.230.600-1.el8.noarch
perl-Getopt-Long-1:2.50-4.el8.noarch
perl-HTTP-Tiny-0.074-1.el8.noarch
perl-IO-1.38-420.el8.x86_64
perl-IO-Socket-IP-0.39-5.el8.noarch
perl-IO-Socket-SSL-2.066-4.module_el8.3.0+410+ff426aa3.noarch
perl-MIME-Base64-3.15-396.el8.x86_64
perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch
perl-Net-SSLeay-1.88-1.module_el8.3.0+410+ff426aa3.x86_64
perl-PathTools-3.74-1.el8.x86_64
perl-Pod-Escapes-1:1.07-395.el8.noarch
perl-Pod-Perldoc-3.28-396.el8.noarch
perl-Pod-Simple-1:3.35-395.el8.noarch
perl-Pod-Usage-4:1.69-395.el8.noarch
perl-Scalar-List-Utils-3:1.49-2.el8.x86_64
perl-Socket-4:2.027-3.el8.x86_64
perl-Storable-1:3.11-3.el8.x86_64
perl-Term-ANSIColor-4.06-396.el8.noarch
perl-Term-Cap-1.17-395.el8.noarch
perl-Text-ParseWords-3.30-395.el8.noarch
perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch
perl-Thread-Queue-3.13-1.el8.noarch
perl-Time-Local-1:1.280-1.el8.noarch
perl-URI-1.73-3.el8.noarch
perl-Unicode-Normalize-1.25-396.el8.x86_64
perl-constant-1.33-396.el8.noarch
perl-interpreter-4:5.26.3-420.el8.x86_64
perl-libnet-3.11-3.el8.noarch
perl-libs-4:5.26.3-420.el8.x86_64
perl-macros-4:5.26.3-420.el8.x86_64
perl-parent-1:0.237-1.el8.noarch
perl-podlators-4.11-1.el8.noarch
perl-threads-1:2.21-2.el8.x86_64
perl-threads-shared-1.58-2.el8.x86_64
zlib-devel-1.2.11-17.el8.x86_64
Complete!
删除并重新解压
[root@xk src]# rm -rf apr-1.7.0
[root@xk src]# tar xf apr-1.7.0.tar.gz
[root@xk src]# cd apr-1.7.0
vim configure,找到configure里再次删除此行 $RM "$cfgfile"
编译安装
[root@xk apr-1.7.0]# ./configure --prefix=/usr/local/apr
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
Configuring APR library
Platform: x86_64-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.7.0
checking for chosen layout... apr
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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
checking for a sed that does not truncate output... /usr/bin/sed
Applying APR hints file rules for x86_64-pc-linux-gnu
setting CPPFLAGS to "-DLINUX -D_REENTRANT -D_GNU_SOURCE"
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for gawk... gawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for rm... rm
checking for as... as
checking for cpp... cpp
checking for ar... ar
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
...........
config.status: creating test/Makefile
config.status: creating test/internal/Makefile
config.status: creating include/arch/unix/apr_private.h
config.status: executing libtool commands
config.status: executing default commands
make编译make install安装
[root@xk apr-util-1.6.1]# make
[root@xk apr-1.7.0]# make install
make[1]: Entering directory '/usr/src/apr-1.7.0'
make[1]: Nothing to be done for 'local-all'.
make[1]: Leaving directory '/usr/src/apr-1.7.0'
/usr/src/apr-1.7.0/build/mkdir.sh /usr/local/apr/lib /usr/local/apr/bin /usr/local/apr/build-1
/usr/local/apr/lib/pkgconfig /usr/local/apr/include/apr-1
/usr/bin/install -c -m 644 /usr/src/apr-1.7.0/include/apr.h /usr/local/apr/include/apr-1
for f in /usr/src/apr-1.7.0/include/apr_*.h; do
/usr/bin/install -c -m 644 ${f} /usr/local/apr/include/apr-1;
done
/bin/sh /usr/src/apr-1.7.0/libtool --mode=install /usr/bin/install -c -m 755 libapr-1.la /usr/local/apr/lib
libtool: install: /usr/bin/install -c -m 755 .libs/libapr-1.so.0.7.0 /usr/local/apr/lib/libapr-1.so.0.7.0
libtool: install: (cd /usr/local/apr/lib && { ln -s -f libapr-1.so.0.7.0 libapr-1.so.0 || { rm -f libapr-1.so.0 && ln -s libapr-1.so.0.7.0 libapr-1.so.0; }; })
libtool: install: (cd /usr/local/apr/lib && { ln -s -f libapr-1.so.0.7.0 libapr-1.so || { rm -f libapr-1.so && ln -s libapr-1.so.0.7.0 libapr-1.so; }; })
libtool: install: /usr/bin/install -c -m 755 .libs/libapr-1.lai /usr/local/apr/lib/libapr-1.la
libtool: install: /usr/bin/install -c -m 755 .libs/libapr-1.a /usr/local/apr/lib/libapr-1.a
libtool: install: chmod 644 /usr/local/apr/lib/libapr-1.a
libtool: install: ranlib /usr/local/apr/lib/libapr-1.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/apr/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/apr/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 apr.exp /usr/local/apr/lib/apr.exp
/usr/bin/install -c -m 644 apr.pc /usr/local/apr/lib/pkgconfig/apr-1.pc
for f in libtool shlibtool; do
if test -f ${f}; then /usr/bin/install -c -m 755 ${f} /usr/local/apr/build-1; fi;
done
/usr/bin/install -c -m 755 /usr/src/apr-1.7.0/build/mkdir.sh /usr/local/apr/build-1
for f in make_exports.awk make_var_export.awk; do
/usr/bin/install -c -m 644 /usr/src/apr-1.7.0/build/${f} /usr/local/apr/build-1;
done
/usr/bin/install -c -m 644 build/apr_rules.out /usr/local/apr/build-1/apr_rules.mk
/usr/bin/install -c -m 755 apr-config.out /usr/local/apr/bin/apr-1-config
安装upr util子包配置
[root@xk apr-1.7.0]# cd ../apr-util-1.6.1
[root@xk apr-util-1.6.1]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.6.1
checking for chosen layout... apr-util
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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-pc-linux-gnu
checking for APR... yes
setting CPP to "gcc -E"
adding "-pthread" to CFLAGS
setting CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for ldap support...
checking for default DBM... sdbm (default)
checking for pg_config... no
checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no
checking postgresql/libpq-fe.h usability... no
checking postgresql/libpq-fe.h presence... no
checking for postgresql/libpq-fe.h... no
checking sqlite3.h usability... no
checking sqlite3.h presence... no
checking for sqlite3.h... no
checking sqlite.h usability... no
checking sqlite.h presence... no
checking for sqlite.h... no
checking for odbc_config... no
checking sql.h usability... no
checking sql.h presence... no
checking for sql.h... no
checking odbc/sql.h usability... no
checking odbc/sql.h presence... no
checking for odbc/sql.h... no
checking Expat 1.95.x... yes
setting APRUTIL_EXPORT_LIBS to "-lexpat"
setting APRUTIL_LIBS to "-lexpat"
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for type of inbuf parameter to iconv... char **
checking for iconv.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for nl_langinfo... yes
checking for CODESET in langinfo.h... yes
checking whether APR has DSO support... yes
checking for library containing crypt... -lcrypt
checking if system crypt() function is threadsafe... no
checking for crypt_r... yes
checking style of crypt_r... struct_crypt_data
checking whether the compiler handles weak symbols... yes
checking for memset_s support... no
checking for explicit_bzero support... yes
adding "/usr/local/apr/lib/libapr-1.la" to APRUTIL_LIBS
adding "-lrt" to APRUTIL_LIBS
adding "-lcrypt" to APRUTIL_LIBS
adding "-lpthread" to APRUTIL_LIBS
adding "-ldl" to APRUTIL_LIBS
configure: creating ./config.status
config.status: creating Makefile
config.status: creating export_vars.sh
config.status: creating build/pkg/pkginfo
config.status: creating apr-util.pc
config.status: creating apu-1-config
config.status: creating include/private/apu_select_dbm.h
config.status: creating include/apr_ldap.h
config.status: creating include/apu.h
config.status: creating include/apu_want.h
config.status: creating test/Makefile
config.status: creating include/private/apu_config.h
config.status: executing default commands
编译
[root@xk apr-util-1.6.1]# make
make[1]: Entering directory '/usr/src/apr-util-1.6.1'
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_brigade.lo -c buckets/apr_brigade.c && touch buckets/apr_brigade.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets.lo -c buckets/apr_buckets.c && touch buckets/apr_buckets.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_alloc.lo -c buckets/apr_buckets_alloc.c && touch buckets/apr_buckets_alloc.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_eos.lo -c buckets/apr_buckets_eos.c && touch buckets/apr_buckets_eos.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_file.lo -c buckets/apr_buckets_file.c && touch buckets/apr_buckets_file.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_flush.lo -c buckets/apr_buckets_flush.c && touch buckets/apr_buckets_flush.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_heap.lo -c buckets/apr_buckets_heap.c && touch buckets/apr_buckets_heap.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_mmap.lo -c buckets/apr_buckets_mmap.c && touch buckets/apr_buckets_mmap.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_pipe.lo -c buckets/apr_buckets_pipe.c && touch buckets/apr_buckets_pipe.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_pool.lo -c buckets/apr_buckets_pool.c && touch buckets/apr_buckets_pool.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_refcount.lo -c buckets/apr_buckets_refcount.c && touch buckets/apr_buckets_refcount.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_simple.lo -c buckets/apr_buckets_simple.c && touch buckets/apr_buckets_simple.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o buckets/apr_buckets_socket.lo -c buckets/apr_buckets_socket.c && touch buckets/apr_buckets_socket.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o crypto/apr_crypto.lo -c crypto/apr_crypto.c && touch crypto/apr_crypto.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o crypto/apr_md4.lo -c crypto/apr_md4.c && touch crypto/apr_md4.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o crypto/apr_md5.lo -c crypto/apr_md5.c && touch crypto/apr_md5.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o crypto/apr_passwd.lo -c crypto/apr_passwd.c && touch crypto/apr_passwd.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o crypto/apr_sha1.lo -c crypto/apr_sha1.c && touch crypto/apr_sha1.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o crypto/apr_siphash.lo -c crypto/apr_siphash.c && touch crypto/apr_siphash.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o crypto/crypt_blowfish.lo -c crypto/crypt_blowfish.c && touch crypto/crypt_blowfish.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o crypto/getuuid.lo -c crypto/getuuid.c && touch crypto/getuuid.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o crypto/uuid.lo -c crypto/uuid.c && touch crypto/uuid.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o dbd/apr_dbd.lo -c dbd/apr_dbd.c && touch dbd/apr_dbd.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o dbm/apr_dbm.lo -c dbm/apr_dbm.c && touch dbm/apr_dbm.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o dbm/apr_dbm_sdbm.lo -c dbm/apr_dbm_sdbm.c && touch dbm/apr_dbm_sdbm.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o dbm/sdbm/sdbm.lo -c dbm/sdbm/sdbm.c && touch dbm/sdbm/sdbm.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o dbm/sdbm/sdbm_hash.lo -c dbm/sdbm/sdbm_hash.c && touch dbm/sdbm/sdbm_hash.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o dbm/sdbm/sdbm_lock.lo -c dbm/sdbm/sdbm_lock.c && touch dbm/sdbm/sdbm_lock.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o dbm/sdbm/sdbm_pair.lo -c dbm/sdbm/sdbm_pair.c && touch dbm/sdbm/sdbm_pair.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o encoding/apr_base64.lo -c encoding/apr_base64.c && touch encoding/apr_base64.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o hooks/apr_hooks.lo -c hooks/apr_hooks.c && touch hooks/apr_hooks.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o ldap/apr_ldap_stub.lo -c ldap/apr_ldap_stub.c && touch ldap/apr_ldap_stub.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o ldap/apr_ldap_url.lo -c ldap/apr_ldap_url.c && touch ldap/apr_ldap_url.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o memcache/apr_memcache.lo -c memcache/apr_memcache.c && touch memcache/apr_memcache.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o misc/apr_date.lo -c misc/apr_date.c && touch misc/apr_date.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o misc/apr_queue.lo -c misc/apr_queue.c && touch misc/apr_queue.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o misc/apr_reslist.lo -c misc/apr_reslist.c && touch misc/apr_reslist.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o misc/apr_rmm.lo -c misc/apr_rmm.c && touch misc/apr_rmm.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o misc/apr_thread_pool.lo -c misc/apr_thread_pool.c && touch misc/apr_thread_pool.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o misc/apu_dso.lo -c misc/apu_dso.c && touch misc/apu_dso.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o misc/apu_version.lo -c misc/apu_version.c && touch misc/apu_version.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o redis/apr_redis.lo -c redis/apr_redis.c && touch redis/apr_redis.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o strmatch/apr_strmatch.lo -c strmatch/apr_strmatch.c && touch strmatch/apr_strmatch.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o uri/apr_uri.lo -c uri/apr_uri.c && touch uri/apr_uri.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o xlate/xlate.lo -c xlate/xlate.c && touch xlate/xlate.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=link gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 -version-info 6:1:6 -o libaprutil-1.la -rpath /usr/local/apr-util/lib buckets/apr_brigade.lo buckets/apr_buckets.lo buckets/apr_buckets_alloc.lo buckets/apr_buckets_eos.lo buckets/apr_buckets_file.lo buckets/apr_buckets_flush.lo buckets/apr_buckets_heap.lo buckets/apr_buckets_mmap.lo buckets/apr_buckets_pipe.lo buckets/apr_buckets_pool.lo buckets/apr_buckets_refcount.lo buckets/apr_buckets_simple.lo buckets/apr_buckets_socket.lo crypto/apr_crypto.lo crypto/apr_md4.lo crypto/apr_md5.lo crypto/apr_passwd.lo crypto/apr_sha1.lo crypto/apr_siphash.lo crypto/crypt_blowfish.lo crypto/getuuid.lo crypto/uuid.lo dbd/apr_dbd.lo dbm/apr_dbm.lo dbm/apr_dbm_sdbm.lo dbm/sdbm/sdbm.lo dbm/sdbm/sdbm_hash.lo dbm/sdbm/sdbm_lock.lo dbm/sdbm/sdbm_pair.lo encoding/apr_base64.lo hooks/apr_hooks.lo ldap/apr_ldap_stub.lo ldap/apr_ldap_url.lo memcache/apr_memcache.lo misc/apr_date.lo misc/apr_queue.lo misc/apr_reslist.lo misc/apr_rmm.lo misc/apr_thread_pool.lo misc/apu_dso.lo misc/apu_version.lo redis/apr_redis.lo strmatch/apr_strmatch.lo uri/apr_uri.lo xlate/xlate.lo xml/apr_xml.lo -lrt -lcrypt -lpthread -ldl -lexpat /usr/local/apr/lib/libapr-1.la -lrt -lcrypt -lpthread -ldl
gawk -f /usr/local/apr/build-1/make_exports.awk /usr/src/apr-util-1.6.1/include/apr_anylock.h /usr/src/apr-util-1.6.1/include/apr_base64.h /usr/src/apr-util-1.6.1/include/apr_buckets.h /usr/src/apr-util-1.6.1/include/apr_crypto.h /usr/src/apr-util-1.6.1/include/apr_date.h /usr/src/apr-util-1.6.1/include/apr_dbd.h /usr/src/apr-util-1.6.1/include/apr_dbm.h /usr/src/apr-util-1.6.1/include/apr_hooks.h /usr/src/apr-util-1.6.1/include/apr_ldap_init.h /usr/src/apr-util-1.6.1/include/apr_ldap_option.h /usr/src/apr-util-1.6.1/include/apr_ldap_rebind.h /usr/src/apr-util-1.6.1/include/apr_ldap_url.h /usr/src/apr-util-1.6.1/include/apr_md4.h /usr/src/apr-util-1.6.1/include/apr_md5.h /usr/src/apr-util-1.6.1/include/apr_memcache.h /usr/src/apr-util-1.6.1/include/apr_optional.h /usr/src/apr-util-1.6.1/include/apr_optional_hooks.h /usr/src/apr-util-1.6.1/include/apr_queue.h /usr/src/apr-util-1.6.1/include/apr_redis.h /usr/src/apr-util-1.6.1/include/apr_reslist.h /usr/src/apr-util-1.6.1/include/apr_rmm.h /usr/src/apr-util-1.6.1/include/apr_sdbm.h /usr/src/apr-util-1.6.1/include/apr_sha1.h /usr/src/apr-util-1.6.1/include/apr_siphash.h /usr/src/apr-util-1.6.1/include/apr_strmatch.h /usr/src/apr-util-1.6.1/include/apr_thread_pool.h /usr/src/apr-util-1.6.1/include/apr_uri.h /usr/src/apr-util-1.6.1/include/apr_uuid.h /usr/src/apr-util-1.6.1/include/apr_xlate.h /usr/src/apr-util-1.6.1/include/apr_xml.h /usr/src/apr-util-1.6.1/include/apu_errno.h /usr/src/apr-util-1.6.1/include/apu_version.h /usr/src/apr-util-1.6.1/include/private/apr_crypto_internal.h /usr/src/apr-util-1.6.1/include/private/apr_dbd_internal.h /usr/src/apr-util-1.6.1/include/private/apr_dbd_odbc_v2.h /usr/src/apr-util-1.6.1/include/private/apr_dbm_private.h /usr/src/apr-util-1.6.1/include/private/apu_internal.h > exports.c
gawk -f /usr/local/apr/build-1/make_var_export.awk /usr/src/apr-util-1.6.1/include/apr_anylock.h /usr/src/apr-util-1.6.1/include/apr_base64.h /usr/src/apr-util-1.6.1/include/apr_buckets.h /usr/src/apr-util-1.6.1/include/apr_crypto.h /usr/src/apr-util-1.6.1/include/apr_date.h /usr/src/apr-util-1.6.1/include/apr_dbd.h /usr/src/apr-util-1.6.1/include/apr_dbm.h /usr/src/apr-util-1.6.1/include/apr_hooks.h /usr/src/apr-util-1.6.1/include/apr_ldap_init.h /usr/src/apr-util-1.6.1/include/apr_ldap_option.h /usr/src/apr-util-1.6.1/include/apr_ldap_rebind.h /usr/src/apr-util-1.6.1/include/apr_ldap_url.h /usr/src/apr-util-1.6.1/include/apr_md4.h /usr/src/apr-util-1.6.1/include/apr_md5.h /usr/src/apr-util-1.6.1/include/apr_memcache.h /usr/src/apr-util-1.6.1/include/apr_optional.h /usr/src/apr-util-1.6.1/include/apr_optional_hooks.h /usr/src/apr-util-1.6.1/include/apr_queue.h /usr/src/apr-util-1.6.1/include/apr_redis.h /usr/src/apr-util-1.6.1/include/apr_reslist.h /usr/src/apr-util-1.6.1/include/apr_rmm.h /usr/src/apr-util-1.6.1/include/apr_sdbm.h /usr/src/apr-util-1.6.1/include/apr_sha1.h /usr/src/apr-util-1.6.1/include/apr_siphash.h /usr/src/apr-util-1.6.1/include/apr_strmatch.h /usr/src/apr-util-1.6.1/include/apr_thread_pool.h /usr/src/apr-util-1.6.1/include/apr_uri.h /usr/src/apr-util-1.6.1/include/apr_uuid.h /usr/src/apr-util-1.6.1/include/apr_xlate.h /usr/src/apr-util-1.6.1/include/apr_xml.h /usr/src/apr-util-1.6.1/include/apu_errno.h /usr/src/apr-util-1.6.1/include/apu_version.h /usr/src/apr-util-1.6.1/include/private/apr_crypto_internal.h /usr/src/apr-util-1.6.1/include/private/apr_dbd_internal.h /usr/src/apr-util-1.6.1/include/private/apr_dbd_odbc_v2.h /usr/src/apr-util-1.6.1/include/private/apr_dbm_private.h /usr/src/apr-util-1.6.1/include/private/apu_internal.h > export_vars.c
gcc -E -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 exports.c | grep "ap_hack_" | sed -e 's/^.*[)](.*);$/1/' >> aprutil.exp
gcc -E -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/src/apr-util-1.6.1/include -I/usr/src/apr-util-1.6.1/include/private -I/usr/local/apr/include/apr-1 export_vars.c | sed -e 's/^#[^!]*//' | sed -e '/^$/d' >> aprutil.exp
sed 's,^(location=).*$,1installed,' < apu-1-config > apu-config.out
make[1]: Leaving directory '/usr/src/apr-util-1.6.1'
make install 安装
[root@xk apr-util-1.6.1]# make install
make[1]: Entering directory '/usr/src/apr-util-1.6.1'
make[1]: Nothing to be done for 'local-all'.
make[1]: Leaving directory '/usr/src/apr-util-1.6.1'
/usr/local/apr/build-1/mkdir.sh /usr/local/apr-util/include/apr-1 /usr/local/apr-util/lib/pkgconfig
/usr/local/apr-util/lib /usr/local/apr-util/bin
for f in /usr/src/apr-util-1.6.1/include/*.h /usr/src/apr-util-1.6.1/include/*.h; do
/usr/bin/install -c -m 644 ${f} /usr/local/apr-util/include/apr-1;
done
/usr/bin/install -c -m 644 apr-util.pc /usr/local/apr-util/lib/pkgconfig/apr-util-1.pc
list=''; for i in $list; do
( cd $i ; make DESTDIR= install );
done
/bin/sh /usr/local/apr/build-1/libtool --mode=install /usr/bin/install -c -m 755 libaprutil-1.la /usr/local/apr-util/lib
libtool: install: /usr/bin/install -c -m 755 .libs/libaprutil-1.so.0.6.1 /usr/local/apr-util/lib/libaprutil-1.so.0.6.1
libtool: install: (cd /usr/local/apr-util/lib && { ln -s -f libaprutil-1.so.0.6.1 libaprutil-1.so.0 || { rm -f libaprutil-1.so.0 && ln -s libaprutil-1.so.0.6.1 libaprutil-1.so.0; }; })
libtool: install: (cd /usr/local/apr-util/lib && { ln -s -f libaprutil-1.so.0.6.1 libaprutil-1.so || { rm -f libaprutil-1.so && ln -s libaprutil-1.so.0.6.1 libaprutil-1.so; }; })
libtool: install: /usr/bin/install -c -m 755 .libs/libaprutil-1.lai /usr/local/apr-util/lib/libaprutil-1.la
libtool: install: /usr/bin/install -c -m 755 .libs/libaprutil-1.a /usr/local/apr-util/lib/libaprutil-1.a
libtool: install: chmod 644 /usr/local/apr-util/lib/libaprutil-1.a
libtool: install: ranlib /usr/local/apr-util/lib/libaprutil-1.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/apr-util/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/apr-util/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 aprutil.exp /usr/local/apr-util/lib
/usr/bin/install -c -m 755 apu-config.out /usr/local/apr-util/bin/apu-1-config
配置
[root@xk httpd-2.4.54]# ./configure --prefix=/usr/local/apache
> --sysconfdir=/etc/httpd24
> --enable-so
> --enable-ssl
> --enable-cgi
> --enable-rewrite
> --with-zlib
> --with-pcre
> --with-apr=/usr/local/apr
> --with-apr-util=/usr/local/apr-util/
> --enable-modules=most
> --enable-mpms-shared=all
> --with-mpm=prefork
......
Server Version: 2.4.54
Install prefix: /usr/local/apache
C compiler: gcc
CFLAGS: -g -O2 -pthread
CPPFLAGS: -DLINUX -D_REENTRANT -D_GNU_SOURCE
LDFLAGS:
LIBS:
C preprocessor: gcc -E
make编译(ps:apache编译过程很漫长)
设置apache目录文件
使文件可以被找到
[root@xk ~]# vim /etc/profile.d/apache.sh
export PATH=/usr/local/apache/bin:$PATH
[root@xk ~]# source /etc/profile.d/apache.sh
[root@xk ~]# which httpd
/usr/local/apache/bin/httpd
[root@xk ~]# ln -s /usr/local/apache/include /usr/include/apache
设置include
[root@xk ~]# ln -s /usr/local/apache/include /usr/include/apache
[root@xk ~]# ll /usr/include/
total 1760
-rw-r--r--. 1 root root 7456 Aug 25 2021 aio.h
-rw-r--r--. 1 root root 2031 Aug 25 2021 aliases.h
-rw-r--r--. 1 root root 1203 Aug 25 2021 alloca.h
-rw-r--r--. 1 root root 4350 Aug 25 2021 a.out.h
lrwxrwxrwx. 1 root root 25 Dec 26 07:13 apache -> /usr/local/apache/include
设置man文档
[root@xk ~]# vim /etc/man_db.conf
[root@xk ~]#
开启apache服务
[root@xk ~]# apachectl start
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::20c:29ff:feb9:cf63%ens160. Set the 'ServerName' directive globally to suppress this message
[root@xk ~]# systemctl disable --now firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@xk ~]# vim /etc/selinux/config
[root@xk ~]# setenforce 0
[root@xk ~]# getenforce
Permissive
[root@xk ~]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 128 0.0.0.0:111 0.0.0.0:*
LISTEN 0 128 [::]:22 [::]:*
LISTEN 0 128 [::]:111 [::]:*
LISTEN 0 128 *:80 *:*
总结
出现的问题
[root@xk apr-1.7.0]# ./configure --prefix=/usr/local/apr
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
Configuring APR library
Platform: x86_64-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.7.0
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/src/apr-1.7.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
解决方法
[root@xk apr-1.7.0]# yum -y install gcc gcc-c++ make
Last metadata expiration check: 3:00:40 ago on Sun 25 Dec 2022 05:04:48 PM CST.
Dependencies resolved.
=======================================================================================
Package Architecture Version Repository Size
=======================================================================================
Installing:
gcc x86_64 8.5.0-17.el8 baseos 23 M
gcc-c++ x86_64 8.5.0-17.el8 appstream 12 M
make x86_64 1:4.2.1-11.el8 baseos 498 k
Installing dependencies:
binutils x86_64 2.30-119.el8 baseos 5.8 M
cpp x86_64 8.5.0-17.el8 baseos 10 M
glibc-devel x86_64 2.28-220.el8 baseos 83 k
glibc-headers x86_64 2.28-220.el8 baseos 488 k
isl x86_64 0.16.1-6.el8 appstream 841 k
kernel-headers x86_64 4.18.0-408.el8 baseos 9.8 M
libmpc x86_64 1.1.0-9.1.el8 appstream 61 k
libpkgconf x86_64 1.4.2-1.el8 baseos 35 k
libstdc++-devel x86_64 8.5.0-17.el8 appstream 2.1 M
libxcrypt-devel x86_64 4.1.1-6.el8 baseos 25 k
pkgconf x86_64 1.4.2-1.el8 baseos 38 k
pkgconf-m4 noarch 1.4.2-1.el8 baseos 17 k
pkgconf-pkg-config x86_64 1.4.2-1.el8 baseos 15 k
Transaction Summary
=======================================================================================
Install 16 Packages
Total download size: 66 M
Installed size: 165 M
Downloading Packages:
(1/16): libmpc-1.1.0-9.1.el8.x86_64.rpm 368 kB/s | 61 kB 00:00
(2/16): isl-0.16.1-6.el8.x86_64.rpm 2.5 MB/s | 841 kB 00:00
(3/16): libstdc++-devel-8.5.0-17.el8.x86_64.rpm 4.1 MB/s | 2.1 MB 00:00
(4/16): gcc-c++-8.5.0-17.el8.x86_64.rpm 5.6 MB/s | 12 MB 00:02
(5/16): binutils-2.30-119.el8.x86_64.rpm 3.0 MB/s | 5.8 MB 00:01
(6/16): glibc-devel-2.28-220.el8.x86_64.rpm 1.1 MB/s | 83 kB 00:00
(7/16): glibc-headers-2.28-220.el8.x86_64.rpm 3.1 MB/s | 488 kB 00:00
(8/16): kernel-headers-4.18.0-408.el8.x86_64.rpm 4.0 MB/s | 9.8 MB 00:02
(9/16): libpkgconf-1.4.2-1.el8.x86_64.rpm 405 kB/s | 35 kB 00:00
(10/16): libxcrypt-devel-4.1.1-6.el8.x86_64.rpm 431 kB/s | 25 kB 00:00
(11/16): make-4.2.1-11.el8.x86_64.rpm 3.1 MB/s | 498 kB 00:00
(12/16): pkgconf-1.4.2-1.el8.x86_64.rpm 487 kB/s | 38 kB 00:00
(13/16): pkgconf-m4-1.4.2-1.el8.noarch.rpm 312 kB/s | 17 kB 00:00
(14/16): pkgconf-pkg-config-1.4.2-1.el8.x86_64.rpm 324 kB/s | 15 kB 00:00
(15/16): gcc-8.5.0-17.el8.x86_64.rpm 5.7 MB/s | 23 MB 00:04
(16/16): cpp-8.5.0-17.el8.x86_64.rpm 1.8 MB/s | 10 MB 00:05
---------------------------------------------------------------------------------------
Total 8.7 MB/s | 66 MB 00:07
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libmpc-1.1.0-9.1.el8.x86_64 1/16
Installing : cpp-8.5.0-17.el8.x86_64 2/16
Running scriptlet: cpp-8.5.0-17.el8.x86_64 2/16
Installing : pkgconf-m4-1.4.2-1.el8.noarch 3/16
Installing : libpkgconf-1.4.2-1.el8.x86_64 4/16
Installing : pkgconf-1.4.2-1.el8.x86_64 5/16
Installing : pkgconf-pkg-config-1.4.2-1.el8.x86_64 6/16
Installing : kernel-headers-4.18.0-408.el8.x86_64 7/16
Running scriptlet: glibc-headers-2.28-220.el8.x86_64 8/16
Installing : glibc-headers-2.28-220.el8.x86_64 8/16
Installing : libxcrypt-devel-4.1.1-6.el8.x86_64 9/16
Installing : glibc-devel-2.28-220.el8.x86_64 10/16
Running scriptlet: glibc-devel-2.28-220.el8.x86_64 10/16
Installing : binutils-2.30-119.el8.x86_64 11/16
Running scriptlet: binutils-2.30-119.el8.x86_64 11/16
Installing : libstdc++-devel-8.5.0-17.el8.x86_64 12/16
Installing : isl-0.16.1-6.el8.x86_64 13/16
Running scriptlet: isl-0.16.1-6.el8.x86_64 13/16
Installing : gcc-8.5.0-17.el8.x86_64 14/16
Running scriptlet: gcc-8.5.0-17.el8.x86_64 14/16
Installing : gcc-c++-8.5.0-17.el8.x86_64 15/16
Installing : make-1:4.2.1-11.el8.x86_64 16/16
Running scriptlet: make-1:4.2.1-11.el8.x86_64 16/16
Verifying : gcc-c++-8.5.0-17.el8.x86_64 1/16
Verifying : isl-0.16.1-6.el8.x86_64 2/16
Verifying : libmpc-1.1.0-9.1.el8.x86_64 3/16
Verifying : libstdc++-devel-8.5.0-17.el8.x86_64 4/16
Verifying : binutils-2.30-119.el8.x86_64 5/16
Verifying : cpp-8.5.0-17.el8.x86_64 6/16
Verifying : gcc-8.5.0-17.el8.x86_64 7/16
Verifying : glibc-devel-2.28-220.el8.x86_64 8/16
Verifying : glibc-headers-2.28-220.el8.x86_64 9/16
Verifying : kernel-headers-4.18.0-408.el8.x86_64 10/16
Verifying : libpkgconf-1.4.2-1.el8.x86_64 11/16
Verifying : libxcrypt-devel-4.1.1-6.el8.x86_64 12/16
Verifying : make-1:4.2.1-11.el8.x86_64 13/16
Verifying : pkgconf-1.4.2-1.el8.x86_64 14/16
Verifying : pkgconf-m4-1.4.2-1.el8.noarch 15/16
Verifying : pkgconf-pkg-config-1.4.2-1.el8.x86_64 16/16
Installed:
binutils-2.30-119.el8.x86_64 cpp-8.5.0-17.el8.x86_64
gcc-8.5.0-17.el8.x86_64 gcc-c++-8.5.0-17.el8.x86_64
glibc-devel-2.28-220.el8.x86_64 glibc-headers-2.28-220.el8.x86_64
isl-0.16.1-6.el8.x86_64 kernel-headers-4.18.0-408.el8.x86_64
libmpc-1.1.0-9.1.el8.x86_64 libpkgconf-1.4.2-1.el8.x86_64
libstdc++-devel-8.5.0-17.el8.x86_64 libxcrypt-devel-4.1.1-6.el8.x86_64
make-1:4.2.1-11.el8.x86_64 pkgconf-1.4.2-1.el8.x86_64
pkgconf-m4-1.4.2-1.el8.noarch pkgconf-pkg-config-1.4.2-1.el8.x86_64
Complete!
最后
以上就是懦弱台灯为你收集整理的httpd的全部内容,希望文章能够帮你解决httpd所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复