Install Gnuplot 5.0 on Ubuntu

I am trying to install Gnuplot 5.0 from a source on Ubuntu.

I followed the procedure in the blog:

Install gnuplot from source

I used the following commands:

tar xzf gnuplot-5.0.0.tar.gz mkdir build cd build ../gnuplot-5.0.0/configure --with-readline=gnu make 

That's it until the configure command works fine. However, I get the following error when running the make command:

 In file included from ../../gnuplot-5.0.0/src/qtterminal/QtGnuplotWindow.cpp:187:0: ./ui_QtGnuplotSettings.h:13:25: fatal error: QtGui/QAction: No such file or directory #include <QtGui/QAction> 

Can anyone help to solve this problem? If there is an alternative easier way to install gnuplot 5.0.0. that would be helpful too.

+6
source share
2 answers

Here is a compilation of the various -dev library packages needed for gnuplot in ubuntu. Package names must be the same as in Debian, and in other Debian based distributions such as Mint. Additional -dev packages that are installed automatically with named packages are not listed or indicated in (parentheses).

Use an external libreadline instead of the built-in gnuplot replacement (recommended)

 libreadline-dev 

Have the math functions provided by the cerf library (cannot harm)

 libcerf-dev 

For the old interactive terminal x11

 libx11-dev 

For pdfcairo , pngcairo , epscairo

 libcairo2-dev libpango1-dev 

optionally for the wxt interactive terminal (try ./configure --with-wx-single-threaded in case of problems (for example, make check crash). If it does not compile with complaints about "XInitThreads", try TERMLIBS="-lX11"./configure .)

 libwxgtk2.8-dev or libwxgtk3.0-dev libgtk2.0-dev 

For raster terminals based on libgd png , gif , jpeg

 libgd-dev (libxpm-dev) (libjpeg-turbo8-dev) (libtiff5-dev) 

For qt interactive terminal ( ./configure --with-qt=qt5 )

 qtbase5-dev libqt5svg5-dev qttools5-dev-tools # on Linux Mint (as per comment by Allan below) 

alternatively for qt4 ( ./configure --with-qt=qt4 )

 libqt4-dev 

For lua terminal

 liblua5.2-dev (also read ./INSTALL) 

For caca terminal in text mode ( ./configure --with-caca )

 libcaca-dev 

The list is not final (I do not have a spare system to check all the dependencies at the moment). Feel free to add, update and fix!

+8
source

I just followed the instructions in the INSTALL file and worked perfectly:

 $ tar xzf gnuplot-5.0.1.tar.gz $ cd gnuplot-5.0.1 $ ./configure $ make $ sudo make install 

After that, when I call gnuplot anywhere, the result

 $ gnuplot GNUPLOT Version 5.0 patchlevel 1 last modified 2015-06-07 Copyright (C) 1986-1993, 1998, 2004, 2007-2015 Thomas Williams, Colin Kelley and many others gnuplot home: http://www.gnuplot.info faq, bugs, etc: type "help FAQ" immediate help: type "help" (plot window: hit 'h') 
+2
source

Source: https://habr.com/ru/post/984870/


All Articles