ahhhh damn! From perldl.conf
# Try to build Graphics/TriD
#
# There are problems with the build on OS-X, so we turn it off by default
# for such systems
#
WITH_3D => $^O eq "darwin" || $^O eq 'MSWin32' ? 0 : undef,
I guess I am sol using PDL for graphics because I am on a Mac, no?
On Sat, Aug 29, 2009 at 12:03 AM, P Kishor<[email protected]> wrote:
> 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_VERSION = 2.4.4
> -- PDL version >= 2.4.1. Enabling Perl/PDL examples in tests
> -- 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.
>
> CMake Error at cmake/modules/plplot.cmake:71 (math):
> math cannot parse the expression: "0*1000000 + 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.
>
> .0*1000 + 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.
>
> .0": syntax error, unexpected exp_DIVIDE, expecting exp_OPENPARENT or
> exp_NUMBER (29)
> Call Stack (most recent call first):
> cmake/modules/pdl.cmake:71 (transform_version)
> cmake/modules/plplot.cmake:428 (include)
> CMakeLists.txt:82 (include)
>
>
>
> I thought plplot was the prerequisite for PDL::Graphics::PLplot, but
> it seems to be the other way around. Now I am really confused and
> stuck.
>
> Suggestions welcome.
>
>
>
> On Fri, Aug 28, 2009 at 8:35 PM, P Kishor<[email protected]> wrote:
>> On Fri, Aug 28, 2009 at 7:59 PM, P Kishor<[email protected]> wrote:
>>> In my quest to learn PDL, I am trying to create simple 2D arrays of z
>>> values and plotting them, kinda like possible with this little R
>>> program at http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=27
>>>
>>> I have several questions in this regard, from the simplest, most
>>> complex to the most complex but possibly simplest --
>>>
>>> 1. How do I do the above?
>>>
>>> 2. How do I determine what PDL sub-modules I have already installed?
>>>
>>> 3. How do I install PDL::Graphics::TriD on a Mac with Leopard 10.5.8?
>>> I don't have this particular module installed, and when I tried to, I
>>> got a boatload of error messages, so many that I don't know even where
>>> to start. How do I capture these messages so I can try to trace back
>>> as to what is failing? The final message from the failed cpan session
>>> is
>>>
>>> _XS_PDL_plgcol0a in PLplot.o
>>> _XS_PDL_plParseOpts in PLplot.o
>>> _XS_PDL_plAllocGrid in PLplot.o
>>> _XS_PDL_plAlloc2dGrid in PLplot.o
>>> _XS_PDL_plstripc in PLplot.o
>>> _XS_PDL_plgriddata in PLplot.o
>>> ld: symbol(s) not found
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [../../blib/arch/auto/PDL/Graphics/PLplot/PLplot.bundle] Error
>>> 1
>>> make[1]: *** [subdirs] Error 2
>>> make: *** [subdirs] Error 2
>>> CHM/PDL-2.4.4.tar.gz
>>> /usr/bin/make -- NOT OK
>>> Running make test
>>> Can't test without successful make
>>> Running make install
>>> Make had returned bad status, install seems impossible
>>> Failed during this command:
>>> CHM/PDL-2.4.4.tar.gz : make NO
>>>
>>> cpan[2]>
>>>
>> ..
>>
>>
>> So, seems like I don't have PLplot installed which is causing
>> PDL::Graphics::TriD to choke up. So, I downloaded PLplot and found
>> that it doesn't use the more familiar (to me) GNU autoconf mechanism.
>> Looking at its cmake instructions, I have come up with the following,
>> but before I run the following incantation and bugger up my machine, I
>> am seeking your advice -- is this suitable for a Mac OS X Leopard
>> installation?
>>
>> ~/Projects $ svn co
>> http://plplot.svn.sourceforge.net/svnroot/plplot/trunk plplot
>> download a boatload of stuf
>> ~/Projects $ cd plplot
>> ~/Projects/plplot $ ls
>> .gitignore README.emacs include/
>> .svn/ README.release lib/
>> AUTHORS README.testing old/
>> CMakeLists.txt SERVICE pkgcfg/
>> COPYING.LIB ToDo
>> plplot-c-style.el
>> ChangeLog bindings/
>> plplot_test/
>> Copyright cmake/ rpm/
>> FAQ config.h.cmake scripts/
>> INSTALL data/ src/
>> NEWS debian/ sys/
>> OLD-README.release doc/
>> uncrustify.cfg
>> PROBLEMS drivers/ utils/
>> README examples/ www/
>> README.Release_Manager_Cookbook fonts/
>> README.developers git/
>>
>> # adapted from
>> http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.4/os-notes.html
>> ~/Projects/plplot $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/plplot .
>>>& cmake.out
>> ~/Projects/plplot $ make >& make.out
>>
>> #(optional, requires -DBUILD_TEST=ON option for cmake)
>> ~/Projects/plplot $ ctest >& ctest.out
>> ~/Projects/plplot $ make install >& make_install.out
>> ~/Projects/plplot $ cd /usr/local/plplot/share/plplot<version>/examples/
>> /usr/local/plplot/share/plplot<version>/examples/ $ make >& make_examples.out
>> /usr/local/plplot/share/plplot<version>/examples/ $ ./plplot-test.sh
>>>& plplot-test.sh.out
>>
>> And, then, if the above works, then retry
>>
>> cpan> install PDL::Graphics::TriD
>>
>
>
>>
--
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
Sent from Ft Myer, VA, United States
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl