Skip to content


cannot run apxs

The error faced when compiling PHP module to Apache2.

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 /usr/local/apache/bin/apxs follows:
./configure: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
configure: error: Aborting

Replace first line of /usr/local/apache/bin/apxs from,

#!/replace/with/path/to/perl/interpreter

with

#!/usr/bin/perl -w

VN:F [1.6.5_908]
Rating: 10.0/10 (1 vote cast)
VN:F [1.6.5_908]
Rating: 0 (from 0 votes)

Posted in LAMP.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word