$ git clone https://github.com/doxygen/doxygen.git
step2.编译
$ cd doxygen
$ mkdir build
$ cd build
$ cmake -G "Unix Makefiles" ..
$ make
step3.安装
$ sudo make install
查看版本:
$doxygen --version
1.8.15
-- Found PythonInterp: /usr/bin/python (found version "3.5.2")
CMake Error at /usr/local/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find FLEX (missing: FLEX_EXECUTABLE)
Call Stack (most recent call first):
/usr/local/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.10/Modules/FindFLEX.cmake:217 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:84 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/weiwen/workspace/doxygen/build/CMakeFiles/CMakeOutput.log".
$ sudo apt-get install flex
Could NOT find BISON (missing: BISON_EXECUTABLE)
Call Stack (most recent call first):
/usr/local/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.10/Modules/FindBISON.cmake:252 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:85 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/weiwen/workspace/doxygen/build/CMakeFiles/CMakeOutput.log".
$ sudo apt-get install bison