라이브러리

[APACHE_CONFIGURE] --with-apr=DIR|FILE - APR을 설치한 디렉터리 경로를 지정한다.




APACHE CONFIGURE 에서 --with-apr=DIR|FILE 옵션은 APR (Apache Portable Runtime) 라이브러리를 컴파일하고 설치하는 데 사용됩니다. APR은 Apache HTTP Server의 내장 라이브러리이며, HTTP Server의 기능을 확장하고 관리하기 위해 사용됩니다.

APR이란?


APR은 Apache HTTP Server의 내장 라이브러리입니다. APR은 HTTP Server의 기능을 확장하고 관리하기 위해 사용됩니다. APR은 C 언어로 작성된 라이브러리이며, HTTP Server의 내장 기능을 제공합니다.

--with-apr=DIR|FILE 옵션


--with-apr=DIR|FILE 옵션은 APR 라이브러리를 컴파일하고 설치하는 데 사용됩니다. 이 옵션은 APR 라이브러리의 위치를 지정합니다.

# DIR 옵션


DIR 옵션은 APR 라이브러리의 디렉토리 경로를 지정합니다. 예를 들어, 다음 명령어는 APR 라이브러리를 /usr/local/apr 디렉토리에 설치합니다.

#hostingforum.kr
bash

./configure --with-apr=/usr/local/apr



# FILE 옵션


FILE 옵션은 APR 라이브러리의 파일 경로를 지정합니다. 예를 들어, 다음 명령어는 APR 라이브러리를 /usr/local/apr/lib/libapr.so 파일에 설치합니다.

#hostingforum.kr
bash

./configure --with-apr=/usr/local/apr/lib/libapr.so



예제


다음 예제는 APR 라이브러리를 컴파일하고 설치하는 과정을 보여줍니다.

1. APR 소스를 다운로드합니다.

#hostingforum.kr
bash

wget http://apr.apache.org/download.cgi



2. APR 소스를 압축을 풀고 디렉토리로 이동합니다.

#hostingforum.kr
bash

tar -xvf apr-1.7.0.tar.gz

cd apr-1.7.0



3. APR 소스를 컴파일하고 설치합니다.

#hostingforum.kr
bash

./configure --prefix=/usr/local/apr

make

make install



4. Apache HTTP Server 소스를 다운로드하고 압축을 풀고 디렉토리로 이동합니다.

#hostingforum.kr
bash

wget http://httpd.apache.org/download.cgi

tar -xvf httpd-2.4.46.tar.gz

cd httpd-2.4.46



5. Apache HTTP Server 소스를 컴파일하고 설치합니다.

#hostingforum.kr
bash

./configure --with-apr=/usr/local/apr --prefix=/usr/local/apache

make

make install



6. Apache HTTP Server를 실행합니다.

#hostingforum.kr
bash

/usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf



결론


--with-apr=DIR|FILE 옵션은 APR 라이브러리를 컴파일하고 설치하는 데 사용됩니다. 이 옵션은 APR 라이브러리의 위치를 지정합니다. APR 라이브러리는 Apache HTTP Server의 내장 라이브러리이며, HTTP Server의 기능을 확장하고 관리하기 위해 사용됩니다.
  • profile_image
    나우호스팅 @pcs8404 

    호스팅포럼 화이팅!

    댓글목록

    등록된 댓글이 없습니다.

  • 전체 10,077건 / 1 페이지

검색

게시물 검색