Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Well, I'm not sure, but here are some observations. Anyone more knowledgeable feel free to correct and add info.

There is a file called "Config.pm" in perl's lib. It contains information on what C compiler to use, and what flags to pass to it when compiling any C code for installing a perl module.

The data in Config.pm about these things seem to be dependant on what compiler perl itself was compiled with in the first place, for your computer. ActivePerl is a binary distribution and hence precompiled. For ActivePerl 5.005 this is Microsofts C compiler (cl.exe). I guess this is true also for v 5.6 that you are using.

It should be possible to edit Config.pm and tweak the settings so that you can use gcc instead, e.g. change:

cc='cl.exe'
to:
cc='gcc.exe'
... and then go on to change flags in a suitable way. You must also have gcc in your PATH. I tried doing this yesterday, with mingw's gcc and the help of a friend who knows C. It didn't work out,and we resorted to installing Microsoft C++ instead. Then it worked like a breeze, installing Text::CSV_XS for DBD::CSV.

In order to install a module with C code in it you then do the usual "make", "make test" and "make install". So you need a make program. There is one with gcc but I don't know if it works with perl on Win32, never tried it. There is however a make program from Microsoft called nmake freely available. It works well and you type "nmake", "nmake test" .. etcetera to use it.

/jeorgen


In reply to Re: Installing DBI on Win32 with GCC 2.8.1 by jeorgen
in thread Installing DBI on Win32 with GCC 2.8.1 by Russ

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (9)
    As of 2014-12-23 03:28 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (135 votes), past polls