Installing Gnuplot 4.4 under Ubuntu Lucid Lynx

Last Update: 2011-07-11

Ubuntu 10.04 (Lucid Lynx) contains not the newest Gnuplot package, but the old 4.2 version. To install Gnuplot 4.4 under Ubuntu you can download it from Debian squeeze and install it by:

wget http://ftp.us.debian.org/debian/pool/main/g/gnuplot/gnuplot-nox_4.4.0-1.1+b1_i386.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gnuplot/gnuplot-doc_4.4.0-1.1_all.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gnuplot/gnuplot-x11_4.4.0-1.1+b1_i386.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gnuplot/gnuplot_4.4.0-1.1_all.deb
sudo dpkg -i gnuplot*

It can happen that some features of Gnuplot (for me the readline stuff) do not work as expected. If you experience problems, then you have to compile gnuplot yourself, which is in most cases straight forward. You can download it from sourceforge.

Tags: ,

  1. suresh’s avatar

    Hi,
    Thanks, I was looking for gnuplot with pdf terminal and I could use your blog to install them without spending time on compiling from the source code.
    suresh

  2. Mark’s avatar

    Hi
    I need gnuplot and perhaps Octave on Ubuntu 10.04 . My goal is to plot 2 D sine graphs for math teaching purposes . I like to generate vector based graphics from Gnuplot.
    Can you help with some advise
    thanks
    Mark

  3. hagen’s avatar

    Hi Mark,
    maybe you will have a look at the Plotting functions and Output terminals pages. There you will find sine graphs and vector graphics output.

  4. kmb’s avatar

    doesn’t work for me, can’t find URLs.

  5. hagen’s avatar

    Thanks, updated the URLs.

  6. Poornima’s avatar

    Hi,

    I want to do plots as web running scripts.
    Please help me

  7. JuanKa’s avatar

    Thanks a lot!! It’s been very easy.

  8. Pandia’s avatar

    It works, thanks a lot.

  9. sharan’s avatar

    when i tried to install in the last step i got error kindly help me

    sharan@sharan:~$ sudo dpkg -i gnuplot*
    [sudo] password for sharan:
    (Reading database … 188038 files and directories currently installed.)
    Preparing to replace gnuplot 4.4.0-1.1 (using gnuplot_4.4.0-1.1_all.deb) …
    Unpacking replacement gnuplot …
    Preparing to replace gnuplot-doc 4.4.0-1.1 (using gnuplot-doc_4.4.0-1.1_all.deb) …
    Unpacking replacement gnuplot-doc …
    Preparing to replace gnuplot-nox 4.4.0-1.1+b1 (using gnuplot-nox_4.4.0-1.1+b1_i386.deb) …
    Unpacking replacement gnuplot-nox …
    Preparing to replace gnuplot-x11 4.4.0-1.1+b1 (using gnuplot-x11_4.4.0-1.1+b1_i386.deb) …
    Leaving `diversion of /usr/bin/gnuplot to /usr/bin/gnuplot-nox by gnuplot-x11′
    Leaving `diversion of /usr/share/man/man1/gnuplot.1.gz to /usr/share/man/man1/gnuplot-nox.1.gz by gnuplot-x11′
    Unpacking replacement gnuplot-x11 …
    Setting up gnuplot-doc (4.4.0-1.1) …
    Setting up gnuplot-nox (4.4.0-1.1+b1) …

    dpkg: dependency problems prevent configuration of gnuplot-x11:
    gnuplot-x11 depends on libwxbase2.8-0 (>= 2.8.10.1); however:
    Package libwxbase2.8-0 is not installed.
    gnuplot-x11 depends on libwxgtk2.8-0 (>= 2.8.10.1); however:
    Package libwxgtk2.8-0 is not installed.
    dpkg: error processing gnuplot-x11 (–install):
    dependency problems – leaving unconfigured
    dpkg: dependency problems prevent configuration of gnuplot:
    gnuplot depends on gnuplot-x11 (>= 4.4.0-1.1); however:
    Package gnuplot-x11 is not configured yet.
    dpkg: error processing gnuplot (–install):
    dependency problems – leaving unconfigured
    Processing triggers for install-info …
    Processing triggers for doc-base …
    Processing 1 changed doc-base file(s)…
    Registering documents with scrollkeeper…
    Processing triggers for man-db …
    Errors were encountered while processing:
    gnuplot-x11
    gnuplot

  10. hagen’s avatar

    The critical part is this:
    Package libwxgtk2.8-0 is not installed
    Package libwxgtk2.8-0 is not installed

    I would try to install these packages first (for example with synaptic) and then retry to install gnuplot.