Re: [Module-build-general] bug in Module-Build-0.18
Status: Beta
Brought to you by:
kwilliams
|
From: jk <bil...@fa...> - 2003-05-09 22:03:58
|
Ken Williams wrote: > > On Thursday, May 8, 2003, at 07:14 PM, jk wrote: > >> I wanted to install Module::Build on my computer. I keep my perl >> modules in /home/me/data/perl58, so I did this: >> >> perl Build.PL sitelib=/home/me/data/perl58/ >> ./Build >> ./Build test >> ./Build install >> >> ...but it still trys to install into /usr/lib/perl5/site_perl/5.8.0/ >> (where it has no permissions) rather than /home/me/data/perl58/ as I >> asked. >> >> Using a standard RedHat 9 Linux box with perl 5.8. >> >> Please let me know if I'm doing something wrong. Thanks for the help. > > > Hi jk, > > The local-directory support for Module::Build is still woefully > inadequate. It's a goal for version 0.19. One way (the only way?) to > install locally with 0.18 is this: > > perl Build.PL config=sitelib=/home/me/data/perl58/ > ./Build > ./Build test > ./Build fakeinstall (to check what it'll do in 'install') > ./Build install > > I swear we'll try to make this better soon. > > -Ken > > Thanks Ken! This worked and Module::Build is now installed locally where it should be. I guess as Dave observed the docs should be updated. A couple other observations that might be helpful: 1) When I ran "./Build test" I got a couple of tests fail, indicating they could not find Module::Info.pm. I do have it installed locally (in the /home/me/data/perl58/ tree), and I do have the PERL5LIB environmental variable set to indicate it... is it possible that Module::Build doesn't know about PERL5LIB and doesn't add it to the @INC array? The relevant error messages are here: ===================================================================== [me@mcc Module-Build-0.18]$ ./Build test t/basic.........ok t/runthrough....ok 4/13B::Module::Info,packages use failed with 2 saying: Can't locate B/Module/Info.pm in @INC (@INC contains: /home/me/.cpan/sources/authors/id/K/KW/KWILLIAMS/Module-Build-0.18/blib/lib /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 /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/ perl5/5.8.0 .) at (eval 1) line 18. BEGIN failed--compilation aborted at (eval 1) line 18. BEGIN failed--compilation aborted. t/runthrough....ok 6/13B::Module::Info,packages use failed with 2 saying: Can't locate B/Module/Info.pm in @INC (@INC contains: /home/me/.cpan/sources/authors/id/K/KW/KWILLIAMS/Module-Build-0.18/blib/lib /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 /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at (eval 1) line 18. BEGIN failed--compilation aborted at (eval 1) line 18. BEGIN failed--compilation aborted. t/runthrough....ok t/xs............ok All tests successful. Files=3, Tests=32, 9 wallclock secs ( 5.20 cusr + 0.49 csys = 5.69 CPU) [me@mcc Module-Build-0.18]$ [me@mcc me]$ env | grep PERL PERL5LIB=/home/me/data/perl58/lib/perl5/site_perl/5.8.0:/home/me/data/perl58/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi:/home/me/data/perl58/lib/perl5/5.8.0:/home/me/data/perl58/lib/perl5/5.8.0/i386-linux-thread-multi [me@mcc me]$ ===================================================================== 2) I originally tried to install Module::Build and various other modules using the CPAN.pm module, but this didn't work because the version of CPAN.pm I have doesn't know anything about using Build.pm rather than make. It would be good to give the CPAN.pm people a heads up about Build.pm so they can support it (this may already have been done). Thanks for the help, and thanks for making Module::Build. Looking forward to using it. jk |