如何解決/replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
2017-01-10 10:44:37
20070
在源碼編譯php時(shí)候錯(cuò)誤:
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using –with-apxs2=/path/to/apxs
3. Apache was not built using –enable-so (the apxs usage page is displayed)
The output of /etc/httpd24 /bin/apxs follows:
./configure: /etc/httpd24 /bin/apxs: not found
configure: error: Aborting

解決方法:
(1)確保已經(jīng)安裝了perl
yum install perl perl-devel
(2) vi /usr/local/apache2/bin/apxs
#!/usr/bin/perl -w ####原來為 /replace/with/path/to/perl/interpreter


會(huì)員登錄
賬號(hào)登錄還沒有賬號(hào)?立即注冊