帮助中心 >  技术知识库 >  数据库 >  相关技术支持 >  如何解决/replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory

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

2017-01-10 10:44:37 16223

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

 


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: