EN ·
🌏 中文 Guide to Compiling and Installing GNUPlot
Before compiling GNUPlot 5.4.3, you must install the required dependencies: libpng and libgd.
First, you can install libpng-devel using yum:
yum install libpng-devel
The libgd-devel package provided by yum is incompatible with GNUPlot 5.4.3 on AWS Linux 2. To resolve this, download and compile the latest official version:
wget https://github.com/libgd/libgd/releases/download/gd-2.3.3/libgd-2.3.3.tar.gz
tar zxvf ./libgd-2.3.3.tar.gz
cd libgd-2.3.3
./configure
make
sudo make install
Once the dependencies are ready, proceed to compile GNUPlot:
cd libs
wget https://sourceforge.net/projects/gnuplot/files/gnuplot/5.4.3/gnuplot-5.4.3.tar.gz
tar zxvf ./gnuplot-5.4.3.tar.gz
cd gnuplot-5.4.3
./configure
make
sudo make install