본문 바로가기
linux

[Linux] php 설치시 apx 경로 관련 에러 발생시

by seohan1010 2024. 5. 3.

 

 

 

 

 

 

php를 make를 사용해서 설치하려고 한다. 

 

 

 

 

에러 발생 

 

 

 

/usr/local/apache/bin/apx 

파일을 연다.

 

 

 

 

#!/usr/local/apache/bin/apxs -w 

를 

 

 

 

 

 

#!/usr/bin/perl -w 

로 변경 해준다. 

 

 

다시 아래의 명령어를 입력하면 

./configure --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf

 

 

 

 

아까 전에 오류가 났던 부분이 정상적으로 진행이 된다. 

 

 

 

 

설치 완료 

 

 

https://wnstjqdl.tistory.com/entry/PHP-%EC%84%A4%EC%B9%98%EC%8B%9C-configure-error-Sorry-I-cannot-run-apxs-Either-you-need-to-install-Perl-or-you-need-to-pass-the-absolute-path-of-apxs-by-using-withapxsabsolutepathtoapxs-%EC%97%90%EB%9F%AC

 

PHP 설치시 configure: error: Sorry, I cannot run apxs. Either you need to install Perl or you need to pass the absolute path

configure: error: Sorry, I cannot run apxs. Either you need to install Perl or you need to pass the absolute path of apxs by using --with-apxs=/absolute/path/to/apxs 1. vi /usr/local/apache/bin/apxs2. #!/replace/with/path/to/perl/interpreter -w

wnstjqdl.tistory.com

 

위의 글을 참고