先下载源代码
https://github.com/gnuplot/gnuplot
mkdir gnuplot cd gnuplot-master/ ./prepare ./configure --prefix=gnuplot安装路径 make make install sudo vi /etc/profile source /etc/profile