cannot find autoconf. please check your autoconf installation and the 오류 해결방법

환경 : CentOS7.x 64비트

1. phpize 에러 증상

워드프레스 블로그가 운영중인 사이트에서 imagick 이라는 php모듈을 설치하기 위해서 phpize를 실행했는데, configure 파일을 생성하였지만 에러 메시지가 나타나게 되었다.

cannot find autoconf. please check your autoconf installation and the $PHP_AUTOCONF enviroment variable. Then, rerun this script.

메시지가 나타나게 된다. 위 메시지는 결론적으로 autoconf 실행파일을 찾을수 없어서 발생하는것이다.

2. autoconf 프로그램 설치

yum install autoconf

명령어를 입력함으로써 레드햇 기반의 리눅스에서 안전하게 autoconf 프로그램을 설치할 수 있다. 별도의 에러메시지 없이 설치가 완료된다.

3. configure 파일 생성 완료

안전하게 autoconf 파일을 설치하고 나서 아래와 같이 명령어를 입력하게 되면 configure 파일이 생성된다.

/usr/local/php/bin/phpize

configure 파일 생성 및 make && make install 명령어를 입력함으로써 최종적으로 설치를 완료하면 된다.