Skip to content

Installing Math::GSL on Windows 10, MSYS2 #219

@hakonhagland

Description

@hakonhagland

I am trying to install Math::GSL on Windows 10 using MSYS2. Currently I have been able to install the GSL library using Alien::GSL, but when I run perl Build.PL for Math::GSL:

$ perl Build.PL
Checking for GSL using gsl-config
Can't exec "gsl-config": No such file or directory at Build.PL line 296.

***
*** Can't find GSL with gsl-config.
*** Trying with PkgConfig.

Asking PkgConfig with ENV{PKG_CONFIG_PATH}=/usr/lib/pkgconfig:/usr/share/pkgconfig:/lib/pkgconfig:/usr/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/pkgconfig:/usr/libdata/pkgconfig:/usr/local/libdata/pkgconfig:/opt/pkgconfig


***
*** PkgConfig failed with error message: Can't find gsl.pc in any of /usr/lib/pkgconfig /usr/share/pkgconfig /lib/pkgconfig /usr/lib/pkgconfig /usr/share/pkgconfig
use the PKG_CONFIG_PATH environment variable, or
specify extra search paths via 'search_paths'

*** Probably you need to install GSL?
***  On Debian/Ubuntu you can use:
***      sudo apt-get install libgsl0-dev
***  On Mac you can use homebrew (http://brew.sh/):
***      brew install gsl
***  On Fedora/CentOS/RedHat/openSUSE you can use
***      sudo yum install gsl-devel
*** Or get GSL at http://www.gnu.org/software/gsl

I believe this is the same problem as #212 which was fixed in PR #213 (but unfortunately did not make it into version 0.42). I will test with the code in PR #213 and see if it works or what more needs to be added for it to work on MSYS2. If we get it to work we might consider releasing a new version 0.43 to CPAN ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions