Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 14311
Status: resolved
Priority: 0/
Queue: Module-Build

Owner: Nobody in particular
Requestors: jdhedden [...]

Bug Information
Severity: Important
Broken in: 0.2611
Fixed in: (no value)

Subject: 'have_c_compiler()' aborts due to missing '_build' dir
Download (untitled) / with headers
text/plain 580b
The following Build.PL fails: use Module::Build; if (! Module::Build->new(module_name => 'My::Module', license => 'perl') ->have_c_compiler()) { die("No 'C' compiler found to build My::Module\n"); } Error message is: Can't create : No such file or directory at /usr/local/lib/perl5/site_perl/5.8/Module/Build/ line 2493. This is caused because Module::Build is not creating the '_build' dir prior to executing 'have_c_compiler()'. A workaround of adding "mkdir('_build', 0777);" before the 'if' statement allows the Build.PL to function properly.
Download (untitled) / with headers
text/plain 393b
It looks like this issue is already solved in the development branch (versions 0.27_xx), because we always use ExtUtils::CBuilder there and it uses File::Spec->tmpdir() rather than _blib/ for its staging area. In the maintenance branch (versions 0.26xx) you should also be able to work around the issue by installing ExtUtils::CBuilder. Your workaround is probably easier, though. -Ken
Download (untitled) / with headers
text/plain 435b
[ - Sun Aug 28 10:04:05 2005]: Show quoted text
> If you plan another maintenance release prior to release 0.27, then this > should be fixed as part of that maintenance release. Otherwise, since > you have addressed this problem in 0.27_XX, then that takes care of my > bug report. Thanks.
At this point we don't have another maintenance release planned, but if another one happens, this fix will certainly be in it. -Ken

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to