Hi.

I'm really struggling getting Math::Pari to build in Activeperl. I've installed a C Compiler and I'm at the point where cl.exe runs OK once I have set the environment variables correctly. This is how I did it:

Free MSVC tools + Activestate to compile CPAN Modules

The only step I didn't follow was to install the SDK update because I can't get on the website at the moment. I don't think this is the problem but if anyone knows different please let me know.

Apparently Math::Pari requires the GP/PARI build directory. I don't really know what GP/PARI is, but I've installed the pari-2.1.6 directory plus the cygwin1.dll and gp-2-1-1.exe file as described in the readme file for Windows.

I've looked through quite a bit of documentation but the compilation of Math::Pari is still failing with the following error:

../../pari-2.1.6\src\gp\highlvl.c(77) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory.

This looks like a pretty fundamental problem to me, but I've no idea how to fix it. Can anyone help?

Thanks.

Edited by Chady -- linkified the URL


In reply to Activeperl: Can't install Math::Pari by nairod

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.