PHP 설치의 configure 에서 에러가 발생하네요

crazygun22의 이미지

먼저 mysql 은 성공적으로 설치했습니다
그다음 apache 를
configure 한다음
php를 푼 디렉토리로 가서 다음과 같이 명령어를 입력했습니다.
#./configure --with-apache=/usr/local/apache --with-mysql=/usr/local/mysql

그런데 다음과 같은 에러가 발생하네요.

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... no
checking for Apache module support... no
configure: error: Invalid Apache directory - unable to find httpd.h under /usr/l ocal/apache

무엇이 문제인지요..?

익명 사용자의 이미지

apache 를 DSO 방식으로 설치하시는 것이죠?

apache 를 configure 하고, make, make install 까지 하셔야 될 것입니다.

설치까지 하면 /usr/local/apache ( 이렇게 지정했다면..) 가 생길 것인데,
그것이 없어서 에러가 나는 것 같네요.

jachin의 이미지

아파치 소스를 /usr/local/apache 에 풀어놓으신 다음에 configure 하셨나요?

그렇지 않다면 소스를 풀어서 configure 하신 디렉토리를 php configure 단계에

기입하셔야 합니다.

만약 apache 소스가 /home/myaccount/apache 에 있다면

--with-apache=/home/myaccount/apache

라고 옵션에 기재해 주셔야 합니다.