gnuplot在Centos 7下的安装

10月 18, 2017 |

如果你用的是centos minimal版本,需要安装x11窗口才能实时看到产生的图,
可以参考http://www.javacoder.cn/?p=995 设置

#安装libgd,才能生成png,jpeg等图片格式
yum install gd-devel
#从官方下载最新稳定版本
http://www.gnuplot.info/download.html
#解压
tar -xvf gnuplot-5.2.0.tar.gz
#经典三步
./configure --prefix=/opt/gnuplot
make;make install
#添加环境变量
PATH=/opt/gnuplot/bin:$PATH
export PATH

#执行gnuplot命令
gnuplot
#在gnuplot提示符下执行"plot sin(x)"绘制正弦曲线
gnuplot> plot sin(x)

Posted in: MySQL practise

Comments are closed.