라이브러리
[APACHE_CONFIGURE] --with-z=DIR - 압축 라이브러리의 디렉터리 경로를 지정한다.
APACHE CONFIGURE에서 --with-z=DIR 옵션은 zlib 라이브러리를 사용하여 압축을 지원하는 Apache 서버를 빌드할 때 사용됩니다. 이 옵션은 Apache 서버가 zlib 라이브러리를 사용하여 파일을 압축하거나 decompress할 수 있도록 합니다.
zlib 라이브러리란?
zlib 라이브러리는 GNU GPL 라이선스에 따라 배포되는 자유 소프트웨어입니다. 이 라이브러리는 데이터를 압축하거나 decompress하는 데 사용됩니다. Apache 서버가 zlib 라이브러리를 사용하면 파일을 압축하거나 decompress할 수 있습니다.
--with-z=DIR 옵션 사용하기
--with-z=DIR 옵션을 사용하여 Apache 서버를 빌드할 때, DIR은 zlib 라이브러리가 설치된 디렉토리의 경로를 지정합니다. 예를 들어, zlib 라이브러리가 /usr/local/lib/zlib 디렉토리에 설치되어 있다면, 다음 명령어를 사용하여 Apache 서버를 빌드할 수 있습니다.
#hostingforum.kr
bash
./configure --with-z=/usr/local/lib/zlib
이 옵션을 사용하여 Apache 서버를 빌드하면, Apache 서버가 zlib 라이브러리를 사용하여 파일을 압축하거나 decompress할 수 있습니다.
예제
다음 예제는 zlib 라이브러리를 사용하여 Apache 서버를 빌드하는 방법을 보여줍니다.
1. zlib 라이브러리를 설치합니다.
#hostingforum.kr
bash
sudo apt-get install zlib1g-dev
2. Apache 소스를 다운로드하고 압축을 풉니다.
#hostingforum.kr
bash
wget http://apache.org/dist/httpd/httpd-2.4.46.tar.gz
tar xvf httpd-2.4.46.tar.gz
3. configure 명령어를 사용하여 Apache 서버를 빌드합니다.
#hostingforum.kr
bash
./configure --with-z=/usr/local/lib/zlib
4. make 명령어를 사용하여 Apache 서버를 빌드합니다.
#hostingforum.kr
bash
make
5. make install 명령어를 사용하여 Apache 서버를 설치합니다.
#hostingforum.kr
bash
sudo make install
이제 Apache 서버가 zlib 라이브러리를 사용하여 파일을 압축하거나 decompress할 수 있습니다.
참고
* Apache 서버의 버전이 2.2이상일 때만 zlib 라이브러리를 사용할 수 있습니다.
* zlib 라이브러리가 설치된 디렉토리의 경로를 정확하게 지정해야 합니다.
* Apache 서버를 빌드할 때 zlib 라이브러리가 설치된 디렉토리의 경로를 지정하지 않으면, Apache 서버가 zlib 라이브러리를 사용할 수 없습니다.
댓글목록
등록된 댓글이 없습니다.