在Ubuntu上安装Gnuplot 5.0 [英] Installing Gnuplot 5.0 on Ubuntu

查看:658
本文介绍了在Ubuntu上安装Gnuplot 5.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试从Ubuntu上的源代码安装Gnuplot 5.0.

I have been trying to install Gnuplot 5.0 from source on Ubuntu.

我按照博客中给出的步骤进行操作:

I followed the procedure given in the blog:

从源代码安装gnuplot

我使用了以下命令:

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

一切正常,直到configure命令运行正常.但是,当我运行make命令时,最终出现以下错误:

Everything until the configure command works fine. However, I end up getting the following error when I run 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>

有人可以指导如何解决此问题吗?如果还有另一种更简单的方法来安装gnuplot 5.0.0.这也将有所帮助.

Could someone guide on how to fix this issue? If there is an alternative easier way to install gnuplot 5.0.0. that would be helpful as well.

推荐答案

这里是ubuntu中gnuplot所需的各种库dev软件包的汇编.在debian和其他基于debian的发行版(如Mint)下,软件包名称应相同.未随名称一起自动安装的其他-dev程序包未在列表中或(括号中)列出.

Here's a compilation of the various library-dev packages necessary for gnuplot in ubuntu. The package names should be the same under debian, and other distributions based on debian, like Mint. Additional -dev packages that are installed automatically with the ones named are not listed or in (parentheses).

要使用外部libreadline而不是gnuplot的内置替换项(推荐)

To use external libreadline instead of gnuplot's builtin replacement (recommended)

libreadline-dev

具有cerf库提供的数学函数(不会造成伤害)

To have the mathematical functions provided by the cerf library (can't hurt)

libcerf-dev

对于旧的交互式x11终端机

libx11-dev

对于pdfcairopngcairoepscairo端子

libcairo2-dev
libpango1-dev

对于交互式wxt终端机,是

(如果出现问题(例如,make check崩溃),请尝试./configure --with-wx-single-threaded.如果它不包含有关"XInitThreads"的投诉,请尝试TERMLIBS="-lX11" ./configure.)

additionally for the interactive wxt terminal (try ./configure --with-wx-single-threaded in case of problems (e.g. make check crashes). If it doesn't compile with complaints about "XInitThreads", try TERMLIBS="-lX11" ./configure.)

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

对于基于libgd的pnggifjpeg位图终端

For the libgd-based png, gif, jpeg bitmap terminals

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

用于交互式qt终端(./configure --with-qt=qt5)

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

或者替代qt4(./configure --with-qt=qt4)

libqt4-dev

对于lua终端

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

对于文本模式caca终端(./configure --with-caca)

libcaca-dev

列表不是最终的(目前我没有备用系统来尝试所有依赖项).随时添加,更新和更正!

The list is not final (i don't have a spare system to try out all the dependencies at the moment). Feel free to add, update and correct!

这篇关于在Ubuntu上安装Gnuplot 5.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆