Re: Ending Build.PL if there are missing modules

Leon Timmermans <[email protected]> Sat, 4 Feb 2012 00:22:13 +0100
Newsgroups gmane.comp.lang.perl.modules.module-build
Message-ID <CAHhgV8jXtb51gXMf3Yh8OfCK9WMvtqHz4tQcr3iA=1Z6ua3BfA@mail.gmail.com>
2012/2/3 Alberto Sim=C3=B5es <[email protected]>:
> Hello
>
> Builder->new seems to check if all required modules are available. But if
> any fails, it continues to process the Build.PL file.
>
> Is there any way to make it stop?
>
> Thanks

Hi Alberto,

You shouldn't make it stop. =C2=ABperl Build.PL=C2=BB does configuration, n=
ot
building. Hence build or runtime requirements are not required to be
satisfied. What you're observing is not an error in any way, but an
essential step in the process. It gives the install tool the chance to
tell the cpan client (or the end user, if he's installing by hand) the
opportunity what dependencies to install.

If there are any missing dependencies, you'll notice it soon enough
(in particular when doing =C2=AB./Build test=C2=BB.

Leon