You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Joseph Crotty <jc...@matchlogic.com> on 2001/02/15 04:37:31 UTC

PREFIX behavior question...

hey all,

I built apache/mod_perl using the PREFIX argument, but am puzzled by the
results.  I assumed that the Perl modules would be installed into the
location specified by PREFIX(according to Stas's guide), which is the case
if the location is absolute, but not if it is relative(Stas's guide uses an
example with an absolute location-
http://perl.apache.org/guide/install.html#Installation_Without_Superuser_P
).  

Consider the following:

JCROTTY:mailroom:/tmp>ls -al
drwxr-xr-x   8 jcrotty  dvlp         907 Feb 14 20:12 apache_1.3.14/
-rw-r--r--   1 jcrotty  other    1824568 Feb 13 18:14 apache_1.3.14.tar.gz
drwxr-xr-x  24 jcrotty  dvlp        2190 Feb 14 20:09 mod_perl-1.25/
-rw-r--r--   1 jcrotty  other     366834 Feb 13 18:14 mod_perl-1.25.tar.gz

JCROTTY:mailroom:/tmp/mod_perl-1.25>perl Makefile.PL PREFIX=../joe

make
make test
make install
All of the above go smoothly.


JCROTTY:mailroom:/tmp/joe/lib/site_perl/5.6.0/sun4-solaris>ls
./     ../    auto/

That's it, no modules are present in
/tmp/joe/lib/site_perl/5.6.0/sun4-solaris or any of the other
/tmp/joe/lib... locations.

If I build with perl Makefile.PL PREFIX=/tmp/joe then make, make test and
make install we get:

JCROTTY:mailroom:/tmp/joe/lib/site_perl/5.6.0/sun4-solaris>ls -al
drwxr-xr-x   5 jcrotty  dvlp         683 Feb 14 20:24 ./
drwxr-xr-x   3 jcrotty  dvlp         114 Feb 14 20:12 ../
drwxr-xr-x   3 jcrotty  dvlp        1630 Feb 14 20:24 Apache/
-r--r--r--   1 jcrotty  dvlp       34914 Jan 29 10:33 Apache.pm
drwxr-xr-x   2 jcrotty  dvlp         111 Feb 14 20:24 Bundle/
drwxr-xr-x   4 jcrotty  dvlp         149 Feb 14 20:24 auto/
-r--r--r--   1 jcrotty  dvlp        3277 Mar  3  2000 cgi_to_mod_perl.pod
-r--r--r--   1 jcrotty  dvlp        1096 Jan 29 21:08 mod_perl.pm
-r--r--r--   1 jcrotty  dvlp       27538 Nov 28 10:45 mod_perl.pod
-r--r--r--   1 jcrotty  dvlp        2706 Feb 29  2000 mod_perl_cvs.pod
-r--r--r--   1 jcrotty  dvlp         512 Feb 14 20:19 mod_perl_hooks.pm
-r--r--r--   1 jcrotty  dvlp          43 Jul 18  1998 mod_perl_hooks.pm.PL
-r--r--r--   1 jcrotty  dvlp        4781 Mar  3  2000
mod_perl_method_handlers.pod
-r--r--r--   1 jcrotty  dvlp       11781 Mar  3  2000 mod_perl_traps.pod
-r--r--r--   1 jcrotty  dvlp       17520 Mar  3  2000 mod_perl_tuning.pod

Am I out to lunch or is there a good reason for this behavior?

Joe Crotty