咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

如何解决/replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory

2017-01-10 10:44:37 19698次

在源码编译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

blob.png

解决方法:

(1)确保已经安装了perl

yum install perl perl-devel

   (2) vi /usr/local/apache2/bin/apxs

 

#!/usr/bin/perl -w ####原来为 /replace/with/path/to/perl/interpreter

blob.png

blob.png

 


首页
最新活动
个人中心