[Module-build-general] Re: FW: Why is Module::Build looking for the module in lib directory?
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-06-18 04:25:17
|
On Tuesday, June 17, 2003, at 08:00 PM, Mr. Lindsay Morris wrote:
> Thank you, Ken!
> Did that;
> ./Build dist gave me an empty .tar.gz file;
> by an inspired leap I tried ./Build manifest first,
> THEN ./Build dist did right.
>
> Maybe Build dist could automatically Build manifest? or at least say
> "you
> dummy..."?
Yeah, good idea - I'll add a warning if no files were found in the
MANIFEST. We can't auto-create the MANIFEST at that stage because the
MANIFEST drives the distdir process.
> Of course there's alwasy another problem...
> I put the tar.gz file on my windows box, and realize I don't know how
> to
> install the distribution.
>
> I try th obvious things:
> ./Build
> perl Build
> perl Build.PL
> perl Makefile.PL
It's this sequence:
perl Build.PL
perl Build
perl Build test
perl Build install
> But nothing works - details below if you care to look...
> I had hopes for "perl Build.PL" but it complains it can't find module
> Build - maybe I'm getting confused with Module::Install, but I thought
> everything I needed would get packaged up in the distro
> and installed from there.
Nope, Module::Build is just a standard prerequisite that you (and your
users) need to install the usual way. You're indeed thinking of
Module::Install. I think you actually could use Module::Install to
bundle Module::Build, but I haven't tried it.
-Ken
> ============================================================
> after untarring distro on windows:
>
> C:\tmp\SGlicense-1.02>./Build
> '.' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\tmp\SGlicense-1.02>Build dist
> 'Build' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\tmp\SGlicense-1.02>ls -l
> total 30
> -rwxr-xr-x 1 Lindsay None 693 Jun 17 09:47 Build
> -rw-r--r-- 1 Lindsay None 246 Jun 17 07:17 Build.PL
> -rw-r--r-- 1 Lindsay None 154 Jun 17 03:45 Changes
> -rw-r--r-- 1 Lindsay None 458 Jun 17 09:49 MANIFEST
> -rw-r--r-- 1 Lindsay None 1150 Jun 17 09:50 META.yml
> -rwxr-xr-x 1 Lindsay None 18330 Jun 17 16:55 Makefile
> -rw-r--r-- 1 Lindsay None 350 Jun 17 07:13 Makefile.PL
> -rw-r--r-- 1 Lindsay None 1069 Jun 17 03:45 README
> -rw-r--r-- 1 Lindsay None 2977 Jun 17 03:56 SGlicense.pm
> drwxr-xr-x+ 2 Lindsay None 0 Jun 17 09:50 _build
> drwxr-xr-x+ 4 Lindsay None 0 Jun 17 13:55 blib
> drwxr-xr-x+ 5 Lindsay None 0 Jun 17 19:51 inc
> drwxr-xr-x+ 2 Lindsay None 0 Jun 17 09:50 lib
> -rwxr-xr-x 1 Lindsay None 0 Jun 17 13:55 pm_to_blib
> drwxr-xr-x+ 2 Lindsay None 0 Jun 17 19:51 t
>
> C:\tmp\SGlicense-1.02>type Build
> #!/usr/bin/perl
>
> BEGIN {
> $^W = 1; # Use warnings
> chdir('/tmp/SGlicense') or die 'Cannot chdir to /tmp/SGlicense: '.$!;
> @INC = ('/usr/lib/perl5/5.8.0/i386-linux-thread-multi',
> '/usr/lib/perl5/5.8.0',
> '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-
> multi', '/usr/lib/perl5/site_perl/5.8.0', '/usr/lib/perl5/site_perl',
> '/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi', '/
> usr/lib/perl5/vendor_perl/5.8.0', '/usr/lib/perl5/vendor_perl', '.');
> }
>
> use Module::Build;
>
> # This should have just enough arguments to be able to bootstrap the
> rest.
> my $build = resume Module::Build (
> properties => {
> config_dir => '_build',
> build_script => 'Build',
> },
> );
>
> $build->dispatch;
>
> C:\tmp\SGlicense-1.02>perl Build
> Cannot chdir to /tmp/SGlicense: No such file or directory at Build
> line 5.
> BEGIN failed--compilation aborted at Build line 7.
>
> C:\tmp\SGlicense-1.02>perl Build.PL
> Can't locate Module/Build.pm in @INC (@INC contains: c:/Perl/lib
> c:/Perl/site/lib .) at Build.PL line 1.
> BEGIN failed--compilation aborted at Build.PL line 1.
>
> C:\tmp\SGlicense-1.02>perl Makefile.PL
> Can't locate Module/Build.pm in @INC (@INC contains: inc c:/Perl/lib
> c:/Perl/site/lib .) at inc/Module/Install/Build.pm - /usr/lib/p
> erl5/site_perl/5.8.0/Module/Install/Build.pm line 35.
>
> C:\tmp\SGlicense-1.02>ls -l inc
> total 13
> drwxr-xr-x+ 2 Lindsay None 0 Jun 17 19:51 Crypt
> drwxr-xr-x+ 3 Lindsay None 0 Jun 17 03:57 Filter
> drwxr-xr-x+ 3 Lindsay None 0 Jun 17 19:51 Module
> -rw-r--r-- 1 Lindsay None 12857 Jun 17 07:18 warnings.pm
>
>
>
|