in reply to Re^5: Math::GSL installation on Windows XP
in thread Math::GSL installation on Windows XP

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.
  • Comment on Re^6: Math::GSL installation on Windows XP

Replies are listed 'Best First'.
Re^7: Math::GSL installation on Windows XP
by Barnabas (Initiate) on Dec 29, 2010 at 18:21 UTC

    I checked for your ppm package, but the link is down on your website. Could you put it back up?

    Thanks, Jeff

      It's working ok for me:
      C:\_32>ppm remove Math::GSL Math-GSL: uninstalled C:\_32>ppm install Math::GSL Downloading ActiveState Package Repository packlist...done Updating ActiveState Package Repository database...done Downloading www.bribes.org packlist...not modified Downloading bribes packlist...redirect Downloading bribes packlist...done Downloading trouchelle packlist...done Updating trouchelle database...done Downloading sisyphusion packlist...not modified Downloading Math-GSL-0.22...done Unpacking Math-GSL-0.22...done Generating HTML for Math-GSL-0.22...done Updating files in site area...done Downloading Math-GSL-0.22 install script...done Running Math-GSL-0.22 install script...Set up gcc environment - 3.4.5 +(mingw spe cial) Proceed with installation? [yes] A copy of the needed library libgsl-0.dll was found in C:\_32\ap1202\bin\libgsl-0.dll. If this is compatible with the version + used to compile the Perl module, all that is needed to complete the installation is to ensure C:\_32\ap1202\bin\libgsl-0.dll is in your PATH environment variable. Fetch libgsl-0.dll? [no] Aborting download of libgsl-0.dll & libgslcblas-0.dll. done 158 files installed C:\_32>perl -MMath::GSL -e "print $Math::GSL::VERSION" 0.22 C:\_32>
      What's the error you're getting ?

      UPDATE: Aaah ... I see the mistake. In my previous post I gave you the *wrong* full link. It should have been:
      ppm install http://www.sisyphusion.tk/ppm/Math-GSL.ppd
      Cheers,
      Rob