gsl-config is a bourne shell script so does not work under windows. It seems Strawberry Perl distributes a simple batch script that does the same task (gsl-config.bat), which is why Math::GSL builds against it.

The build script for Math::GSL also looks for a pkg-config file but the alien's pkgconf dir needs to be in $ENV{PKG_CONFIG_PATH}.

I assume this is all because the Math::GSL build script pre-dates the Alien ecosystem. It hand rolls much of the functionality the alien provides to find cflags, lib dirs and the like. Currently it just appends the Alien's bin dir to $ENV{PATH} when it is a share install (which also means the Alien will be ignored if there is another GSL install earlier in the path), and does not update $ENV{PKG_CONFIG_PATH} on Windows. Ideally it could be updated to use Alien::GSL directly.

After adding the Alien::GSL pkgconfig dir to $ENV{PKG_CONFIG_PATH} the Build.PL script still uses the gsl-config.bat script first. Moving that out of the way and rerunning seems to work, except it then warns:

Unsupported GSL version!!! : 2.7.1 at Build.PL line 85.

So it looks like Math::GSL is not yet set up to work with GSL 2.7, or perhaps it is too conservative in the versions it permits. The list of currently supported versions is here, and I do see a number of 2.7 related issues on the GitHub issue tracker.

This is about as far as I can get at the moment. I would suggest the OP file a bug report on the github issue tracker.


In reply to Re^6: Math::GSL::SparseMatrix is broken if installed on latest 5.32.1.1 "Strawberry Perl PDL edition", whom to report this issue to? by swl
in thread Math::GSL::SparseMatrix is broken if installed on latest 5.32.1.1 "Strawberry Perl PDL edition", whom to report this issue to? by Anonymous Monk

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.