perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Shelley <cr...@microtron.org.uk>
Subject Problems Installing On Debian - Or Not
Date Fri, 29 Aug 2003 16:26:09 GMT
Hi All,

It looked like the Debian install problems were back.

        craig@teratron:~/temp/modperl-2.0$ perl Makefile.PL
        ************* WARNING *************
                                                                                         
                                                            
          Your Perl is configured to link against libgdbm,
          but libgdbm.so was not found.
          You could just symlink it to /usr/lib/libgdbm.so.1.7.3
                                                                                         
                                                            
                                                                                         
                                                            
        ************* WARNING *************
        !!! Unable to open /mnt/general/temp/modperl-2.0/../../home/craig/temp/mod_perl-1.99_09/ap_release.h:
No such file or directory
        !!! Unable to determine server version, aborting.
        !!! Please specify MP_APXS or MP_AP_PREFIX.


I thought this was a bit strange, 
look at the path where it is trying to find my apache include dir. 
It should be looking in /usr/include/apache2/


Anyway, I do what it says...

        craig@teratron:~/temp/modperl-2.0$ perl Makefile.PL MP_AP_PREFIX=/usr/include/apache2/
        Reading Makefile.PL args from @ARGV
           MP_AP_PREFIX = /usr/include/apache2
        ************* WARNING *************
                                                                                         
                                                            
          Your Perl is configured to link against libgdbm,
          but libgdbm.so was not found.
          You could just symlink it to /usr/lib/libgdbm.so.1.7.3
                                                                                         
                                                            
                                                                                         
                                                            
        ************* WARNING *************
        !!! invalid MP_AP_PREFIX: include/ directory not found in /usr/include/apache2
        

Looked at first like I would have to frig the script...

After analysing Build.pm, I noticed it was 
using a load of crap data from my old installation in 
/usr/local/lib/perl/5.8.0/Apache/BuildConfig.pm

After deleting this file, i had to delete what i had got from cvs, and redownload.

The second time round I ran into more problems...

        craig@teratron:~/temp/modperl-2.0$ perl Makefile.PL
        ************* WARNING *************
         
          Your Perl is configured to link against libgdbm,
          but libgdbm.so was not found.
          You could just symlink it to /usr/lib/libgdbm.so.1.7.3
         
         
        ************* WARNING *************
        !!! Unable to determine server version, aborting.
        !!! Please specify MP_APXS or MP_AP_PREFIX.

Ok, so i specify the MP_AP_PREFIX option, since that was mentioned in the INSTALL file too.

        craig@teratron:~/temp/modperl-2.0$ perl Makefile.PL MP_AP_PREFIX=/usr/include/apache2/
        Reading Makefile.PL args from @ARGV
           MP_AP_PREFIX = /usr/include/apache2
        ************* WARNING *************
         
          Your Perl is configured to link against libgdbm,
          but libgdbm.so was not found.
          You could just symlink it to /usr/lib/libgdbm.so.1.7.3
         
         
        ************* WARNING *************
        !!! invalid MP_AP_PREFIX: include/ directory not found in /usr/include/apache2

Ah that problem again...

SOLUTION:

perl Makefile.PL MP_APXS=/usr/bin/apxs2

All problems went away.

Problems occur in debian if the MP_AP_PREFIX is used because it expects a /include dir to
be present. 
but if the MP_APXS option is not used, the MP_AP_PREFIX is one of the tempting recommendations
by the script.

The question here is, should the script have detected /usr/bin/apxs2 ?


-- 
Craig Shelley <craig@microtron.org.uk>

I hope the formatting of this email didn't come out too bad.



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Mime
View raw message