It is always hard to install gnuplot manually on Ubuntu, especially if you want to plot diagram in PDF, JPEG, or PNG formats. This short 101 article describes one way to install gnuplot with PDF on Ubuntu.
- download pdflib-light and extract to
$PDFLIB
-
compile and install pdflib-light
cd $PDFLIB ./configure make sudo make install
-
refresh lib cache:
sudo ldconfig
-
download gunplot and extract to $GNUPLOT
-
compile and install gnuplot
cd $GNUPLOT ./configure --with-pdf make sudo make install
Note: other packages which can be installed via apt-get
- liblua5.1-0-dev: tikz/lua
- libgd2-xpm-dev: jpeg/png
- libpango1.0-dev: another package for pdf, not tested