/replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
* Test Environment
CentOS 5.x 32bit
Red : 강조
Blue : 명령어 & 메뉴이동
Green : 주석
Pink : 변수
Purple : 예시
Orange : 출력&편집&소스
* Incident
svn 설치과정 중 apxs 파일관련 오류가 발생하여 해당 파일을 실행하였더니 아래와 같이 오류가 발생하였다.
[root@mooon]# /usr/local/apache_svn/bin/apxs -h /usr/local/apache_svn/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory |
* Resolution
위 오류가 발생한 이유는 시스템상에 perl 이 없는 상태에서 소스설치를 진행하여 apxs 파일이 perl을 찾지 못해 발생하는 오류이다.
perl을 설치하고 apxs 파일을 수정하면 해결 된다.
[root@mooon]# yum install perl [root@mooon]# vi /usr/local/apache_svn/bin/apxs #!/replace/with/path/to/perl/interpreter -w // 삭제 #!/usr/bin/perl -w // 추가 |
* Reference
http://wnstjqdl.tistory.com/23
[출처] [CentOS_trouble] /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory|작성자 jeongppappa