咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
在源码编译php时候错误:
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)确保已经安装了perl
yum install perl perl-devel
(2) vi /usr/local/apache2/bin/apxs
#!/usr/bin/perl -w ####原来为 /replace/with/path/to/perl/interpreter