Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: 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 (Parson)
on Nov 08, 2022 at 21:30 UTC ( [id://11148048]=note: print w/replies, xml ) Need Help??


in reply to Math::GSL::SparseMatrix is broken if installed on latest 5.32.1.1 "Strawberry Perl PDL edition", whom to report this issue to?

It would also help to know the various versions you are running. e.g.:

(Edit: 5.30.0 passes, updated comment below)

perl -MPDL -MAlien::GSL -E "say join ' ', Alien::GSL->version, Alien:: +GSL->install_type; say $PDL::VERSION"

On my SP portable 5.28.0 (which passes) this returns

2.3 system 2.077

On 5.30.0 (passes):

2.5 system 2.060

On 5.32.1 (fails):

2.6 system 2.077
  • Comment on Re: 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

Replies are listed 'Best First'.
Re^2: 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 on Nov 08, 2022 at 22:18 UTC

    Thanks for looking into this. For my case (2) (non-PDL SP 5.32.1.1, then PDL installed, then Math::GSL), which passes:

    2.7.1 share 2.081

    For my case (4) (PDL SP 5.32.1.1, then PDL upgraded, then Math::GSL installed), which fails:

    2.6 system 2.081
      Hi,

      Strawberry's PDL build ships with gsl-2.6. (The non-PDL build does not include a gsl library, and I'm guessing that installing PDL into the non-PDL build will not, of itself, install a locatable gsl library.)
      It seems that both "(3)" and "(4)" are using gsl-2.6, whereas both "(1)" and "(2)" are avoiding the issue by installing and using gsl-2.7.1.

      It could be that "(3)" and/or "(4)" did install 2.7.1 (I don't know) but they still find and use the buggy 2.6 version that shipped with Strawberry Perl-5.32.1.1-PDL.
      You just need to ensure that the non-buggy 2.7.1 gets loaded and used.
      At least, that's how it looks to me.

      Cheers,
      Rob

      Maybe it's a GSL version issue? What happens if you force a share install in your case 4 to ensure it upgrades?

      set ALIEN_INSTALL_TYPE=share cpanm Alien::GSL

      You might need to then reinstall Math::GSL:

      cpanm --reinstall Math::GSL

        I did as you suggested, now output line is

        2.7.1 share

        However my test script still fails as "1 1 1", and Math::GSL::gsl_version still says "2.6".

        Same result with freshly unpacked "PDL edition SP 5.32.1.1", then env. variable set, then Alien::GSL and Math::GSL installed cleanly.

        For now I'll continue with non-PDL SP and just install PDL if needed. I think long habit of choosing "PDL edition" as default is from time past, when PDL installation process had issues, it isn't the case in 2022. Thanks everyone for help.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11148048]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-26 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found