The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Math::GSL::Alien - Easy installation of the GSL library

SYNOPSIS

  # Build.PL
  use Math::GSL::Alien;
  use Module::Build 0.28; # need at least 0.28

  my $builder = Module::Build->new(
    configure_requires => {
      'Math::GSL::Alien' => '1.00', # first release
    },
    ...
    extra_compiler_flags => Alien::GSL->cflags,
    extra_linker_flags   => Alien::GSL->libs,
    ...
  );

  $builder->create_build_script;


  # lib/MyLibrary/GSL.pm
  package MyLibrary::GSL;

  use Math::GSL::Alien; # dynaload gsl

  ...

DESCRIPTION

Provides the Gnu Scientific Library (GSL) for use by Perl modules, installing it if necessary. This module relies heavily on the Alien::Base system to do so. To avoid documentation skew, the author asks the reader to learn about the capabilities provided by that module rather than repeating them here.

The difference between this module and Alien::GSL is that this module will download and install a shared version of the GSL library, whereas Alien::GSL will install a static version of the GSL library. The shared version is needed by Math::GSL, see Alien::GSL-#17. It will also reduce the size of the generated Perl XS libraries (.so, .xs.dll).

SEE ALSO

SOURCE REPOSITORY

https://github.com/PerlAlien/Alien-GSL

AUTHOR

Joel Berger, <joel.a.berger@gmail.com>
Håkon Hægland, <hakon.hagland@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2011-2015 by Joel Berger

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.