Prerequisities:
- Xcode
Step by step:
- Compile and install libpng: just
./configure
,make
andsudo make install
- Compile and install FreeType: just
./configure
,make
andsudo make install
- Compile and install libgd:
./configure --with-png=/usr/local --with-freetype=/usr/local
,make
andsudo make install
- Compile gnuplot:
./configure --without-x
,make
andsudo cp src/gnuplot /usr/local/bin
Versions used:
- gnuplot 5.0.1, http://sourceforge.net/projects/gnuplot
- libgd 2.1.1, https://github.com/libgd/libgd/releases
- FreeType 2.6.2, http://sourceforge.net/projects/freetype/files
- libpng 1.6.19, http://www.libpng.org/pub/png/libpng.html
Pingback: gnuplot on macOS without X11 – Server Software Engineer’s Notebook