我已经在 Ubuntu 14.04 中使用源代码安装了 gnuplot 5.0。 Gnuplot 正在工作但还没有维斯特和PNG终端。现在我想添加这个终端。
gnuplot>set terminal
结果的输出是这样的
Available terminal types:
canvas HTML Canvas object
cgm Computer Graphics Metafile
context ConTeXt with MetaFun (for PDF documents)
corel EPS format for CorelDRAW
domterm DomTerm terminal emulator with embedded SVG
dumb ascii art for anything that prints text
dxf dxf-file for AutoCad (default size 120x80)
eepic EEPIC -- extended LaTeX picture environment
emf Enhanced Metafile format
emtex LaTeX picture environment with emTeX specials
epslatex LaTeX picture environment using graphicx package
fig FIG graphics language for XFIG graphics editor
hpgl HP7475 and relatives [number of pens] [eject]
latex LaTeX picture environment
mf Metafont plotting standard
mp MetaPost plotting standard
pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many options)
postscript PostScript graphics, including EPSF embedded files (*.eps)
pslatex LaTeX picture environment with PostScript \specials
pstex plain TeX with PostScript \specials
pstricks LaTeX picture environment with PSTricks macros
qms QMS/QUIC Laser printer (also Talaris 1200 and others)
svg W3C Scalable Vector Graphics
tek40xx Tektronix 4010 and others; most TEK emulators
tek410x Tektronix 4106, 4107, 4109 and 420X terminals
texdraw LaTeX texdraw environment
tgif TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]]
tkcanvas Tk canvas widget
tpic TPIC -- LaTeX picture environment with tpic \specials
Press return for more:
unknown Unknown terminal type - not a plotting device
vttek VT-like tek40xx terminal emulator
xterm Xterm Tektronix 4014 Mode
我能做些什么?
答案1
为了准备从源代码安装,大多数必需的软件包应该通过运行来提供(在 Ubuntu 和 Debian 中)sudo apt build-dep <package>
。为了使这项工作正常进行,请在 中启用一些 deb-src ppa/etc/apt/sources.list
并运行apt update
.对我来说,删除一些评论标记就足够了。请注意,您想要从源代码构建的包中可能有一些功能需要发行版 ppa 中不可用的依赖项。
此外,某些功能默认情况下未启用,只有在将包配置为提供这些功能时才能构建。通常,我们可以通过运行来找出必须使用哪些标志cd /path/to/src/; ./configure --help
。