Installing Doxygen

This article will walk you through the process of installing Doxygen on Ubuntu; including all dependencies required for Graphs, PDF, HTML, & LaTeX output.

  1. Standard procedure when beginning any software maintenance is to update your package repos and application versions (update and upgrade respectively)

    sudo apt-get update &&
    sudo apt-get -y upgrade

  2. Install Build dependencies

    sudo apt-get install -y cmake flex bison

  3. Install Graphvix (for dependency Graph support)

    sudo apt-get install -y graphviz

  4. Install LaTeX (for LaTeX, Postscript, and PDF output)

    sudo apt-get install -y texlive-full

  5. Install Ghostscript (for formulas in the HTML output)

    sudo apt-get install -y ghostscript

  6. Prepare & change to the working directory

    sudo mkdir -p /usr/local/src/doxygen/ &&
    cd /usr/local/src/doxygen/

  7. Download & unpack to the latest source distribution from the Doxygen Website. Current version as of writing this article (01/16/2016) is 1.8.11

    sudo wget &&
    sudo tar xf doxygen-*.tar.gz &&

  8. Change into the source directory & create the build directory

    cd doxygen-* &&
    sudo mkdir build

  9. Run cmake with the makefile generator

    sudo cmake -G "Unix Makefiles'

  10. Compile the binary

    sudo make

  11. Link the binary so it can be used on the path easily

    sudo ln -s $(pwd)/bin/doxygen /usr/local/bin/

  12. Verify that doxygen is in /usr/local/bin

    $ which doxygen

For more information, see the Doxygen Manual