I want to install gnuplot on Ubuntu 12.04. However, it always fails with the following log:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnuplot is already the newest version.
The following packages were automatically installed and are no longer required:
   language-pack-zh-hans language-pack-kde-en language-pack-kde-zh-hans
   language-pack-kde-en-base kde-l10n-engb kde-l10n-zhcn
   language-pack-zh-hans-base firefox-locale-zh-hans
   language-pack-kde-zh-hans-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.

What can I do to fix this problem?

up vote 9 down vote accepted

Most likely nothing. The output tells you that gnuplot is already the newest version.

  • Then how to start it, I didn't get it in the search-bar. – Ub-lx Sep 2 '13 at 19:52
  • @Ub-lx did you try running gnuplot through either alt+f2, or from the terminal? – Thomas Ward Sep 2 '13 at 19:53
  • @Ub-lx as Wikipedia says, it is a command line tool, so try using terminal. You might start with one of many tutorials available. – moon.musick Sep 2 '13 at 19:55
  • @ Thomas W, from terminal. – Ub-lx Sep 2 '13 at 19:56
  • 1
    @Ub-lx so there you go. It is a gnuplot prompt. You may enter gnuplot commands there. Or you may write commands to a file and then run gnuplot < filename. Do some tutorial to get a feeling how the app works and what you can do with it. – moon.musick Sep 2 '13 at 20:17

Ub-lx

You could try this command for installing the GNU plot and work on it

sudo apt-get install gnuplot-x11

and using this pdf you can learn GNU plot: http://fig.if.usp.br/~lucmod/tips/gnuplotbook.pdf

just issue

sudo apt-get install gnuplot

which will default to using the QT backend since X11 is getting long in the tooth

5.0.1 from source on 14.04:

cvs -d:pserver:anonymous@gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot login
cvs -z3 -d:pserver:anonymous@gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot co -P gnuplot
cd gnuplot
cvs update -r Release_5_0_1
sudo apt-get build-dep gnuplot
sudo apt-get install lua5.2
./prepare
./configure
time make
sudo make install
gnuplot --version

15.04 has the gnuplot5-x11 package.

GNUplot packages:

gnuplot-nox
gnuplot-qt
gnuplot-x11

To install, you can use

sudo apt install <selected-package>

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.