Build and Install GNU Plot on RHEL
- Obtain the source and checkout to the latest stable branch
git clone -b branch-5-4-stable git://git.code.sf.net/p/gnuplot/gnuplot-main
- Configure with GD Lib to have PNG output files
cd gnuplot-main
./configure --prefix="/path/to/install" --with-gd="/path/to/libgd"
- Make and install
make -j16
make -j16 check
make -j16 install
In case you don’t have Libgd installed, grab it from here
tar xvzf libgd-2.3.3.tar.gz
cd libgd-2.3.3
./configure --prefix="/path/to/install"
make -j16
make -j16 install