1.下载gnuplot
wget https://nchc.dl.sourceforge.net/project/gnuplot/gnuplot/5.0.5/gnuplot-5.0.5.tar.gz
2.解压文件
tar -zxvf gnuplot-5.0.5.tar.gz
3.配置安装路径
cd gnuplot-5.0.5
./configure --prefix=/usr/local/gnuplot
4.编译
make
5.安装
make install
6.配置环境变量,编译/etc/profile.d/gnuplot.sh内容如下:
vim /etc/profile.d/gnuplot.sh
export GNUPLOT=/usr/local/gnuplot
export PATH=/usr/local/gnuplot/bin:$PATH
export MANPATH=/usr/local/gnuplot/share/man/man1:$MANPATH
7.启用环境
source /etc/profile.d/gnuplot.sh