anneli has asked for the wisdom of the Perl Monks concerning the following question:
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fun (pain) installing Math::Pari on cygwin.
by syphilis (Archbishop) on Oct 05, 2011 at 06:34 UTC | |
by anneli (Pilgrim) on Oct 05, 2011 at 06:40 UTC | |
by syphilis (Archbishop) on Oct 05, 2011 at 07:26 UTC | |
by salva (Canon) on Oct 05, 2011 at 07:43 UTC | |
by syphilis (Archbishop) on Oct 05, 2011 at 08:12 UTC | |
| |
|
Re: Fun (pain) installing Math::Pari on cygwin.
by MrCricket (Sexton) on Oct 06, 2011 at 20:12 UTC | |
by anneli (Pilgrim) on Oct 06, 2011 at 22:41 UTC | |
by Anonymous Monk on May 01, 2013 at 21:07 UTC |