
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

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

설치 완료
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
위의 글을 참고
'ops > linux' 카테고리의 다른 글
| [Linux] dns - unkown RR type 'mail', unknown class/type 에러 발생시 대처법 (0) | 2024.05.07 |
|---|---|
| [Linux] dns - named-checkzone 명령어가 없을때 (0) | 2024.05.07 |
| [Linux] dns 서버 구축하기 (0) | 2024.04.30 |
| [Linux] mysql - mysql_secure_installation (0) | 2024.04.29 |
| [Linux] mariadb - column - date (0) | 2024.04.29 |