# from Jay Truesdale # on Wednesday 02 August 2006 08:54 am: >The @INC entries are 1176 bytes from this command: > perl -le 'print for @INC'|wc -m
The important bits should be: perl -e 'print length join " ", @INC' perl -e 'print length join " ", %ENV' perl -e 'print length join " ", map({"-I$_"} @INC), %ENV' perl -e 'print join("\n", @INC)' echo $PERL5LIB My numbers are 345, 1385, and 1761. If you have 1100+ in @INC alone, that's part of the issue. Please send us the output of the above 5 commands so we can get an idea of your environment. (I'm fairly certain that the environment is serialized using null bytes between each entry, so the join accounts for the number of entries.) >> You could bump that number to something bigger and rebuild the >> kernel, but there's a more direct solution somewhere in M::B's code >> or test suite. > >I'll try the new kernel route. That might solve the problem on *your* machine, but is not the recommended solution. I was only making the point that this is the kernel's limitation and not the shell (we're not even using a shell because all system calls are in list context.) Note that while this is the kernel's issue, it is triggered by an oversized environment and/or a perl which is compiled with too many include paths. We should be able to get around it (the problem is that M::B has been naively duplicating @INC entries because missing one would be really bad and this issue was not anticipated at the time. >Well, you can download CentOS for free... <grin> Now I just need to find somewhere with free downloads of time and hardware :-) >I have a spare box to test with if you can let me know what to do/try. The full test output will be helpful cpan> look Module::Build $ perl Build.PL $ perl Build $ perl Build test --test_files t/compat.t --verbose 1 If you can checkout from svn, the repository is at: https://svn.perl.org/modules/Module-Build/trunk Thanks, Eric -- We who cut mere stones must always be envisioning cathedrals. --Quarry worker's creed --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------