I am currently trying to install doxygen on my computer, but upon running doxygen through the command line it fails with this error:
doxygen: error while loading shared libraries: libclang.so.6: cannot open shared object file: No such file or directory
I have tried multiple ways of installing it. I tried using apt-get, I tried building it from source, and I tried the unique solution suggested in this StackExchange answer. When I try to build it from source, cmake fails with this error:
~/Documents/Repos/doxygen/build/CMakeFiles$ cmake -G "Unix Makefiles" ..
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find FLEX (missing: FLEX_EXECUTABLE)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindFLEX.cmake:230 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:84 (find_package)
-- Configuring incomplete, errors occurred!
I have even tried installing clang manually, but all to no avail.
After upgrading to Ubuntu 18.04, installing flex and bison with apt, and rebuilding from source using these instructions, I was finally able to get doxygen to work.