Ubuntu – Installing Doxygen
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.
-
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
-
Install Build dependencies
sudo apt-get install -y cmake flex bison
-
Install Graphvix (for dependency Graph support)
sudo apt-get install -y graphviz
-
Install LaTeX (for LaTeX, Postscript, and PDF output)
sudo apt-get install -y texlive-full
-
Install Ghostscript (for formulas in the HTML output)
sudo apt-get install -y ghostscript
-
Prepare & change to the working directory
sudo mkdir -p /usr/local/src/doxygen/ && cd /usr/local/src/doxygen/
-
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 http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.11.src.tar.gz && sudo tar xf doxygen-*.tar.gz &&
-
Change into the source directory & create the build directory
cd doxygen-* && sudo mkdir build
-
Run cmake with the makefile generator
sudo cmake -G "Unix Makefiles'
-
Compile the binary
sudo make
-
Link the binary so it can be used on the path easily
sudo ln -s $(pwd)/bin/doxygen /usr/local/bin/
-
Verify that doxygen is in
/usr/local/bin
$ which doxygen /usr/local/bin/doxygen
For more information, see the Doxygen Manual
0