Stefan Evert writes on Fri 9/3/2010 5:45 AM:
> ...
>
> Sorry, my mistake. I confused PGPLOT with PLplot,
> which I had also been trying to get to install
> (unsuccessfully), and thought that PDL checked
> for available of the PGPLOT headers and libraries
> during auto-configuration. But I now see that's
> not the case, and the PGPLOT driver is always
> installed....

No, PDL::Graphics::PGPLOT is always installed.
To get the "PGPLOT driver" you will need to install
the Perl PGPLOT module *and* the pgplot library.

> > The install should probably make a fuss if the
> > external package is not installed at time of build

That would be the PGPLOT module install since
PDL::Graphics::PGPLOT relies on that.  It is more
of a convenience feature that the PDL::Graphics::PGPLOT
is installed regardless since if you decide you
need that, you only need install PGPLOT+pgplot and
not do a full PDL reinstall.

> Yes, that would be very useful (also so that cpan
> knows to auto-install it if we ever get to the
> point where building PDL with cpan or cpanp can be
> recommended).

There has been much discussion on this list
on the dependency issues.  External dependencies
for PDL are the biggest challenge to portability
and we're hoping to move towards Alien::XXX
modules to remedy that problem (from the perl
install point of view).

> > separately from PDL (as you discovered). Indeed
> > it would be annoying if you forgot to install the
> > PGPLOT package when building PDL (I know I have
> > done a fair few times :) and then had to rebuild
> > it again after you have installed it. Now you just
> > need to install it from CPAN which is easier.
> 
> Except the automatic install with "cpan" doesn't
> work on Mac OS X, because Makefile.PL fails to
> locate my MacPorts-installed version of PGPLOT.
> :-( But a manual install works fine and the PDL
> demos now run without problems.

If you have the PGPLOT module installed, in a 
non-standard location then you'll need to add
that to the PERL5LIB environment variable so that
it can be found. 

If you mean the PGPLOT module Makefile.PL doesn't
handle custom locations easily, I suggest putting
effort into getting PLplot working instead as we
would like to move to that as the standard 
dependency for 2D plotting in PDL.

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

Reply via email to