This is a problem that has been solved with a workaround by Chris Tinney:

Problem: SciPDL does not work with the PGPLOT module

The symptoms of this problem arise when you try to use PGPLOT in the
Mac SciPDL package:

/usr/bin/perl -e 'use PDL;'

...works okay, but:

/usr/bin/perl -e 'use PDL; use PGPLOT;'

... gives errors that look like:

Can't load 
'/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/PGPLOT/PGPLOT.bundle'
for module PGPLOT:
dlopen(/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/PGPLOT/PGPLOT.bundle,
1): Symbol not found: _cpgdraw

This is due to a clash of different Perl versions compiled with 32 and
64 bit support.

This seems to be due to having an environment variable set (in at least
one case by the fink setup scripts) that makes perl try to
use 32 bit libraries, when it should use 64 bit ones. Because
SciPDL compiles the pgplot libraries as 64bit only (rather than
a combined 32bit and 64bit library), the pgplot module falls over.

The solution is to ensure that the environment variable:

VERSIONER_PERL_PREFER_32_BIT

is unset (ie. undefined).

...and then this command should run with no complaints:
/usr/bin/perl -e 'use PDL; use PGPLOT;'

-- 
Matthew Kenworthy / Assistant Professor / Leiden Observatory
Niels Bohrweg 2 (#463) / P.O. Box 9513 / 2300 RA Leiden / NL

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to