macosperlinstallationpdl

How can I fix this PDL installation?


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?


Solution

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

    Install PDL:

    cpanm PDL
    

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