1.下載gnuplot
wget https://nchc.dl.sourceforge.net/project/gnuplot/gnuplot/5.0.5/gnuplot-5.0.5.tar.gz
2.解壓文件
tar -zxvf gnuplot-4.4.0.tar.gz
3.配置安裝路徑
cd gnuplot-4.4.0
./configure --prefix=/public/software/gnuplot
4.編譯
make
5.安裝
make install
6.配置環(huán)境變量泡躯,編譯/etc/profile.d/gnuplot.sh內容如下:
export GNUPLOT=/public/software/gnuplot
export PATH=/public/software/gnuplot/bin:$PATH
export MANPATH=/public/software/gnuplot/share/man/man1:$MANPATH
7.啟用環(huán)境
source /etc/profile.d/gnuplot.sh