Install Gnuplot 4.6 with PDF on Ubuntu

By | September 13, 2013

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.

  1. download pdflib-light and extract to $PDFLIB
  2. compile and install pdflib-light

    cd $PDFLIB
    ./configure  
    make  
    sudo make install
    
  3. refresh lib cache: sudo ldconfig

  4. download gunplot and extract to $GNUPLOT

  5. 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

Leave a Reply

Your email address will not be published. Required fields are marked *