[gretl main page]

Gnuplot for gretl on Linux

Hopefully these instructions will become redundant before long, but if you're running gretl on Linux the version of gnuplot available via your Linux distribution may not be sufficiently up to date to work optimally with gretl. For best results, we recommend the 4.6 release or current CVS.

To get an up-to-date build of gnuplot for use with gretl you can build gnuplot from the CVS source yourself.

Build from source

Note that for this to succeed you will need to have the "devel" packages for GTK+ and Xorg installed.

 export CVSROOT=:pserver:anonymous@gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot
 cvs login
 cvs -z3 checkout gnuplot

Just hit Enter when asked for a password. Then

 sh ./prepare
 ./configure --prefix=/opt/gnuplot
 sudo make install

The choice of installing to /opt/gnuplot is designed to avoid collisions with gnuplot as installed by your Linux distro.

Using the new gnuplot

In gretl, go to Tools/Preferences/General/Programs and change the "gnuplot" entry to read


Then re-start gretl.