kinght2008 发表于 2018-8-30 10:24:14

安装php出现“/replace/with/path/to/perl/interpreter: ba

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)  解决方法:
  找到apache目录下的apxs脚本文件,然后编辑它,把第一行的注释的地方修改为perl的可执行路径(首先要保证你安装过perl,没有安装请先行安装),如
  yum install perl perl-devel
  vi /usr/local/apache2/bin/apxs
  #!/usr/bin/perl -w ####原来为 /replace/with/path/to/perl/interpreter

页: [1]
查看完整版本: 安装php出现“/replace/with/path/to/perl/interpreter: ba