Given your setup, where you have both Strawberry Perl and Cygwin intermixed, and given that we know you've had problems in the past (It's Tuesday, so it must be the day for Trouble With Cpan and Funny-business with Win32 extension module build, as two examples) where Cygwin interferes with your Strawberry setup, I am highly suspicious that now you've got your Strawberry interfering with your Cygwin.

When you're trying to do something in Cygwin -- whether it's installing the module in the Cygwin system perl or trying to run perlbrew to install another perl in Cygwin -- you need to make sure that your paths are all pointing where you think they are, and that they aren't pointing to a conglomeration of Strawberry and Cygwin locations.

echo $PATH which perl which cpan which cpanm which perlbrew which gcc perl -V gcc -v

At this point, your intial post when asking for help with installing anything should include all that information (or the equivalent with cmd.exe's where or powershell's Get-Command, depending on which environment you are trying to use; I listed the linux-style which this time, since you're currently in the Cygwin environment), because otherwise the monks will waste their time assuming you have a sane setup, and only after half a dozen posts or more will it come out that there's interference between the two yet again.

I am curious why you have both Cygwin and Strawberry. It seems to me that you'd have a lot better luck in your perl module endeavors if you'd just pick one and become fluent in it. If there's a good reason, there's a good reason... but then you should consider figuring out how to keep the two completely separate from each other (make sure that your path in cmd.exe only shows Strawberry and nothing Cygwin, and that your path in Cygwin only shows its options and nothing from Strawberry).


In reply to Re: New release of Text::CSV_XS won't build on Windows, prob a gcc input error (CygwinPerl) by pryrt
in thread New release of Text::CSV_XS won't build on Windows, prob a gcc input error (CygwinPerl) by Intrepid

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.