tlhumphrey2 has asked for the wisdom of the Perl Monks concerning the following question:

How do I install Apache2::Ajax for perl5.10. As far as I can tell, you can't install it using ppm. I’ve done a lot google searching for a solution, but haven’t found anything. I’ve downloaded the tar file for the source and have tried the makefile.pl but it keeps giving me errors. Currently, I'm getting the following error: Cannot opendir C:\Apache2.2\lib: No such file or directory at D:\Perl\Perl5_10\site\lib/Apache2/Build.pm line 1664. I believe it thinks my Apache2.2 is installed in “C:\Apache2.2”, but it is really installed at C:\Program Files\Apache Software Foundation\Apache2.2. But, at that location there isn’t a ‘lib’ folder. So, I’m unsure what it is looking. My perl is installed at d:\perl\perl5_10. I have both CGI::Ajax and ModPerl as well as mod_perl.so. Any suggestions would be most appreciated.

Replies are listed 'Best First'.
Re: How to install Apache2::Ajax
by Anonymous Monk on Nov 04, 2011 at 23:12 UTC
      On StackOverflow.com, someone suggested I use the following to install Apache2::Ajax from a DOS commandline: cpan Apache2::Ajax, which I did.

      It started like it was going to do the install until it gave the error: Cannot opendir C:\Apache2\lib: No such file or directory at D:\Perl\Perl5_10\site\lib/Apache2/Build.pm line 1664

      It turns out that the path "C:\Apache2\lib" comes from Apache2::BuildConfig.pm where "C:\Apache2" is hard coded.

      There are at least two problems with this hard coded path: 1) the path to my Apache2 is "C:\Program Files\Apache Software Foundation\Apache2.2", and 2) there is no subfolder called "lib" here..

      It turns out that older Apache installs did have a subfolder called "lib" in its root directory. But, the one I had, which I downloaded a month ago, does not have this subfolder..

      So, Apache2::BuildConfig.pm is definitely NOT providing the currect information for the build..

      Any ideas would be most appreciated.

        Any ideas would be most appreciated

        I don't believe you

        I asked how you installed http://kobesearch.cpan.org/dist/mod_perl, and your response was Re^2: How to install Apache2::Ajax

        Yes, its is dead obvious that Apache2::BuildConfig doesn't match your setup -- this isn't the fault of Apache2::BuildConfig

        the only way that would happen, is if you didn't build Apache2::BuildConfig yourself

        So either install apache2 where Apache2::BuildConfig expects it, or edit Apache2::BuildConfig to expect it someplace else, or build mod_perl yourself