Hi Nick Like every version of OS X it seems the perl version has changed again, it's now perl 5.16. Unfortunately these version changes means PDL etc need to be recompiled!
[perldl list: has anyone experimented with just renaming the /Library directories?] I am not on Mavericks yet but I assume the usual bodge fix will work, i.e. (1) install the latest SciPDL (NOT SciKarl as this dates back to Lion or something) which works with perl 5.12. Note you seem to be several versions back so I am guessing you upgraded straight from Lion or something? (2) sudo ln -s /usr/bin/perl5.12 /usr/local/bin/perl (3) make sure /usr/local/bin is at the front of your PATH. Then 'perl script' ought to work. For 'perldl' you will have to edit the #! line. (Though you can do 'perl /usr/local/bin/perldl' too). Unfortunately the binaries 'pdl' and 'pdl2' won't work - but they just launch a shell so it's not important. (PORTERS: is it possible to change the build of pdl etc so that the perl version is explicit? e.g. use perl5.12 instead of perl that would save a lot of upgrade grief) I will be able to conform all this when I get around to trying Mavericks. Karl On 19/11/2013, at 9:49 AM, Nick Wright <[email protected]> wrote: > Hi Karl > > I've been a long-time Perl / PDL user, for which I'm eternally grateful to > you for starting PDL off and contributing so much to it over the years. I'm > not sure how much you're still involved with it, so apologies if this email > is going to the wrong place. > > I've recently got a new MacBook with OS X Mavericks installed and quickly set > about installing Perl, pgplot, and PDL (via SciKarl - thanks again!). > Unfortunately I don't seem to be able to get Perl/PDL to called pgplot via > its own PGPLOT module. I get errors such as this: > > Can't load > '/Library/Perl/5.8.6/darwin-thread-multi-2level//auto/PDL/Core/Core.bundle' > for module PDL::Core: > dlopen(/Library/Perl/5.8.6/darwin-thread-multi-2level//auto/PDL/Core/Core.bundle, > 1): no suitable image found. Did find: > > /Library/Perl/5.8.6/darwin-thread-multi-2level//auto/PDL/Core/Core.bundle: > mach-o, but wrong architecture at > /System/Library/Perl/5.16/darwin-thread-multi-2level/DynaLoader.pm line 194. > at (eval 1) line 6. > > In fact when I tried to installed PGPLOT-2.0 and I run 'make test' I get a > similar error: > > Can't load 'blib/arch/auto/PGPLOT/PGPLOT.bundle' for module PGPLOT: > dlopen(blib/arch/auto/PGPLOT/PGPLOT.bundle, 2): Symbol not found: _cpgdraw > Referenced from: blib/arch/auto/PGPLOT/PGPLOT.bundle > Expected in: flat namespace > in blib/arch/auto/PGPLOT/PGPLOT.bundle at > /System/Library/Perl/5.16/darwin-thread-multi-2level/DynaLoader.pm line 194, > <STDIN> line 1. > at test1.p line 3. > > (but slightly different). I seem to remember SciKarl and pgplot installing > themselves very effectively when I last set up a new Mac (~2010) so I'm > wondering if this is something in OS X Mavericks, or just if I've forgotten > to do something. > > Attached are the logs of perl -V (log1), perl Makefile.PL (log2), make > (log3), and make test (log4) for your information. > > Hoping you can shed some light on the problem (or at least point me to > someone who could). > > Many thanks, > > Nick > > <log1><log2><log3><log4> _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
