|
From: Thomas M. <mat...@ph...> - 2016-03-04 19:43:45
|
Thanks everyone for all the help and suggestions. Here's where I am. Building gnuplot from source on a 10.6.8 Mac with xcode 3.2.6 and command line tools produces a working version, but I don't want to require students to install xcode or compile from source. Doing "make DESTDIR=/tmp/gnuplot" produces a tree that can be put onto student machines with a simple script that just does a "sudo rsync ..." Students also need to install XQuartz, but that's easy enough. The bare gnuplot doesn't have png, gif, or pdf support. If my build machine has Aquaterm installed, the gnuplot build has aquaterm support. Aquaterm can save screen graphics as pdf files, and that's adequate pdf support for now. Students need to install Aquaterm, but that's also easy. To add png and gif support, I need the gd library. The gd library needs freetype and libpng, and libpng needs zlib. Richard Gonsalves at SUNY Buffalo teaches a Computational Physics course and posted instructions on building gnuplot from source with these libraries. http://www.physics.buffalo.edu/phy410-505/tools/install/ My first attempt was with zlib-1.2.8 (rather than 1.2.7) libpng-1.6.21 (rather than 1.5.13) freetype-2.4.10 (same as instructions) libgd-2.1.1 (rather than gd-2.0.33) These steps ran, but with some errors. But the gnuplot build had errors and didn't produce an executable. So I tried again using libpng-1.5.26, and gd-2.0.33 The zlib, libpng, and freetype builds ran without errors, but the gd-2.0.33 build didn't work properly. My build machine has Python from Anaconda, which has an incompatible version of freetype on it. The gd-build was getting confused by that, so I deleted the files in question (after zipping the originals so I can restore them). Then the gd-build seemed to pick up the right freetype, and seemed to work OK. Then I did the gnuplot build, and I have png and gif terminals, as well as Aquaterm, X11, and postscript. That's good enough for now. The recipe so far is zlib-1.2.8 libpng-1.5.26 freetype-2.4.10 gd-2.0.33 gnuplot-5.0.3 I did a "make DESTDIR=/tmp/pkgname install" for zlib, libpng, freetype, gd-2.0.3 as well as "sudo make install", so I have copies of what they put where. I know the rsync trick works for cloning gnuplot and and its components. The next step will be to also use rsync to clone the libraries into /usr/local/lib . Do I also need to add things to some dynamic library search list on the target machines? Can I skip the /usr/local/lib/pkgconfig stuff? Can I skip the /usr/local/include stuff? Can I skip the /usr/local/bin/XXX-config binaries? Can I skip the /usr/local/share/man stuff? Thanks again! Cheers Prof. Thomas Mattison Hennings 276 University of British Columbia Dept. of Physics and Astronomy 6224 Agricultural Road Vancouver BC V6T 1Z1 CANADA mat...@ph... phone: 604-822-9690 fax:604-822-5324 |