一则apache+php或者mod_fcgid的编译错误


Configuring mod_fcgid for APXS in /usr/local/apache/bin/apxs
./configure.apxs: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
./configure.apxs: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
./configure.apxs: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
./configure.apxs: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
./configure.apxs: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
./configure.apxs: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
./configure.apxs: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
./configure.apxs: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
Detecting features

Finished, run 'make' to compile mod_fcgid

Run 'make install' to install mod_fcgid

奇怪的Apache APXS明明发生了错误,但是还是报告完成了configure,导致make的时候,Makefile找不到/rules.mk文件无法编译。.


Makefile:29: /rules.mk: No such file or directory
make: *** No rule to make target `/rules.mk'. Stop.

解决办法是用打开/usr/local/apache/bin/apxs,手动给APXS第一行指定perl的位置,一般是/usr/bin/perl或者是/bin/perl

这个错误应该不光是mod_fcgid编译时会出现,如果以dso方式编译php+apache的时候应该也会出现,因为都用到了apache的apxs脚本。

发表评论

电子邮件地址不会被公开。 必填项已用*标注