Doug -

Thanks very much for the answer - I was missing something obvious.

Along the way I discovered that the Perl Configure file was putting a space
after the -R attribute - which was causing gcc to toss it's cookies on the
Apache test compile (it was trying to treat the CORE directory as a file).
I reported that to Perl Bug - since after I changed that the Apache test
compile ran clean.

I did eventually get to the point you suggest - but got core dumps when I
started Apache.  I read of someone else getting the same thing on 2.6 and
gave up dynamic loading, linked static and now things are running.

But, I do appreciate your answer and I'm filing it in my folder about
compiling on UNIX - it is helpful.

KenMc

-----Original Message-----
From: Doug MacEachern [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 30, 1999 10:49 PM
To: McNamara, Ken
Cc: [EMAIL PROTECTED]
Subject: Re: Install Problem - Cannot load libperl.so


On Thu, 23 Sep 1999, McNamara, Ken wrote:

> I'm compiling and installing Apache with mod_perl on a Solaris 2.6 system.
> Compiler is gcc 2.5.8
> 
> Please look at the install notes below - I feel I'm missing something
> obvious - but what?
 
> $ perl Makefile.PL EVERYTHING=1
> $ make
> # make install

you did not tell mod_perl to build a dso.
 
> Then cd to Apache and everything seemed to work except libperl.so didn't
> exist (note below)
> 
> $ ./configure --prefix=/usr/local/apache \
>                   --activate-module=src/modules/perl/libperl.a \
>                   --enable-shared=perl
> > > Configuring for Apache, Version 1.3.9
>  + using installation path layout: Apache (config.layout)
>  + activated perl module (modules/perl/libperl.a)

libperl.a links mod_perl static.

if you've already installed Apache, try this from appendixb of the eagle
book.

-Doug

=head2 Building mod_perl as a DSO

Once an Apache server installation is already in place, mod_perl can
be built as DSO without an Apache source tree handy.  Example:

 perl Makefile.PL USE_APXS=1 APACHE_PREFIX=/usr/local/apache EVERYTHING=1
...

The B<USE_APXS> option tells mod_perl to build itself using the Apache
I<apxs> tool.  The Makefile.PL will look for I<apxs> under the
I<bin/> and I<sbin/> directories relative to B<APACHE_PREFIX>.  If
I<apxs> happens to be installed elsewhere, simply use the full path
name for the value of the B<USE_APXS> attribute:

 perl Makefile.PL USE_APXS=/usr/sbin/apxs EVERYTHING=1 ...

Provided an B<APACHE_PREFIX> attribute was passed to the Makefile.PL
script, running I<make install> will install and configure the
mod_perl DSO library along with installing the Perl libraries.  If no
B<APACHE_PREFIX> attribute was specified, simply copy the new
I<apaci/libperl.so> library to anywhere you choose.

Reply via email to