newleaf has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to install MooseX::Declare under Cygwin. I downloaded, built and installed Perl 5.12.1 /usr/local. When I try to install MooseX::Declare I get problems with it's dependency Devel::Declare. This is the error I see:
Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lCheck Writing Makefile for Devel::Declare cp lib/Devel/Declare/Context/Simple.pm blib/lib/Devel/Declare/Context/ +Simple.pm cp lib/Devel/Declare.pm blib/lib/Devel/Declare.pm cp lib/Devel/Declare/MethodInstaller/Simple.pm blib/lib/Devel/Declare/ +MethodInstaller/Simple.pm /usr/local/bin/perl.exe "-Iinc" /usr/local/lib/perl5/5.12.1/ExtUtils/x +subpp -typemap /usr/local/lib/perl5/5.12.1/ExtUtils/typemap Declare +.xs > Declare.xsc && mv Declare.xsc Declare.c gcc -c -I/usr/local/lib/perl5/site_perl/5.12.1/cygwin-thread-multi-64 +int/B/Hooks/OP/Check/Install -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ + -fno-strict-aliasing -pipe -DUSEIMPORTLIB -O3 -DVERSION=\"0.006000 +\" -DXS_VERSION=\"0.006000\" "-I/usr/local/lib/perl5/5.12.1/cygwin-t +hread-multi-64int/CORE" Declare.c Running Mkbootstrap for Devel::Declare () chmod 644 Declare.bs rm -f blib/arch/auto/Devel/Declare/Declare.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,- +-stack,8388608 -Wl,--enable-auto-image-base -L/usr/local/lib Declare. +o -o blib/arch/auto/Devel/Declare/Declare.dll \ /usr/local/lib/perl5/5.12.1/cygwin-thread-multi-64int/CORE/c +ygperl5_12_1.dll \ Declare.o:Declare.c:(.text+0x6624): undefined reference to `_hook_op_c +heck' Declare.o:Declare.c:(.text+0x663a): undefined reference to `_hook_op_c +heck' collect2: ld returned 1 exit status make: *** [blib/arch/auto/Devel/Declare/Declare.dll] Error 1 FLORA/Devel-Declare-0.006000.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
I googled around and found this bug. Great, its fixed! However, perldoc perllocal says this:
Sat Aug 14 06:39:37 2010: "Module" ExtUtils::Depends · "installed into: /usr/local/lib/perl5/site_perl/5.12.1" · "LINKTYPE: dynamic" · "VERSION: 0.302" · "EXE_FILES: "
which appears to be the lastest version. I looked at the git repository and it appears the fix is fact in this version. So, now what?
One other thing may be relevant...prior to installing Perl 5.12.1 I had installed Perl 5.13 and attempted to fetch MooseX::Declare, but had some other issues and decided to try the safe approach. Possibly something from this earlier attempt is interfering with the 5.12?
EDIT: As syphilis pointed out, I didn't really say what my problem is. The problem is that I'm getting this error despite the fact that I have the version of ExtUtils::Depends with the bug fix in it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error with ExtUtils::Depends under Cygwin
by syphilis (Archbishop) on Aug 15, 2010 at 01:29 UTC | |
by newleaf (Initiate) on Aug 15, 2010 at 14:57 UTC | |
by syphilis (Archbishop) on Aug 15, 2010 at 22:27 UTC | |
by newleaf (Initiate) on Aug 17, 2010 at 11:37 UTC | |
|
Re: Error with ExtUtils::Depends under Cygwin
by syphilis (Archbishop) on Aug 14, 2010 at 14:37 UTC | |
by newleaf (Initiate) on Aug 14, 2010 at 15:14 UTC |