Thanks Derek for testing! > On 11 Feb 2016, at 5:21 am, Derek Lamb <de...@boulder.swri.edu> wrote: > > > My PATH is set correctly, but PDL crashes on startup. It reads my > ~/.perldlrc, which is simple: > $ more ~/.perldlrc > #startup script for perldl shell > > require('PDL/default.perldlrc'); > > use PDL::AutoLoader; > use PDL::Graphics::PGPLOT::Window; > > $PDL::AutoLoader::Rescan=1; > 1; > > >> % pdl > > derek@turul:/$ which perl > /Applications/PDL/bin/perl > > derek@turul:/$ which pdl > /Applications/PDL/bin/pdl > > > derek@turul:/$ pdl > perlDL shell v1.357 > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > 'COPYING' in the PDL distribution. This is free software and you > are welcome to redistribute it under certain conditions, see > the same file for details. > ReadLines, NiceSlice, MultiLines enabled > Reading /Users/derek/.perldlrc... > dyld: lazy symbol binding failed: Symbol not found: > _Perl_xs_apiversion_bootcheck > Referenced from: > /Users/derek/local/lib/perl5/darwin-2level/auto/PerlIO/Layers/Layers.bundle > Expected in: dynamic lookup > > dyld: Symbol not found: _Perl_xs_apiversion_bootcheck > Referenced from: > /Users/derek/local/lib/perl5/darwin-2level/auto/PerlIO/Layers/Layers.bundle > Expected in: dynamic lookup > > Trace/BPT trap: 5 > derek@turul:/$ > > > I was surprised to see /Users/derek/local/lib/perl5 in there, because that > comes from my $PERL5LIB environment variable. So I did > > derek@turul:/$ unset PERL5LIB
Yes, your PERL5LIB is trying to load a module compiled against a different version of perl. I wonder how best to handle this scenario? We could issue a message if PERL5LIB is set? Only a reasonably advanced user would set this? > > and tried again: > derek@turul:/$ pdl > perlDL shell v1.357 > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > 'COPYING' in the PDL distribution. This is free software and you > are welcome to redistribute it under certain conditions, see > the same file for details. > ReadLines, NiceSlice, MultiLines enabled > Reading /Users/derek/.perldlrc... > Found docs database > /Applications/PDL/lib/perl5/site_perl/5.22.1/darwin-2level/PDL/pdldoc.db > Type 'help' for online help > Type 'demo' for online demos > Loaded PDL v2.015 (supports bad values) > pdl> > > >> pdl> demo pdl >> pdl> demo pgplot > > these 2 demos worked well. great! You pass I think > >> >> You can also run though the standard test set in the PDL source if you know >> what to expect :-) with: >> >> /Applications/PDL/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, >> 'blib/lib', 'blib/arch')" t/*.t > > This does not work, because there is no blib directory or t directory under > /Applications/PDL Sorry my instructions were unclear. I meant the t/ directory in the PDL source tarball, not the SciPDL one It doesn’t matter, it is just an additional check I was asking experts to make > >> >> Note for the latter you will also need to install XQuartz! (Other than that >> should work on an out of the box OS X install - should not even need XCode) >> >> There are also a couple of trivial Applescript launchers in the >> /Applications/PDL folder > > I tried the 'pdl [here]' and 'pdl [home]' launchers from Finder but for both > get an error like this: ' “pdl [here]” is damaged and can’t be opened. You > should move it to the Trash.' > > I'm not sure what the difference between those two are. Do I need to add > 'source /Applications/PDL/setup_bash' to my .profile, then log out and log in > again so they have the PATH set correctly? > These are just applescripts that set the PATH and run pdl in a new terminal window. I am surprised by the ‘damaged’ message. I didn’t get that when I moved them between computers. Anyone else get this? It could be security settings and I kind of put the .app bundle together in a hacky way, so can look at that again. Karl ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel