インストールで要注意
perlをインストールしていない環境でApache2.0.61をインストールすると
PHPのインストールに失敗しました。
原因は、apxsの1行目がこうなってたせい
#!/replace/with/path/to/perl/interpreter -w
要するにperlのありかを探せなかったので、apxsの実行ができないのですね。
最初のconfigureで
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)
といわれたのでPerlを入れたのですが手遅れでした。
とりあえずapxsの1行目をperlのパスにリライトしてなんとか通りましたが
やっぱりperlを先に入れとけってこった。