hello, i am using "perl 5, version 18, subversion 2 (v5.18.2) built for MSWin32-x86-multi-thread-64int" on windows 7 enterprise(SP1).

I am trying to compile and install a perl module Audio::Scan (.71 version). I downloaded the module from cpan.org, extracted it locally in my machine. It contains readme.win32 text file which states the following:

zlib ---- The included zlib.lib should just work, if not: Download zlib from htt +p://www.zlib.net/zlib123.zip. Build from projects/visualc6/zlib.dsw. Build Win32_LIB_Release Copy zlib.lib into the Audio::Scan win32 direc +tory. Audio::Scan ----------- Install ActivePerl 5.8.8 or 5.10.0. Open command prompt. Run the vcvar +s file, for example C:\Program Files\Microsoft Visual Studio 8\VC\vcv +arsall.bat perl Makefile.PL nmake nmake test ------- END

I followed all the steps till nmake. The step before nmake i executed like this "perl Makefile.PL make=nmake" as it was generating it dmake style by default. This step goes well. But in nmake step, i get a lot of warnings followed by the following error:

win32/zlib.lib(./Win32_LIB_Release/crc32.obj):(.text$mn+0x22): undefin +ed reference to `@__security_check_cookie@4' win32/zlib.lib(./Win32_L +IB_Release/crc32.obj):(.text$mn+0x1be): undefined reference to `@__se +curity_check_cookie@4' c:/perl/site/lib/auto/mingw/bin/../lib/gcc/i68 +6-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: win32/zl +ib.lib(./Win32_LIB_Release/crc32.obj): bad reloc address 0x1be in sec +tion `.text$mn' c:/perl/site/lib/auto/mingw/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../. +./../../i686-w64-mingw32/bin/ld.exe: final link failed: Invalid opera +tion collect2: ld returned 1 exit status NMAKE : fatal error U1077: 'C:\Per +l\site\bin\g++.EXE' : return code '0x1' Stop.

I read this thread Not able to compile perl modules in windows checked the compiler used to compile perl as follows:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC>perl -V:cc

it returned,

cc='gcc';

I am stuck at this point. Any help would be highly appreciated. Sorry for typos if any.


In reply to unable to install Audio::Scan module from cpan by vamank

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.