Adam,
To get PDL::Graphics::PGPLOT to work, you need to check a few things:
1) The PGPLOT demos work (you say they do),
2) The cpgdemo (in the PGPLOT distribution) works,
3) The Perl PGPLOT module passes tests and installs (if you do $ perl -e
'use PGPLOT;' you get no errors),
4) You aren't having dynamic loading issues: /etc/ld.so.conf should have
'/usr/local/pgplot' in it. If not, add it, then run as root:
/sbin/ldconfig.
If all of those pass, and you still have problems, let us know.
For your x64 installation, you need to change some of the driver files.
Do 'grep -n 64-bit drivers/*' in your PGPLOT source directory to find these.
Derek
Adam Ginsburg wrote:
I've been trying for about a week to get PGPLOT running in PDL... I
had a working version a while ago but I had to reinstall linux and
have not been able to get back to my original happy state.
pgplot works (at least, the pgplot demos work), and the PGPLOT CPAN
install seemed to work, but the tests failed. Below are various
outputs:
CPAN install PGPLOT:
ExtUtils::F77: Version 1.15
Loaded ExtUtils::F77 version 1.15
Found compiler g77
ExtUtils::F77: Using system=Linux compiler=G77
Checking for gcc in disguise:
Compiler is gcc version 4.1.2 20060613 (prerelease) (Ubuntu
4.1.1-2ubuntu5)
Runtime: -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib
-L/usr/lib -lg2c -lm -L/usr/lib/gcc/i486-linux-gnu/4.1.2 -lgcc
ExtUtils::F77: Validating
-L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib -L/usr/lib -lg2c
-lm -L/usr/lib/gcc/i486-linux-gnu/4.1.2 -lgcc [ok]
ExtUtils::F77: Compiler: g77
ExtUtils::F77: Cflags: -O
Checking if your kit is complete...
Looks good
Writing Makefile for PGPLOT
cp PGPLOT.pm blib/lib/PGPLOT.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap
/usr/share/perl/5.8/ExtUtils/typemap -typemap typemap PGPLOT.xs >
PGPLOT.xsc && mv PGPLOT.xsc PGPLOT.c
Please specify prototyping behavior for PGPLOT.xs (see perlxs manual)
cc -c -I/usr/local/pgplot/ -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"2.19\" -DXS_VERSION=\"2.19\" -fPIC
"-I/usr/lib/perl/5.8/CORE" PGPLOT.c
Running Mkbootstrap for PGPLOT ()
chmod 644 PGPLOT.bs
rm -f blib/arch/auto/PGPLOT/PGPLOT.so
LD_RUN_PATH="/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib" cc
-shared -L/usr/local/lib PGPLOT.o -o blib/arch/auto/PGPLOT/PGPLOT.so
\
-L/usr/X11R6/lib -L/usr/local/pgplot/ -lpgplot -lcpgplot
-lX11 -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib -L/usr/lib
-lg2c -lm -L/usr/lib/gcc/i486-linux-gnu/4.1.2 -lgcc \
chmod 755 blib/arch/auto/PGPLOT/PGPLOT.so
cp PGPLOT.bs blib/arch/auto/PGPLOT/PGPLOT.bs
chmod 644 blib/arch/auto/PGPLOT/PGPLOT.bs
Manifying blib/man3/PGPLOT.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
Default Device for plot tests [recommend /XSERVE] ? /xs
============== Running test1.p ==============
Can't load 'blib/arch/auto/PGPLOT/PGPLOT.so' for module PGPLOT:
blib/arch/auto/PGPLOT/PGPLOT.so: undefined symbol: pgarro_ at
/usr/lib/perl/5.8/DynaLoader.pm line 225, <STDIN> line 1.
at test1.p line 3
Compilation failed in require at test1.p line 3, <STDIN> line 1.
BEGIN failed--compilation aborted at test1.p line 3, <STDIN> line 1.
============== Running test2.p ==============
Testing advanced point and line plot routines...
PGPLOT module version 2.19
Can't locate auto/PGPLOT/pgqinf.al in @INC (@INC contains: blib/lib
blib/arch /etc/perl /usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
test2.p line 9
.....etc......
(pgqinf.al does not seem to exist)
perldl> use PDL::Graphics::PGPLOT
Can't load '/usr/local/lib/perl/5.8.8/auto/PGPLOT/PGPLOT.so' for
module PGPLOT: /usr/local/lib/perl/5.8.8/auto/PGPLOT/PGPLOT.so:
undefined symbol: pgarro_ at /usr/lib/perl/5.8/DynaLoader.pm line 225,
<DATA> line 206.
at /usr/lib/perl5/PDL/Graphics/PGPLOT/Window.pm line 2221
Compilation failed in require at
/usr/lib/perl5/PDL/Graphics/PGPLOT/Window.pm line 2221, <DATA> line
206.
BEGIN failed--compilation aborted at
/usr/lib/perl5/PDL/Graphics/PGPLOT/Window.pm line 2221, <DATA> line
206.
Compilation failed in require at /usr/lib/perl5/PDL/Graphics/PGPLOT.pm
line 148, <DATA> line 206.
BEGIN failed--compilation aborted at
/usr/lib/perl5/PDL/Graphics/PGPLOT.pm line 148, <DATA> line 206.
Compilation failed in require at (eval 45) line 4, <DATA> line 206.
BEGIN failed--compilation aborted at (eval 45) line 4, <DATA> line 206.
(in case this helps anyone...)
[EMAIL PROTECTED]:/$ ldd /usr/local/lib/perl/5.8.8/auto/PGPLOT/PGPLOT.so
linux-gate.so.1 => (0xffffe000)
libX11.so.6 =>
/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/libX11.so.6
(0xb7dbb000)
libg2c.so.0 =>
/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/libg2c.so.0
(0xb7d94000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7d60000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c2c000)
libXau.so.6 =>
/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/libXau.so.6
(0xb7c29000)
libXdmcp.so.6 =>
/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/libXdmcp.so.6
(0xb7c24000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7c20000)
/lib/ld-linux.so.2 (0x80000000)
I've also run into problems installing the PGPLOT module on an x64
system, but that was unrelated - PGPLOT failed to compiled.
Thanks,
Adam
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl