I'm running Windows x64 and am annoyed that some important modules won't install. There seems to be something wrong some binary part of my installation. For example, I see on the CPAN testers website that Data::UUID installs fine on Windows. But when I try to install it, I get a really long list of errors like this:

UUID.o:UUID.c:(.text+0x1eac): undefined reference to `_imp__Perl_croak +_xs_usage' UUID.o:UUID.c:(.text+0x1eb9): undefined reference to `_imp__Perl_get_c +ontext' UUID.o:UUID.c:(.text+0x1f33): undefined reference to `_imp__Perl_sv_de +rived_from' UUID.o:UUID.c:(.text+0x1f72): undefined reference to `_imp__Perl_sv_2i +v_flags' UUID.o:UUID.c:(.text+0x2217): undefined reference to `_imp__Perl_croak +_nocontext' UUID.o:UUID.c:(.text+0x222e): undefined reference to `_imp__Perl_croak +_xs_usage' ...

I believe that Moose::Autobox should work, too; but when I try to install it I get this:

# Tried to use 'Moose::Autobox'. # Error: Can't load 'C:/strawberry/perl/lib/auto/autobox/autobox. +dll' for module autobox: load_file:%1 is not a valid Win32 applicatio +n at C:/strawberry/perl/lib/XSLoader.pm line 68.

I am using Perl 5.16.1 (Strawberry); but I just installed it over a version 5.12.x that was having the same problems. I'm not sure if it maters, but I have another version of gcc on my system besides the one that came with perl:

C:\Users\Nate Glenn>where gcc C:\dev\MinGW\bin\gcc.exe C:\strawberry\c\bin\gcc.exe

Does anyone have any ideas about how I can fix this?


In reply to Windows library errors by nglenn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.