Don t forget to set the apache apxs variable - the error won t show up until you try to start apache after thinking that you successfully installed passenger. If you are using apache x then change --with-apxs to --with-apxs in the php configure and use --enable-module=so instead of --enable-modules=so in the apache configure.
Building php to provide libphp5so, it seems that the php build requires a --with-apxs also requires perl to run which i would not normally have installed, let alone the apache. Users can change the detection behavior by setting the environment variable apxs to the correct apxs (or apxs2 ) binary, as provided by apache..
apxs2 apache Related Links