「Gnuplot」

编译、安装

#!/bin/sh

#
./configure --prefix=/usr/local

# 关于编译中的错误,请查看本文 Error List 部分。
make

make install

Error List

#1 …libX11.so.6: error adding symbols: DSO missing from command line

……
/usr/bin/ld: wxterminal/wxt_gui.o: undefined reference to symbol ‘XInitThreads’
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
……

解决:
wxt_gui.o链接的时候出现了问题,wxwidgets是个UI框架,它和QT、GTK是一类东西(不是很准确)。
为什么gnuplot要使用wxwidgets?gnuplot生成的图会在图形界面中显示,加入wxwidgets,使gnuplot支持wxwidgets。
但其实,在gnuplot同时可以编译多个UI框架(qt4/5, x11, wxwidgets),所以不用wxwidgets了(实际上并不推荐这么解决问题):

–disable-wxwidgets

参考文献

Homepage: http://gnuplot.sourceforge.net, http://www.gnuplot.info
Doc: http://gnuplot.sourceforge.net/documentation.html