美国服务器如何解决/replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory – 蓝队云
在源码编译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
购买使用一诺网络美国服务器,可以极大降低初创企业、中小企业以及个人开发者等用户群体的整体IT使用成本,无需亲自搭建基础设施、简化了运维和管理的日常工作量,使用户能够更专注于自身的业务发展和创新。美国服务器低至49元/月,购买链接:https://www.enuoidc.com/vpszq.html?typeid=3