Monday, December 11, 2006

Gnuplot + PNG on MacBook Pro

Some notes on getting Gnuplot to print PNG on my Mac: I used Gnuplot 4.0.0, which installed with no problems, but Mac doesn't have the required zlib and png libraries (or at least they weren't in /usr/local, where ./configure could find them).

So the steps are
  1. Get zlib, run ./configure, make and then sudo make install.
  2. Get png, run ./configure, make and sudo make install
  3. And then reinstall gnuplot with ./configure, make, sudo make install.
I used libpng-1.2.14 and zlib-1.2.3. Google to find the tar files. I also for fun set CC=cc instead of the default gcc that ./configure gives you. It all seems to work.

No comments: