http://qs321.pair.com?node_id=11148079


in reply to Re^5: Math::GSL::SparseMatrix is broken if installed on latest 5.32.1.1 "Strawberry Perl PDL edition", whom to report this issue to?
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?

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.

  • Comment on 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?
  • Select or Download Code