Hey Doug & mod_perl'ers!
I tried to build mod_perl and use "make tar_Apache" to build a distributable
tar for other same-architecture machines, without success.
You should know, I was trying to build mod_perl using a non-root account, in
an alternate location. I did so by setting PREFIX and INSTALLMAN3DIR during
"perl Makefile.PL", as follows:
----START---->
[jesse] mod_perl-1.24$ export
PERL_STUFF=/home/jesse/devel/vm-dev-env/jesse_pstuff
[jesse] mod_perl-1.24$ export
APACHE_SRC=/home/jesse/devel/vm-dev-env/apache_1.3.12_build/src
[jesse] mod_perl-1.24$ perl Makefile.PL \
> PREFIX=$PERL_STUFF \
> INSTALLMAN3DIR=$PERL_STUFF/man/man3 \
> APACHE_SRC=$APACHE_SRC \
> DO_HTTPD=1 \
> USE_APACI=1 \
> PREP_HTTPD=1 \
> EVERYTHING=1
<----END----
Using the generated Makefile, when I tried to do a "make tar_Apache" I
received an error as follows:
----START---->
[jesse] mod_perl-1.24$ make tar_Apache
(cd /home/jesse/devel/vm-dev-env/jesse_pstuff/lib/perl5/site_perl/5.005; \
tar -cf /home/jesse/devel/vm-dev-env/mod_perl-1.24/Apache.tar
mod_perl.pm Apache.pm Apache i686-linux/auto/Apache; )
tar: Cannot add file mod_perl.pm: No such file or directory
tar: Cannot add file Apache.pm: No such file or directory
tar: Cannot add file Apache: No such file or directory
tar: Error exit delayed from previous errors
make: *** [tar_Apache] Error 2
<----END----
When looking at the contents of the "site_perl/5.005" directory, I noticed
that there were no files there! All the files appeared to be in the
architecture-specific directory, "i686-linux/".
If this is correct, and not an artifact of trying to build outside of the
normal paths, this would seem to indicate that there is a small flaw in the
Makefile.PL which references the wrong directories. If that is the case, I
have created a patch which appears to correct the problem:
---- START PATCH ---->
--- Makefile.PL.ORIG Wed Aug 30 17:46:00 2000
+++ Makefile.PL Wed Aug 30 17:59:36 2000
@@ -1287,8 +1287,8 @@
(cd $(APACHE_ROOT) && $(MAKE) install)
tar_Apache:
- (cd $(INSTALLSITELIB); \
- $(TAR) -cf $(PWD)/Apache.tar mod_perl.pm Apache.pm Apache
$(ARCHNAME)/auto/Apache; )
+ (cd $(INSTALLSITELIB)/$(ARCHNAME); \
+ $(TAR) -cf $(PWD)/Apache.tar mod_perl.pm Apache.pm Apache
auto/Apache; )
offsite-tar:
$(CP) MANIFEST MANIFEST.orig
<---- END PATCH ----
I tested this and it appears to work for me (although I haven't tried to
distribute this file to another machine, yet). Would this patch work, or is
there some other flaw at work here?
Thanks!
-Jesse-
--
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Jesse Erlbaum ....................... CTO
[EMAIL PROTECTED] ............. Vanguard Media
v: 212.242.5317 x115 ...... New York City
+-+-+-+-+-+- http://www.vm.com/ +-+-+-+-+-+-+