On 2009-08-29 13:02-0400 Hazen Babcock wrote:

> 
> This just came up on the PDL mailing list. Any thoughts on how the build
> might have failed like this?

Yep.  The build system did not anticipate this user's case (PDL installed
but not PDL::Graphics::PLplot).  I have now (revision 10359) implemented a
soft landing (warning message and continue) for this case

>       From: P Kishor <[email protected]>
> Date: August 29, 2009 12:03:52 AM EDT
> To: perldl <[email protected]>
> Subject: Re: [Perldl] surfaces with PDL
> Reply-To: [email protected]
> 
> sorry to be replying here to my own rantings... I went ahead and
> followed the instructions listed below to install plplot, but received
> the following error

> -- PDL_PLPLOT_VERSION = Can't locate PDL/Graphics/PLplot.pm in @INC
> (@INC contains: /usr/local/lib/perl5/5.8.8/darwin-2level
> /usr/local/lib/perl5/5.8.8
> /usr/local/lib/perl5/site_perl/5.8.8/darwin-2level
> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
> .).
> BEGIN failed--compilation aborted.

This message comes from cmake/modules/pdl.cmake within the PLplot build.
What is going on is

perl -MPDL::Graphics::PLplot '-e print "$PDL::Graphics::PLplot::VERSION"'

fails on this guy's system (presumably because PDL::Graphics::PLplot is not
available).  I assumed before that PDL::Graphics::PLplot would be installed
if PDL was installed, but I have now check specifically for
PDL::Graphics::PLplot.

N.B. the PLplot build only pays attention to Perl/PDL for the
purposes of deciding whether to install and test the pdl examples or not.
So there is no major circular dependency here.  If perl, perl/pdl, or (now)
perl PDL::GRAPHICS:PLplot are not installed, you just get a soft landing and
the rest of the PLplot build and install continues.

In sum, Plplot must be installed and built (with or without the perl/pdl
examples) before PDL::GRAPHICS::PLplot can be (re)built.  (That perl module
only depends on the PLplot library and not the Perl/PDL examples that
happen to be contained in the PLplot source tree.)

After that perl module is (re)built you are free to ignore the perl/pdl
examples within PLplot, or do another PLplot build and install to install
them in the correct place and run tests on them.

I am not on the PDL list, but feel free to quote this message there.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to