Re: Re-installing 1.99_08 binary or 1.99_05 RPM in Red Hat 8 [mp2]

2003-02-05 Thread Jon
(Just an informational post to round off the thread.)

The following worked for me, I now have a working mod_perl 1.99!

At 15:08 15/01/2003 +0100, Jérôme Augé wrote:


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.


Many thanks Jérôme, also Stas, and Paul for the advice on ditching the 
RPM's :o)




Re-installing 1.99_08 binary or 1.99_05 RPM in Red Hat 8 [mp2]

2003-01-15 Thread Jon

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.

Apache/2.0.40 Server compiled with
 -D APACHE_MPM_DIR=server/mpm/prefork
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=/etc/httpd
 -D SUEXEC_BIN=/usr/sbin/suexec
[snip]

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

Nice.

Essentially I just want to get mod_perl 2 working again and forget using 
the old Apache:: modules, either using the 1.99_08 binary or the 1.99_05-3 
RPM.  Any suggestions much appreciated!

TIA,
Jon




Re: Re-installing 1.99_08 binary or 1.99_05 RPM in Red Hat 8 [mp2]

2003-01-15 Thread Jérôme Augé
On Wed, Jan 15, 2003 at 03:07:14PM +, Jon wrote:
 
 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.)
 

You must install the httpd-devel package, /usr/sbin/apxs is in this
package.

 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
 

Did you stopped and restarted httpd after installing the package ?

-- 




Re: Re-installing 1.99_08 binary or 1.99_05 RPM in Red Hat 8 [mp2]

2003-01-15 Thread Paul Simon
--- Jon [EMAIL PROTECTED] wrote:

 This RPM was working before, so all my messing
 around has broken something 
 I can't find.  If the recommendation is to ditch the
 RPM and proceed with 
 the new binary then that's fine.
 
 thanks again, jon
 
Red Hat's RPM seems very friendly at first then it
turns into the devil from hell, at least for me :) I
had the same problem as you when installing Perl 5.8
and apache/mod_perl on RH 7.1 using RPM. Everything
was a dependency issue and got F'ed up. I finally
learned how to build from source...   




Re: Re-installing 1.99_08 binary or 1.99_05 RPM in Red Hat 8 [mp2]

2003-01-15 Thread Stas Bekman
Jon wrote:

At 16:34 15/01/2003 +0100, Jérôme Augé wrote:


You must install the httpd-devel package, /usr/sbin/apxs is in this
package.



OK, I've installed this, but I would like one more go at getting the RPM 
working, so I don't get more problems when the next RPM is released - I 
guess I have to choose one method to follow, but am more used to dealing 
with RPM's.

 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]

Try with the 99_08 version.

it should be pretty easy to grab the src package for mod_perl-1.99_05-3,
rpm -i it, replace the modperl tar.gz in the SOURCES dir, adjust the spec 
file and rebuild a new package.

But I'd go with the build from source. At least to get you going.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com