Venerable monks,

I'm trying to get Net::SSH::Perl up to do some nifty stuff, which depends (transitively!) on Math::Pari. Unfortunately, I'm having more fun getting Pari installed than I'd necessarily like. This is probably because my perl's in Cygwin on Windows 7, and further, my Windows installation is 64-bit (but Cygwin's 32).

For those curious, the build ends in this way:

gcc-4 -c -I .././pari-2.1.7/src -I .././pari-2.1.7/src/headers -I ../ +./pari-2.1.7/src/graph -I . -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ +-g3 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include + -DUSEIMPORTLIB -O3 -DVERSION=\"\" -DXS_VERSION=\"\" -Derr=pari_er +r -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o compat.o .././pari-2 +.1.7/src/language/compat.c gcc-4 -c -I .././pari-2.1.7/src -I .././pari-2.1.7/src/headers -I ../ +./pari-2.1.7/src/graph -I . -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ +-g3 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include + -DUSEIMPORTLIB -O3 -DVERSION=\"\" -DXS_VERSION=\"\" -Derr=pari_er +r -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o base3.o .././pari-2. +1.7/src/basemath/base3.c gcc-4 -c -I .././pari-2.1.7/src -I .././pari-2.1.7/src/headers -I ../ +./pari-2.1.7/src/graph -I . -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ +-g3 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include + -DUSEIMPORTLIB -O3 -DVERSION=\"\" -DXS_VERSION=\"\" -Derr=pari_er +r -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o mp.o .././pari-2.1.7 +/src/kernel/none/mp.c {standard input}: Assembler messages: {standard input}:32982: Error: operand type mismatch for `div' make[1]: *** [mp.o] Error 1 make[1]: Leaving directory `/home/arlen/.cpan/build/Math-Pari-2.010806 +05-VlhOm9/libPARI' make: *** [libPARI/libPARI.a] Error 2

The operand type mismatch is what makes me think this might be a 32/64-bit thing. The same result happens regardless of whether I invoke cpanm Math::Pari, cpan -i Math::Pari, or enter ~/.cpan/build/Math-Pari-... and perl Makefile.PL; make thence.

Math::Pari's INSTALL mentions some assembly detection magic, but states that it'll default to machine=none, which is meant to use portable C. That does seem to be the case here (and I tried forcing it in the last example, to the same effect).

I'm going to give this a go with ActivePerl now (maybe a native solution will be better? I'm not sure! The package manager seems to lack Net::SSH::Perl, but I don't really know what I'm doing with this thing (ActivePerl) now that I've installed it), but I'm not hopeful. If any monks have any advice, I'd be most appreciative.

Anne

brief update: found a repository for ActivePerl that included Math::Pari, having fun seeing how far I can kick it!


In reply to Fun (pain) installing Math::Pari on cygwin. by anneli

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.