I never did compile PGPLOT all this while as I had not any use for it so far. For my upcoming demo of PDL next week, I realized that having PGPLOT working would be useful to show shiny things to the audience.
As far as I understand, there is no explicit declaration in perldl.conf for PGPLOT. I have to have pgplot, the library, installed (for which, I need the g77 installer, which I have. Then, I need to install the Perl PGPLOT module. And then if I build PDL, it will automatically build PDL::Graphics::PGPLOT. So, I downloaded the source code for pgplot, the library, and followed the instructions, but have hit a wall. Here are my steps source for pgplot 5.2.2 is in ~/Projects/pgplot target for pgplot is /usr/local/pgplot Not knowing fully what to do, I edited the file drivers.list to uncomment the PNG and GIF drivers (perhaps my first mistake). Then I executed the following commands (note, I chose the operating system 'bsd' as there is really no choice for Mac OS X -- perhaps this is my second mistake). ~$ cd /usr/local/pgplot /usr/local/pgplot$ sudo ~/Projects/pgplot/makemake ~/Projects/pgplot bsd Reading configuration file: /Users/punkish/Projects/pgplot/sys_bsd/g77_gcc.conf Selecting uncommented drivers from ./drivers.list Found drivers GIDRIV NUDRIV PNDRIV Creating make file: makefile Determining object file dependencies. /usr/local/pgplot$ sudo make g77 -c -O2 grexec.f make: *** No rule to make target `png.h', needed by `pndriv.o'. Stop. Ok. Since I don't really need the png driver with PGPLOT (I want, for now, PGPLOT only to be able to draw the nice charts in pop up windows for demo purpose), I commented out all the drivers except for the NULL driver. /usr/local/pgplot$ sudo ~/Projects/pgplot/makemake ~/Projects/pgplot bsd Reading configuration file: /Users/punkish/Projects/pgplot/sys_bsd/g77_gcc.conf Selecting uncommented drivers from ./drivers.list Found drivers NUDRIV Creating make file: makefile Determining object file dependencies. /usr/local/pgplot$sudo make g77 -c -O2 grexec.f gcc -c -DPG_PPU -O2 -I. /Users/punkish/Projects/pgplot/sys/grdate.c .. a lot more lines .. ranlib: archive member: libpgplot.a(grgmem.o) cputype (16777223) does not match previous archive members cputype (7) (all members must match) ranlib: archive member: libpgplot.a(grtermio.o) cputype (16777223) does not match previous archive members cputype (7) (all members must match) ranlib: archive member: libpgplot.a(gruser.o) cputype (16777223) does not match previous archive members cputype (7) (all members must match) make: *** [libpgplot.a] Error 1 So, I seem to be stuck here and would appreciate a helping hand. Many thanks, -- Puneet Kishor _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
