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 _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
