The current version is 1.14 - best to grab it.

With Cygwin, I think you'll need to use *their* gcc compiler, and then cross-compile for Windows (otherwise you'll end up with a gsl library that can be used only with Cygwin). I think the error you see is because you're using MinGW's gcc with Cygwin - the config.log would probably contain a diagnostic that pinpoints the specific problem.

I use the msys shell with MinGW, but if you want to build using Cygwin, try:

./configure --disable-static --enable-shared --host=i686-pc-mingw32 --build=i686-pc-cygwin CXX="g++ -mno-cygwin" CC="gcc -mno-cygwin" host_alias=i686-pc-mingw32 --prefix=/cygdrive/c/wherever && make && make install

and that should build it for native Win32.
Because it's a cross-compilation, I don't think there's any way of running 'make check'. Also, I think there might be some redundancy in the configure options I've provided - but that incantation has worked fine for me on the occasions that I've tried it. (Haven't tried it with gsl, but.)
See how that goes. (/msg me when you reply, otherwise I might miss it.)

Btw, I have now built Math::GSL-0.22 ppm packages - which you can install with:

(Update: The following command has been corrected ... was originally incorrect.)
ppm install http://www.sisyphusion.tk/ppm/Math-GSL.ppd

That should also install the gsl dll that's needed (via a post-install script that should launch automatically as part of the 'ppm install' process).

Cheers,
Rob

Update: I'm a bit out of date with Cygwin. On my Cygwin-1.7.7, I need to install gcc-3.4.4 (via Cygwin's setup.exe) and run:

./configure --disable-static --enable-shared --host=i686-pc-mingw32 --build=i686-pc-cygwin CXX="g++-3 -mno-cygwin" CC="gcc-3 -mno-cygwin" host_alias=i686-pc-mingw32 --prefix=/cygdrive/c/wherever && make && make install

This is actually being run as I write ... (update: and ran fine).
My Cygwin-1.7.7 uses gcc-4.3.4 by default, which doesn't accommodate cross-compilation.

With Cygwin-1.5.x (which already uses gcc-3.x.x), the original incantation should work fine.

In reply to Re^6: Math::GSL installation on Windows XP by syphilis
in thread Math::GSL installation on Windows XP by Barnabas

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.