Hi Matthew, Thanks a lot. I guess I eagerly wait for the instructions on getting pgplot to work. I do have a working pgplot version in /usr/local/prgplot (./pgdemo1 works). But I cannot pass from the following in your instructions:
./bin/perl -MCPAN -e 'install PGPLOT;' I get all kind of errors: [antonio-haless-macbook:~/myperl] ahales% ./bin/perl -MCPAN -e 'install PGPLOT;' CPAN: Storable loaded ok (v2.19) Going to read /Users/ahales/.cpan/Metadata Database was generated on Tue, 29 Sep 2009 11:27:07 GMT Running install for module 'PGPLOT' CPAN: YAML loaded ok (v0.70) Running make for K/KG/KGB/PGPLOT-2.20.tar.gz CPAN: checksum security checks disabled because Digest::SHA not installed. Please consider installing the Digest::SHA module. CPAN: Time::HiRes loaded ok (v1.9715) CPAN: Compress::Zlib loaded ok (v2.021) PGPLOT-2.20/ PGPLOT-2.20/arrays.c PGPLOT-2.20/arrays.h PGPLOT-2.20/CHANGES PGPLOT-2.20/HELP PGPLOT-2.20/HINTS.irix PGPLOT-2.20/HINTS.osf PGPLOT-2.20/INSTALL PGPLOT-2.20/INSTALL-MacOSX PGPLOT-2.20/INSTALL-Win32 PGPLOT-2.20/LICENSE PGPLOT-2.20/Makefile.PL PGPLOT-2.20/MANIFEST PGPLOT-2.20/META.yml PGPLOT-2.20/pgcompatbility.p PGPLOT-2.20/pgfun.c PGPLOT-2.20/PGPLOT.pm PGPLOT-2.20/PGPLOT.xs PGPLOT-2.20/README PGPLOT-2.20/test.img PGPLOT-2.20/test.pl PGPLOT-2.20/test1.p PGPLOT-2.20/test10.p PGPLOT-2.20/test11.p PGPLOT-2.20/test12.p PGPLOT-2.20/test2.p PGPLOT-2.20/test3.p PGPLOT-2.20/test4.p PGPLOT-2.20/test5.p PGPLOT-2.20/test6.p PGPLOT-2.20/test7.p PGPLOT-2.20/test8.p PGPLOT-2.20/test9.p PGPLOT-2.20/typemap CPAN: File::Temp loaded ok (v0.20) CPAN.pm: Going to build K/KG/KGB/PGPLOT-2.20.tar.gz ExtUtils::F77: Version 1.16 Loaded ExtUtils::F77 version 1.16 Found compiler g77 ExtUtils::F77: Using system=Darwin compiler=G77 ExtUtils::F77: Unable to guess and/or validate system/compiler configuration ExtUtils::F77: Will try system=Generic Compiler=G77 Checking for gcc in disguise: Compiler is gcc version 4.0.1 (Apple Inc. build 5493) ExtUtils::F77: Validating -L/usr/local/lib/gcc/i686-apple-darwin8.8.1/3.4.0/../../.. -L/usr/lib -lg2c -lm -L/usr/lib/gcc/i686-apple-darwin9/4.0.1 -lgcc [ok] ExtUtils::F77: Cflags: -O Checking if your kit is complete... Looks good Writing Makefile for PGPLOT cp PGPLOT.pm blib/lib/PGPLOT.pm /Users/ahales/myperl/bin/perl /Users/ahales/myperl/lib/5.8.9/ExtUtils/xsubpp -typemap /Users/ahales/myperl/lib/5.8.9/ExtUtils/typemap -typemap typemap P GPLOT.xs > PGPLOT.xsc && mv PGPLOT.xsc PGPLOT.c Please specify prototyping behavior for PGPLOT.xs (see perlxs manual) cc -c -I/user/local/pgplot/ -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -O3 -DVERSION=\"2.20\" -DXS_VERSI ON=\"2.20\" "-I/Users/ahales/myperl/lib/5.8.9/darwin-2level/CORE" PGPLOT.c PGPLOT.xs:14:47: error: cpgplot.h: No such file or directory PGPLOT.c: In function 'XS_PGPLOT_pgask': PGPLOT.c:107: error: 'Logical' undeclared (first use in this function) PGPLOT.c:107: error: (Each undeclared identifier is reported only once PGPLOT.c:107: error: for each function it appears in.) PGPLOT.c:107: error: syntax error before 'flag' PGPLOT.xs:72: error: 'flag' undeclared (first use in this function) PGPLOT.c: In function 'XS_PGPLOT_pgbin': PGPLOT.c:275: error: 'Logical' undeclared (first use in this function) PGPLOT.c:275: error: syntax error before 'center' PGPLOT.xs:150: error: 'center' undeclared (first use in this function) PGPLOT.c: In function 'XS_PGPLOT_pghi2d': PGPLOT.c:989: error: 'Logical' undeclared (first use in this function) PGPLOT.c:989: error: syntax error before 'center' PGPLOT.xs:475: error: 'center' undeclared (first use in this function) PGPLOT.xs: In function 'boot_PGPLOT': PGPLOT.xs:1424: error: 'cpgdraw' undeclared (first use in this function) PGPLOT.xs:1425: error: 'cpgmove' undeclared (first use in this function) PGPLOT.xs:1426: error: 'cpgqcir' undeclared (first use in this function) PGPLOT.xs:1427: error: 'cpgsci' undeclared (first use in this function) PGPLOT.xs:1428: error: 'cpgpt1' undeclared (first use in this function) make: *** [PGPLOT.o] Error 1 KGB/PGPLOT-2.20.tar.gz /usr/bin/make PREFIX=~/myperl PREFIX=~/myperl -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible [antonio-haless-macbook:~/myperl] ahales% Matthew Kenworthy wrote: > On Tue, Sep 29, 2009 at 2:11 PM, Antonio Hales <[email protected]> wrote: > >> Hi Matt, >> >> I gave your fresh install a try; the old approach using the Macbook's perl >> was full of errors. >> >> Now I made it to the point of compiling and testing OpenGL. It worked fine, >> but: >> >> [antonio-haless-macbook:~/myperl/PDL] ahales% ../bin/perl Makefile.PL >> PREFIX=~/myperl >> DEPENDENCY ERROR: USE_POGL requires at least OpenGL-0.58_004! at Makefile.PL >> line 398. >> > > I forgot to add a 'make install' when you're in the OpenGL-0.58-005 > directory. I'm updating the instructions now: > > http://mmtao.org/~mattk/nelse/2009/09/28/compile_perl_from_scratch/ > > The end of the page is abrupt, as I haven't got GLX to work with PDL, > but I'll update it as Chris' tests progress. To be honest, I was happy > to get OpenGL and the rotating teapots. > > When I first use CPAN to install modules in my local Perl, there's an > option to make sure that PREFIX=~/myperl is added to the end of all > perl Makefile.pl commands - but I'm not sure how to check that for my > installation, so I've been playing it safe and sticking it on the end > anyway. > > With the perldl developer's blessings, I'll add this to the wiki when > I can get it all running smoothly and expand the instructions. I'll > also add info on getting PGPLOT compiled in as well, I use that all > the time.... > > Matt > > -- ----------------------------- Dr. Antonio Hales ALMA Commissioning Scientist Joint ALMA Office Av Apoquindo 3846 Piso 19 Santiago - Chile ----------------------------- (+56) 2 467 6236 (+56) 9 6 2062609 ----------------------------- _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
