turnah has asked for the wisdom of the Perl Monks concerning the following question:

I'm attempting to install Text::CSV_XS on perl (v5.10.0 built for MSWin32-x64-multi-thread). This is the version of perl that comes with oracle and have half the program configured for this so can't change to Strawberry (which it works in!)

I've installed Visual C++ Express and attempted to install with CPAN, it falls over at the following:
icl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONS +OLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPL +ICIT_SYS -DUSE_PERLIO -MD -Zi -DNDEBUG -O1 -DVERSION=\"1.20\" -DX +S_VERSION=\"1.20\" "-ID:\oracle\WL10.3.6.0\FR11.1.2.0\perl\lib\CORE" + CSV_XS.c'icl' is not recognized as an internal or external command +,operable program or batch file. NMAKE : fatal error U1077: 'icl' : return code '0x1' Stop.

From hours and hours of Googling, it looks like it is trying to use the icl compiler, which I can see is specified in the MakeFile - CC = icl ... the problem is we don't have the intel compiler and aren't able to pay the x££ for it.

I'm new to all this and trying to get my head around it. Could someone lend a gentle hand to how to get it compiled and installed.

Please let me know if i've missed out anything important.

Many Thanks, Michael

Replies are listed 'Best First'.
Re: Installing Text::CSV_XS
by syphilis (Archbishop) on Jan 06, 2016 at 10:58 UTC
    I've installed Visual C++ Express

    You might not have to do that - in fact you can probably use Strawberry's gcc compiler and dmake (even though you're not using Strawberry Perl).
    But, firstly, could you provide the output of perl -V (that's upper case "V").

    I can see is specified in the MakeFile - CC = icl

    You can change that easily enough by starting a fresh build (from scratch) with perl Makefile.PL CC=cl instead of just perl Makefile.PL
    Or, if you prefer, just amend the current Makefile to specify CC=cl and then re-run nmake.
    In fact, try that first - it might just work ... or it might need additional tweaks.

    Cheers,
    Rob
Re: Installing Text::CSV_XS
by Tux (Canon) on Jan 06, 2016 at 13:53 UTC
    • Current Strawberry is 5.22.1-1, not the ancient 5.10
    • Strawberry comes with cpan

    Did you try using C:\> cpan Text::CSV_XS?

    FWIW, Text::CSV_XS-1.21 has been released an hour ago :)


    Enjoy, Have FUN! H.Merijn
Re: Installing Text::CSV_XS
by Anonymous Monk on Jan 06, 2016 at 09:07 UTC
    Why do you think you're limited to whatever perl comes with oracle?
      The software suppliers have told to use this, so have to stick with it as a business decision i'm afraid. Everything is set up apart from this one module that needs installing

        The software suppliers have told to use this, so have to stick with it as a business decision i'm afraid. Everything is set up apart from this one module that needs installing

        Great, then have them pay for whatever else is needed so they can install that module, simple really