Subject: | Fwd: Lucy-0.3.3 build error on Windows (with quick fix) |
Date: | Sat, 17 Aug 2013 15:59:45 +0800 |
To: | bug-Lucy [...] rt.cpan.org |
From: | James Hull <james.mhull [...] gmail.com> |
A problem with clownfish's Build.pm, bundled with Lucy-0.3.3
My environment:
OS: Windows 8 x64
Perl: ActiveState 5.16.3 built for MSWin32-x64-multi-thread
Compiler: gcc version 4.5.4 (rubenv-4.5.4)
to recreate in this environment, just do > *cpan install Lucy*
*First error --*
Can't locate Clownfish/CFC/Hierarchy.pm in @INC (@INC contains:
clownfish/perl/b
lib/lib clownfish/perl/blib/arch ../clownfish/perl/blib/lib
../clownfish/perl/bl
ib/arch clownfish\perl\blib\lib clownfish\perl\blib\arch
..\clownfish\perl\blib\
lib ..\clownfish\perl\blib\arch buildlib clownfish/perl/blib/lib
clownfish/perl/
blib/arch ../clownfish/perl/blib/lib ../clownfish/perl/blib/arch buildlib
C:/Per
l64/site/lib C:/Perl64/lib .) at buildlib/Lucy/Build.pm line 224.
*Fix --*
Clownfish/CFC/Hierarchy.pm is located in clownfish/perl/lib/lib
So, add following to buildlib/Lucy/Build.pm
*use lib '../clownfish/perl/lib/lib';*
*use lib 'clownfish/perl/lib/lib';*
NOTE: not sure if this made a difference because I made the change, then
went on to building clownfish, after clownfish was installed everything
went fine.
*Second error, when running > perl Build.PL in clownfish/perl directory --*
Invalid GCC version: gcc.exe (4.5.4) 4.5.4
*Fix (just a quick hack) --*
file: clownfish/perl/buildlib/Clownfish/CFC/Build.pm
IN THIS:
my $gcc_version
= $ENV{REAL_GCC_VERSION}
|| $self->config('gccversion')
|| undef;
if ( defined $gcc_version ) {
- * $gcc_version =~ /^(\d+(\.\d+))/*
*+ ** $gcc_version =~ /(\d+(\.\d+))/*
or die "Invalid GCC version: $gcc_version";
$gcc_version = $1;
}
Cheers,
James
--
James H.
Beijing, China
--
James H.
Beijing, China
M +86 18611178116