Subject: | Fails to install through CPAN under Ubuntu with mod_perl2 |
I am running Ubuntu 10.04.1 LTS - a clean server installation with
standard perl 5.10.1 plus the following additional packages installed:
apache2 2.2.14
apache2-threaded-dev 2.2.14
libapache2-mod-perl2 2.0.4
libapache2-mod-perl2-dev 2.0.4
libyaml-perl 0.71
build-essential
An attempt to install Apache2::AuthCookie via CPAN fails (transcript
below). As far as I can tell, it falls over because Apache2::AuthCookie
depends on Apache::Constants and Apache::Util, and both of those are
provided by mod_perl (v1). So off it goes and tries to install mod-perl-
1.31, which it can't do because there's no apache1 in the system. In
fact Ubuntu seems to have dropped all apache 1.x packages.
Now, I believe Apache2::AuthCookie should work with mod_perl 2, because
there is a README.modperl2:
"**** NOTICE: Version 3.07 is incompatible with previous releases. ***
As of release 3.07, you must be running mod_perl 2.0.0 RC5 or later.
Please
note that in mod_perl 2.0.0 RC5 many packages were reneamed. See the
mod_perl
documentation for updating your code for 2.0.0 RC5."
As far as I can tell, Apache::Util and Apache::Constants are only used
by Apache::AuthCookie, not Apache2::AuthCookie. Furthermore, if I
install Apache2::AuthCookie the old manual way it works fine. So I
really want a way to tell CPAN to install *only* the Apache2::xxx code
and not Apache:xxx.
I know very little about CPAN internals, so I can't suggest anything
other than splitting Apache2-AuthCookie into a separate package.
Regards, Brian.
P.S. The end goal here is a clean install of Netdot
(netdot.uoregon.edu), which has Apache2::AuthCookie and
Apache2::SiteControl as dependencies.
-------------------------------
$ cpan
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.9402)
Enter 'h' for help.
cpan[1]> install Apache2::AuthCookie
...
Writing Makefile for Apache::AuthCookie
Show quoted text
---- Unsatisfied dependencies detected during ----
---- MSCHOUT/Apache-AuthCookie-3.15.tar.gz ----
Module::Signature [build_requires]
Apache::Constants [requires]
Apache::Util [requires]
mod_perl [requires]
Apache [build_requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
...
Running make for G/GO/GOZER/mod_perl-1.31.tar.gz
Prepending /home/sysadm/.cpan/build/Module-Signature-0.66-
ti8sqI/blib/arch /home/sysadm/.cpan/build/Module-Signature-0.66-
ti8sqI/blib/lib to PERL5LIB for 'get'
Checksum for /home/sysadm/.cpan/sources/authors/id/G/GO/GOZER/mod_perl-
1.31.tar.gz ok
mod_perl-1.31/
mod_perl-1.31/.gdbinit
mod_perl-1.31/Apache/
mod_perl-1.31/Apache/Apache.pm
mod_perl-1.31/Apache/Makefile.PL
mod_perl-1.31/Apache/typemap
...
Enter `q' to stop search
Please tell me where I can find your apache src
[../apache_x.x/src]
Can't stat `../apache_x.x/src'
Please tell me where I can find your apache src
[../apache_x.x/src] /etc
sh: ./Configure: not found
can't open /Makefile No such file or directory at Makefile.PL line 685,
<STDIN> line 2.
Warning: No success on command[/usr/bin/perl Makefile.PL
INSTALLDIRS=site]
GOZER/mod_perl-1.31.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
...
Running make install
make test had returned bad status, won't install without force
Failed during this command:
FLORA/Module-Signature-0.66.tar.gz : install NO
GOZER/mod_perl-1.31.tar.gz : writemakefile NO
'/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512
MSCHOUT/Apache-AuthCookie-3.15.tar.gz : make_test NO 4
dependencies missing (Apache::Constants,Apache::Util,mod_perl,Apache)