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

Thanks syphilis for the tips. The %SHORTPATH%\PKGCON~1\bin\PkgConfig is the directory where the "gsl" directory is located, which contains *.h gsl library files. On another message board, it was recommended that I write the path using short directory names.

How do I get the dll build of the gsl library? It appears that I have the static library instead, and after following your instructions for CPATH and LIBRARY_PATH, the 0.22 build still appears to have the errors you were describing.

  • Comment on Re^2: Math::GSL installation on Windows XP

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

    Hey, I could still use some help on acquiring the dll's for GSL. Anyone who can help me with this?

      Sorry - missed the earlier post.
      For a short time only you can grab the 32-bit gsl-0.14 library (libs, headers, dll's and docs) for Win32 here. (Built using MinGW.)

      If you unpack it to anywhere other than C:/_32/gsl_dyn you'll have to edit the paths accordingly in lib/pkgconfig/gsl.pc (which is a trivial task).
      MD5: ea5f96e769f17e66527aee293579c8de SHA1: cabef95aef3098d8197d0c0e84e5183092e55ebe SHA256: 163faf867119f7678e7554e70c689336ddd4cb23753aed67b8063467533b40 +31
      (Can also provide a 64-bit MinGW64 build, but that hasn't been uploaded yet - and won't be unless someone requests it.)

      Cheers,
      Rob

      UPDATE: You might need to create copies of lib/libgsl.dll.a and lib/libgslcblas.dll.a (in the same folder) named libgsl.a and libgslcblas.a ... I think that should be unnecessary as Math::GSL uses ExtUtils::PkgConfig, but worth bearing in mind just in case you have trouble with the linking during the Math::GSL build.

        Your advice helped me to install the Math::GSL 0.22, but I found that in order to use the math functions that I need for Math::GSL 0.22, I have to use gsl v 1.13, which I haven't installed yet. I tried using cgywin to build the gsl v1.13 sourcecode, but it seems to have trouble with my gcc compiler.

        The config.log file says the following:

        configure:3388: $? = 0 configure:3377: gcc -v >&5 Reading specs from C:/Perl/site/lib/auto/MinGW/bin/../lib/gcc/mingw32/ +3.4.5/specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-g +nu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw - +-enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,j +ava --disable-win32-registry --disable-shared --enable-sjlj-exception +s --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boe +hm --disable-libgcj-debug --enable-interpreter --enable-hash-synchron +ization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw-vista special r3) configure:3388: $? = 0 configure:3377: gcc -V >&5 gcc.exe: `-V' option must have argument configure:3388: $? = 1 configure:3377: gcc -qversion >&5 gcc.exe: unrecognized option `-qversion' gcc.exe: no input files configure:3388: $? = 1 configure:3410: checking for C compiler default output file name configure:3432: gcc conftest.c >&5 cc1.exe: ROOTDIR/gsl_nan.h: not a directory configure:3436: $? = 1 configure:3473: result: configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "gsl" | #define PACKAGE_TARNAME "gsl" | #define PACKAGE_VERSION "1.13" | #define PACKAGE_STRING "gsl 1.13" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "gsl" | #define VERSION "1.13" | #define RELEASED /**/ | /* end confdefs.h. */ | #include <stdio.h> | int | main () | { | FILE *f = fopen ("conftest.out", "w"); | return ferror (f) || fclose (f) != 0; | | ; | return 0; | } configure:3479: error: in `/cygdrive/ROOTDIR/gsl-1.13': configure:3483: error: C compiler cannot create executables See `config.log' for more details.

        Any suggestions?