/bin/perlにパールがなかったので、シンボリックリンクを作成
sudo ln -s /opt/lampp/bin/perl /bin/perl
--with-apxs2=/opt/lampp/bin/apxs
でphpを./configureしたらエラーがでた
Configuring SAPI modules
checking for Apache 2.0 handler-module support via DSO through APXS...
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 /opt/lampp/bin/apxs follows:
./configure: /opt/lampp/bin/apxs: /bin/perl: bad interpreter: No such file or directory
configure: error: Aborting