아래 우분투 서버(Ubuntu Server 14.04.1 LTS)에서 Apache, PHP, MySQL 서버 컴파일시 오류가 발생했습니다. 

1.

checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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.

2.

configure: Configuring Apache Portable Runtime library...
configure: 
checking for APR... yes
  setting CC to "x86_64-linux-gnu-gcc"
  setting CPP to "x86_64-linux-gnu-gcc -E"
  setting CFLAGS to "  -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... no
configure: error: APR-util not found.  Please read the documentation.

3.

configure: error: xml2-config not found. Please check your libxml2 installation.

4.
configure: error: Cannot find OpenSSL's libraries
$ sudo apt-get install libcurl4-openssl-dev
configure: error: DBA: Could not find necessary header file(s).

5.

checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... yes
If configure fails try --with-vpx-dir=<DIR>
If configure fails try --with-jpeg-dir=<DIR>
configure: error: png.h not found.

6.
checking for mcrypt support... yes
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
 

1 답변

0 투표

configure: Configuring Apache Portable Runtime library...
configure: checking for APR... no
configure: error: APR not found.  Please read the documentation.
$ sudo apt-get install libapr1 libapr1-dev libaprutil1 libaprutil1-dev

configure: 
configure: Configuring Apache Portable Runtime Utility library...
configure: 
checking for APR-util... no
configure: error: APR-util not found.  Please read the documentation.
$ sudo apt-get install libapr1 libapr1-dev libaprutil1 libaprutil1-dev

configure: error: xml2-config not found. Please check your libxml2 installation.
$ sudo apt-get install libxml2 libxml2-dev

configure: error: Cannot find OpenSSL's libraries
$ sudo apt-get install libcurl4-openssl-dev

configure: error: DBA: Could not find necessary header file(s).
$ sudo apt-get install libdb-dev libgdbm-dev

checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... yes
If configure fails try --with-vpx-dir=<DIR>
If configure fails try --with-jpeg-dir=<DIR>
configure: error: png.h not found.
$ sudo apt-get install libpng-dev libjpeg-dev


checking for mcrypt support... yes
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
$ sudo apt-get install libmcrypt-dev

add
...