gnuplot不支持png格式解决

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值