perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roca, Ignasi" <ignasi.r...@fujitsu.siemens.es>
Subject RE: Installation problems with USE_APACI
Date Thu, 09 Mar 2000 16:14:35 GMT
Hi, 


I have a simpler correction for the problem with finding libperl.so library.
I found a bug in Makefile.PL it doesn't support the $shrpenv of perl5 when
APACI is used.

What is $shrpenv ? On some systems, the way to tell executables where to
find dynamic libraries, is to set the environment variable LD_RUN_PATH to
the directories that will be the final location of the libraries. Perl5 has
the $shrpenv set in such way that adds LD_RUN_PATH to the environment with
the location of the libperl.so: shrpenv="env LD_RUN_PATH=$archlibexp/CORE".
 
To test whether your perl installation has shrpenv set apply the following:
perl -MConfig -e 'print $Config{shrpenv}'

Here the correction in Makefile.PL:

$ diff -c Makefile.PL Makefile.PL.orig
*** Makefile.PL Thu Mar  9 12:44:54 2000
--- Makefile.PL.orig    Fri Jun 11 19:14:27 1999
***************
*** 882,888 ****
      }

      if($USE_APACI and not $PREP_HTTPD and not $USE_APXS){
!       my $cmd = "CC=\"$Config{shrpenv} $Config{cc}\" ";

        if($PERL_EXTRA_CFLAGS) {
            $cmd .= qq(CFLAGS="$PERL_EXTRA_CFLAGS" );
--- 882,888 ----
      }

      if($USE_APACI and not $PREP_HTTPD and not $USE_APXS){
!       my $cmd = "CC=\"$Config{cc}\" ";

        if($PERL_EXTRA_CFLAGS) {
            $cmd .= qq(CFLAGS="$PERL_EXTRA_CFLAGS" );



Ignasi Roca CarriĆ³ 

Mime
View raw message