Rav*_*avi 7 linux ubuntu gnuplot
我一直在尝试从Ubuntu上的源代码安装Gnuplot 5.0.
我按照博客中给出的程序:
我使用了以下命令:
tar xzf gnuplot-5.0.0.tar.gz
mkdir build
cd build
../gnuplot-5.0.0/configure --with-readline=gnu
make
Run Code Online (Sandbox Code Playgroud)
在配置命令正常工作之前的一切.但是,当我运行make命令时,我最终得到以下错误:
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>
Run Code Online (Sandbox Code Playgroud)
有人可以指导如何解决这个问题吗?如果有另一种更简单的方法来安装gnuplot 5.0.0.这也会有所帮助.
这是ubuntu中gnuplot所需的各种library-dev软件包的汇编.自动安装的其他-dev软件包未列出或列在(括号中).
使用外部libreadline代替gnuplots内置替换(推荐)
libreadline-dev
Run Code Online (Sandbox Code Playgroud)
拥有cerf库提供的数学函数(不能伤害)
libcerf-dev
Run Code Online (Sandbox Code Playgroud)
对于旧的交互式x11终端
libx11-dev
Run Code Online (Sandbox Code Playgroud)
对于pdfcairo,pngcairo,epscairo端子
libcairo2-dev
libpango1-dev
Run Code Online (Sandbox Code Playgroud)
另外对于交互式wxt终端(尝试./configure --with-wx-single-threaded遇到问题(例如make check崩溃).如果它没有编译有关"XInitThreads"的投诉,请尝试TERMLIBS="-lX11" ./configure.)
libwxgtk2.8-dev or libwxgtk3.0-dev
libgtk2.0-dev
Run Code Online (Sandbox Code Playgroud)
对于基于的libgd- ,,png 端子gifjpeg
libgd-dev
(libxpm-dev)
(libjpeg-turbo8-dev)
(libtiff5-dev)
Run Code Online (Sandbox Code Playgroud)
对于交互式qt终端(./configure --with-qt=qt5)
qtbase5-dev
libqt5svg5-dev
qttools5-dev-tools # on Linux Mint (as per comment by Allan below)
Run Code Online (Sandbox Code Playgroud)
或替换为qt4(./configure --with-qt=qt4)
libqt4-dev
Run Code Online (Sandbox Code Playgroud)
对于lua终端
liblua5.2-dev (also read ./INSTALL)
Run Code Online (Sandbox Code Playgroud)
对于文本模式caca终端(./configure --with-caca)
libcaca-dev
Run Code Online (Sandbox Code Playgroud)
该列表不是最终的(我没有备用系统来尝试所有依赖项).随意添加,更新和更正!
我只是按照安装文件中的说明进行操作,效果非常好:
$ tar xzf gnuplot-5.0.1.tar.gz
$ cd gnuplot-5.0.1
$ ./configure
$ make
$ sudo make install
Run Code Online (Sandbox Code Playgroud)
这样做之后,当我在任何地方调用 gnuplot 时,结果是
$ gnuplot
G N U P L O T
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')
Run Code Online (Sandbox Code Playgroud)