ubuntu16.04,回过头来做自己10年前做的工作,发现以前真的很投入,做了那么多的事情,一个人每天生成40-50页的报告,如果不是我的使用程序,自行搭建Linux服务器,自动化运行,不知要耗费多少人力物力。
重新找同10年前的代码,发现不能运行。不能创建png文件,最后还是在英文里搜到了答案。
linux - Terminal "png" missing when using Gnuplot - Stack Overflow
I installed gnuplot5.2.2 on Linux mint (based in ubuntu 16.04) and managed to get the png
in the set terminal
.
I installed this libraries.
sudo apt-get install libcairo2-dev libpango1.0-dev libgd-dev
Afterwards I re-ran ./configure then make, make check and make install.
While reading the output of ./configure It seems that cairo was indeed necessary, as mentionned by User Christoph - Stack Overflow above in the comments of the question.
Here's the configuration summary after running ./configure