Many thanks for your reply Jérôme :)

I have now uninstalled the RPM, but unfortunately:

[root@fooTowers mod_perl-1.99_08]# perl Makefile.PL MP_APXS=/usr/sbin/apxs
Reading Makefile.PL args from @ARGV
MP_APXS = /usr/sbin/apxs
!!! Unable to determine server version, aborting.
!!! Invalid MP_APXS specified?

The only filename containing apxs is in the Apache manual. (I have mod_so compiled in to the httpd.)

I reinstalled the mod_perl-1.99_05-3 RPM thinking that might give me less problems, it looked OK but now:

[Wed Jan 15 14:37:02 2003] [error] failed to resolve handler `ModPerl::Registry::handler'
[Wed Jan 15 14:43:12 2003] [error] [client 192.168.1.30] Can't locate ModPerl/Registry/handler.pm in @INC (@INC contains: [snip]

.. this is using the default conf.d/perl.conf that comes with the RPM (all I changed was the <Directory ...> location to one which used to work):

LoadModule perl_module modules/mod_perl.so
# [snip]
<Directory /home/httpd/html/mp>
SetHandler perl-script
PerlHandler ModPerl::Registry::handler
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>

@INC includes /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
and I have: /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/ModPerl/Registry.pm

... but this is going into the realms of general Perl questions ...

I'm wondering what I need to tweak to get the RPM to work, or a working parameter to pass to Makefile.PL

jon

At 15:08 15/01/2003 +0100, you wrote:
On Wed, Jan 15, 2003 at 01:32:30PM +0000, Jon wrote:
>
> I'm new to mod_perl, and was having fun tinkering with mod_perl-1.99_05-3
> on Red Hat 8 (Perl 5.8.0 / Kernel 2.4.18-17.8.0 on an i686 /
> Apache/2.0.40), installed from RPM's.
>
> I wanted to get the older Apache:: modules to work, I noted that the ones i
> wanted came with mod_perl-1.27, and made the (*very* bad) decision of
> trying to install the old version and getting mod_perl2 to work in
> 'compatibility mode'. So I tried to install 1.27 from the binary which of
> course required Apache 1.3, which I had - but not the sources. This
> resulted in a broken mod_perl installation and me only having some of the
> modules I required, which of course mostly fail anyway due to dependency
> issues.
>
> I dont think I can install from mod_perl-1.99_08.tar.gz: I hunted for a
> value for MP_AP_PREFIX - it's probably due to me having installed Apache
> from an RPM, but there is no path "under which the include/ directory with
> Apache C header files can be found" that I can find - something a bit more
> concrete to feed into 'slocate' or 'find' might help here.
>

To compile mod_perl-1.99_xx on RedHat 8.0 I used :

$ perl Makefile.PL MP_APXS=/usr/sbin/apxs

First, I removed the original mod_perl-1.99_05 RPMS then I compiled and
installed the newer one.

>
> Also now the RPM is broken:
>
> [root@fooTowers public]# rpm -e --nodeps mod_perl-1.99_05-3.i386.rpm
> error: package mod_perl-1.99_05-3.i386.rpm is not installed
> [root@fooTowers public]# rpm -ivh mod_perl-1.99_05-3.i386.rpm
> Preparing... ###########################################
> [100%]
> package mod_perl-1.99_05-3 is already installed
>

The package name is "mod_perl-1.99_05-3" and not
"mod_perl-1.99_05-3.i386.rpm" (remove the ".i386.rpm" extension).
So, to remove the package you should use :

$ rpm --erase --nodeps mod_perl-1.99_05-3

--



Reply via email to