cfaust-dougot wrote:
cfaust-dougot wrote:

Folks, have what I hope is a little problem during the install of mod_perl.

1. Problem Description:

I just downloaded the current mod_perl from the site.
mod_perl-2.0-current.tar.gz 4/18/2005

Configured and built as outlined in the docs - everything went fine, test 
showed all testes being successful (3 tests skipped).

When I went to "Make Install", it ended with the following

make[1]: Leaving directory `/home/xxx/mod_perl-2.0.0-RC5/xs'
/usr/bin/perl -Iblib/lib -I/home/xxx/mod_perl-2.0.0-RC5/Apache-Test/lib 
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod 
ModPerl-Registry/lib/ModPerl/RegistryLoader.pm 
/home/xxx/mod_perl-2.0.0-RC5/docs/api/ModPerl/RegistryLoader.pod 
blib/lib/ModPerl/RegistryLoader.pm
Unrecognized switch: --section=3  (-h will show valid options).
make: *** [glue_pods] Error 29

So I ran it with the -h
[EMAIL PROTECTED] mod_perl-2.0.0-RC5]# /usr/bin/perl -Iblib/lib 
-I/home/x/mod_perl-2.0.0-RC5/Apache-Test/lib -MModPerl::BuildMM -e 
ModPerl::BuildMM::glue_pod ModPerl-Registry/lib/ModPerl/RegistryLoader.pm 
/home/x/mod_perl-2.0.0-RC5/docs/api/ModPerl/RegistryLoader.pod 
blib/lib/ModPerl/RegistryLoader.pm -h
expecting 3 arguments: pm, pod, dst at blib/lib/ModPerl/BuildMM.pm line 282.

Any suggestions?


Stas Said -

The error is coming from pod2man, not the last command that you see:


In Makefile you can see:


      $(FULLPERL) -I$(INST_LIB)
-I/home/stas/apache.org/modperl-2.0/Apache-Test/lib -MModPerl::BuildMM -e
ModPerl::BuildMM::glue_pod xs/./Apache2/Const/Const.pm
ome/stas/apache.org/modperl-2.0/docs/api/Apache2/Const.pod
ib/lib/Apache2/Const.pm
    $(NOECHO) $(POD2MAN) --section=3
e/stas/apache.org/modperl-2.0/docs/api/Apache2/Const.pod
INST_MAN3DIR)/Apache2::Const.$(MAN3EXT)


I can see that on my machine the second command is not even run, since
POD2MAN is not defined. Please take a look at your Makefile, what's the
value of POD2MAN? e.g.:


grep POD2MAN Makefile | grep -v NOECHO


Thanks for taking a look Stas, I'm not really sure I understand what you are saying, but below is what you asked for ..
[EMAIL PROTECTED] mod_perl-2.0.0-RC5]# grep POD2MAN Makefile | grep -v NOECHO
POD2MAN_EXE = /usr/bin/pod2man --release mod_perl-2.0.0-RC5

if you look at the Makefile manually, POD2MAN_EXE is all you have, or is there some line continuation? (though I see no \)


POD2MAN = $(PERL) -we '[EMAIL PROTECTED];for (keys %m){' \
-e 'system(q[$(PERLRUN) $(POD2MAN_EXE) ].qq[$$_>$$m{$$_}])==0 or warn "Couldn\047t 
install $$m{$$_}\n";' \
        @$(POD2MAN) \

that's why it gets things messed up.


Please try this patch:

Index: lib/ModPerl/BuildMM.pm
===================================================================
--- lib/ModPerl/BuildMM.pm      (revision 161771)
+++ lib/ModPerl/BuildMM.pm      (working copy)
@@ -255,7 +255,7 @@
                 $man =~ s!/!::!g;

                 push @target,
-                    '$(NOECHO) $(POD2MAN) --section=3 ' .
+                    '$(NOECHO) $(POD2MAN_EXE) --section=3 ' .
                     "$podpath \$(INST_MAN3DIR)/$man.\$(MAN3EXT)"
             }
         }


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

Reply via email to