3

I have installed PDL on a Mac OS X (10.7.3) machine. Evidently the SciPDL installer places PDL.pm in /Library/Perl/5.12/darwin-thread-multi-2level, so I added

use lib '/Library/Perl/5.12/darwin-thread-multi-2level';

at the top of my test script. I now get these errors:

dyld: lazy symbol binding failed: Symbol not found: _Perl_Gthr_key_ptr
  Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/PDL/Core/Core.bundle
  Expected in: flat namespace

dyld: Symbol not found: _Perl_Gthr_key_ptr
  Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/PDL/Core/Core.bundle
  Expected in: flat namespace

Unfortunately these errors don't mean much to me. What do they mean? And what's the solution?

ArgentoSapiens
  • 428
  • 3
  • 15
  • 1
    SciPDL is supposed to be a one-click installer for PDL on Macs, but as you indicate in your answer below installing from CPAN works, too. For anybody else who encounters trouble, feel free to hop on the PDL Users mailing list and let us know: http://pdl.perl.org/?page=mailing-lists – David Mertens Aug 20 '12 at 14:55

1 Answers1

3

Use cpanm to install modules instead of the SciPDL installer. Install cpanm:

  • either bootstrap from the Web:

    curl -L http://cpanmin.us | perl - --self-upgrade
    
  • or with the CPAN client that ships with Perl:

    cpan App::cpanminus
    

Install PDL:

cpanm PDL

This compiles PDL for your specific platform, making sure all the paths are set properly.

daxim
  • 39,270
  • 4
  • 65
  • 132
ArgentoSapiens
  • 428
  • 3
  • 15
  • cpanm will not give you any of the graphics packages, unless you have already installed f77 and other libraries on which the pdl plot packages depend. – Lee Goddard Jan 03 '13 at 09:21