CentOS - Apache 2.4 설치

(httpd-2.4.12)

 

 [root@localhost httpd-2.4.12]# ./configure --prefix=/usr/local/etc/httpd-2.4.12/server --with-mpm=worker --enable-so --enable-ssl
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
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
configure:
configure: Configuring Apache Portable Runtime library...
configure:
checking for APR... no
configure: error: APR not found.  Please read the documentation.

 

(필요 패키지 설치 후 실행)
apr-1.5.2     
apr-util-1.5.4 
pcre-8.36   

 

 

pache compile

 

 ./configure \
--prefix=/usr/local/server/apache \
--enable-module=so \
--enable-so \
--with-mpm=worker \
--enable-mods-shared=all \
--with-apr=/usr/local/apr \
--with-pcre=/usr/local/pcre

 

수행 로그

 

 [root@localhost httpd-2.4.12]# ./configure \
> --prefix=/usr/local/server/apache \
> --enable-module=so \
> --enable-so \
> --with-mpm=worker \
> --enable-mods-shared=all \
> --with-apr=/usr/local/apr \
> --with-pcre=/usr/local/pcre
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
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
configure:
configure: Configuring Apache Portable Runtime library...
configure:
checking for APR... yes
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting CFLAGS to " -g -O2 -pthread"
  setting CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"
  setting LDFLAGS to " "
configure:
configure: Configuring Apache Portable Runtime Utility library...
configure:
checking for APR-util... yes
checking for gcc... gcc
checking whether the C compiler works... yes

(생략)

 

 

apache make

 

 [root@localhost httpd-2.4.12]# make && make install
Making all in srclib
make[1]: Entering directory `/usr/local/etc/httpd-2.4.12/srclib'
make[1]: Leaving directory `/usr/local/etc/httpd-2.4.12/srclib'
Making all in os
make[1]: Entering directory `/usr/local/etc/httpd-2.4.12/os'
Making all in unix
make[2]: Entering directory `/usr/local/etc/httpd-2.4.12/os/unix'
make[3]: Entering directory `/usr/local/etc/httpd-2.4.12/os/unix'
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99  -g -O2 -pthread      -DLINUX -D_REENTRANT -D_GNU_SOURCE     -I. -I/usr/local/etc/httpd-2.4.12/os/unix -I/usr/local/etc/httpd-2.4.12/include -I/usr/local/apr/include/apr-1 -I/usr/local/pcre/include -I/usr/local/etc/httpd-2.4.12/modules/aaa -I/usr/local/etc/httpd-2.4.12/modules/cache -I/usr/local/etc/httpd-2.4.12/modules/core -I/usr/local/etc/httpd-2.4.12/modules/database -I/usr/local/etc/httpd-2.4.12/modules/filters -I/usr/local/etc/httpd-2.4.12/modules/ldap -I/usr/local/etc/httpd-2.4.12/server -I/usr/local/etc/httpd-2.4.12/modules/loggers -I/usr/local/etc/httpd-2.4.12/modules/lua -I/usr/local/etc/httpd-2.4.12/modules/proxy -I/usr/local/etc/httpd-2.4.12/modules/session -I/usr/local/etc/httpd-2.4.12/modules/ssl -I/usr/local/etc/httpd-2.4.12/modules/test -I/usr/local/etc/httpd-2.4.12/server -I/usr/local/etc/httpd-2.4.12/modules/arch/unix -I/usr/local/etc/httpd-2.4.12/modules/dav/main -I/usr/local/etc/httpd-2.4.12/modules/generators -I/usr/local/etc/httpd-2.4.12/modules/mappers  -prefer-non-pic -static -c unixd.c && touch unixd.lo

 

(생략)

 

 

+ Recent posts