P Kishor 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? >>
PDL::Graphics::TriD is the 3d graphics display module which includes some surface plot routines. PDL::Graphics::PLplot has 2d graphics routines for plotting surfaces as well. >> 2. How do I determine what PDL sub-modules I have already installed? >> A quick check is to start the perldl shell and search the documentation. If a module is not installed then its docs will not be built. A more official check would be to try to use the module. The perldl.conf file lists what modules with external dependencies are to be built or attempted to be built. >> 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? It is much easier to debug build problems with a manual config and install: 1. download latest PDL-2.4.4_08.tar.gz 2. edit perldl.conf as desired 3. perl Makefile.PL 4. make 5. make test 6. make doctest I usually run this as (in bash) ( set -x; perl Makefile.PL && make && make test && make doctest ) 2>&1 | tee -a ../pdl-24408-log.txt to collect all the build output, warnings, or errors. They are verbose but helpful in the case of problems. >> 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. PLplot does not have anything to do with TriD. They are two independent submodules. > 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? > Take a look at the plplot wiki for specific build directions for OSX. Cheers, Chris _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
