You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Garrett Goebel <ga...@scriptpro.com> on 2003/08/28 22:53:15 UTC

Apache::Test unable to locate libperl.so?

I'm trying to come up to speed on Apache::Test. I'm working from Stas's
documentation at http://perl.apache.org/docs/general/testing/testing.html.
My system is roughly:

gentoo linux 1.4
perl 5.8.0 useithreads=undef useperlio=define
apache 1.3.28
mod_perl 1.3.28
Apache::Test 1.04 (2003/08/28 cvs snapshot)

I ended up having to patch TestConfig.pm so that it could locate libperl.so.
TestConfig.pm's find_apache_module method doesn't try the
/usr/lib/apache-extramodules directory... Which is where Gentoo linux likes
to put it. A few searches on google suggest Mandrake may put things there as
well.

I don't know the story on "extramodules"... If anyone is familiar with it
please point me to any documentation or rational on why it exists and what
advantage it offers. I hate finding customizations without a clue as to why
they're there.

Anyways what follows is my best guess on a reasonable way to locate it when
trying to find modules.

--- /home/ggoebel/src/mp2/modperl-2.0/Apache-Test/lib/Apache/TestConfig.pm
2003-08-13 17:15:38.000000000 -0500
+++ TestConfig.pm       2003-08-28 15:17:52.000000000 -0500
@@ -637,6 +637,7 @@
     my @trys = grep { $_ }
       ($vars->{src_dir},
        $self->apxs('LIBEXECDIR'),
+       $self->apxs('LIBEXECDIR').'-extramodules',
        catfile($sroot, 'modules'),
        catfile($sroot, 'libexec'));

--
Garrett Goebel
IS Development Specialist

ScriptPro                   Direct: 913.403.5261
5828 Reeds Road               Main: 913.384.1008
Mission, KS 66202              Fax: 913.384.2180
www.scriptpro.com          garrett at scriptpro dot com



Re: Apache::Test unable to locate libperl.so?

Posted by Stas Bekman <st...@stason.org>.
Garrett Goebel wrote:
> I'm trying to come up to speed on Apache::Test. I'm working from Stas's 
> documentation at 
> http://perl.apache.org/docs/general/testing/testing.html. My system is 
> roughly:
> 
> gentoo linux 1.4
> perl 5.8.0 useithreads=undef useperlio=define
> apache 1.3.28
> mod_perl 1.3.28
> Apache::Test 1.04 (2003/08/28 cvs snapshot)
> 
> I ended up having to patch TestConfig.pm so that it could locate 
> libperl.so. TestConfig.pm's find_apache_module method doesn't try the 
> /usr/lib/apache-extramodules directory... Which is where Gentoo linux 
> likes to put it. A few searches on google suggest Mandrake may put 
> things there as well.
> 
> I don't know the story on "extramodules"... If anyone is familiar with 
> it please point me to any documentation or rational on why it exists and 
> what advantage it offers. I hate finding customizations without a clue 
> as to why they're there.

If a distro changes the default LIBEXECDIR after building apache, (and not 
during ./configure) it has to fix apxs to report the new value, so that 'apxs 
-q LIBEXECDIR' gets the right value. If it doesn't please report a bug to the 
distro maintainers and ask them them fix that package.

Sorry, but I don't think this approach of adjusting to each distro's will 
going to work. We already do too much guess-work that I'm thinking of 
dropping, since it does more evil than goodness.

Meanwhile symlinking libexec-extramodules => libexec should do the trick.

> Anyways what follows is my best guess on a reasonable way to locate it 
> when trying to find modules.
> 
> --- /home/ggoebel/src/mp2/modperl-2.0/Apache-Test/lib/Apache/TestConfig.pm
> 2003-08-13 17:15:38.000000000 -0500
> +++ TestConfig.pm       2003-08-28 15:17:52.000000000 -0500
> @@ -637,6 +637,7 @@
>      my @trys = grep { $_ }
>        ($vars->{src_dir},
>         $self->apxs('LIBEXECDIR'),
> +       $self->apxs('LIBEXECDIR').'-extramodules',
>         catfile($sroot, 'modules'),
>         catfile($sroot, 'libexec'));

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html