On 2011-04-14 17:11-0600 Derek Lamb wrote:

> Please disregard this.  It turns out that, while the PDL function
plAlloc2dGrid calls PLplot's function of the same name, the PDL
function plAllocGrid does its thing with a call to New--it does not
duplicate a PLplot function of the same name, because there is no such
thing.  I'll keep hunting... [for the reason for the plshades segfault]

Hi Derek:

Our 16th example for Perl/PDL (examples/perl/x16.pl) uses both
plAllocGrid and plshades.  So my advice is to try to get that standard
example to work on your platform with the svn trunk version of PLplot
(which you can access following the instructions at
http://sourceforge.net/scm/?type=svn&group_id=2915 and which will turn
into the 5.9.8 release of PLplot fairly soon).

I have just had success with that example (and all the others in
examples/perl) here using the svn trunk version of PLplot, and updated
the build and install instructions for the latest version of
PDL::Graphics::PLplot (and the svn trunk version of PLplot) in
examples/perl/README.perldemos appropriately.  Let me know if you are
having any difficulty following those instructions or you have any
suggestions for improvements.  They are a bit complicated because of
previously deprecated functions which are now removed in the svn trunk
version of PLplot, and because you have to be careful to always access
the latest versions of both the svn trunk PLplot install and the
latest PDL::Graphics::PLplot install rather than some old system
version of either (which will produce segfaults similar to what you
have encountered).  Part of that care is you have to replace the old
PDL::Graphics::PLplot system install with symlinks to the latest
version.  If there is a better way to do that in Perl/PDL, I haven't
discovered it, yet.  Perhaps the issue is PDL::Graphics::PLplot is a
subset of the PDL package rather than being organized as a completely
independent software package that simply uses PDL as a prerequisite.

Good luck, and let me know how it goes.

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
__________________________

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to