[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 have two options: build CVS gnuplot yourself, or use a special packaged binary.

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
 make
 sudo make install

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

Packaged binary

If you would prefer to try a pre-built binary, use the following commands to download and install the package. This is a build of the 4.5 development version of gnuplot; it is basically the same as the 4.6 release.

 cd /tmp
 wget http://ricardo.ecn.wfu.edu/pub/gretl/gnuplot-4.5-i586-3.tar.gz
 cd / 
 sudo tar xvfz /tmp/gnuplot-4.5-i586-3.tar.gz
 rm /tmp/gnuplot-4.5-i586-3.tar.gz

Note that this package installs into /opt/gnuplot.

Using the new gnuplot

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

 /opt/gnuplot/bin/gnuplot

Then re-start gretl.