运行doxygen
时出现以下错误:
doxygen: error while loading shared libraries: libclang.so.6: cannot open shared object file: No such file or directory
我在Ubuntu 17上使用doxygen
安装了sudo apt install doxygen
。/usr/lib/x86_64-linux-gnu
我有libclang-4.0.so.1
和libclang-5.0.so.1
但不是libclang.so.6
。
我尝试重新安装doxygen并且铿锵它没有帮助。
我还尝试将libclang.so.6
的符号链接创建为现有文件libclang-5.0.so.1
,结果为here,但会导致此错误:
doxygen: /usr/lib/x86_64-linux-gnu/libclang.so.6: version `LLVM_6.0' not found (required by doxygen)
如何解决此错误并让doxygen工作?
答案 0 :(得分:2)
使用this替代安装方法解决了该问题。请按照以下步骤操作:
获取存储库的副本
<!doctype html>
<html lang="en" class="h-100">
<head>
...
</head>
<body class="h-100">
<header>
...
</header>
<main class="h-100">
<div class="container h-100">
<div class="row justify-content-center align-items-center">
<div class="col">
<!-- Title -->
<div class="row text-center">
<div id="title" class="w-100 mt-5">
<h1>Let's Find You a Great Apartment.</h1>
</div>
</div>
<!-- Subtitle -->
<div class="row text-center">
<div id="subtitle" class="w-100">
<h2><small>Join more than 5,828,476 happy renters searching 1,025,792 local apartments.</small></h2>
</div>
</div>
<!-- Search box -->
<div class="row w-100 align-items-center">
<div id="search" class="enterALocationSearchBox mt-2">
<input type="text" class="w-100" placeholder="Enter a Location here">
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous" />
</body>
</html>
构建
git clone https://github.com/doxygen/doxygen.git
cd doxygen
安装
mkdir build
cd build
cmake -G "Unix Makefiles" ..
make
答案 1 :(得分:0)
首先将此添加到您的仓库
deb http://apt.llvm.org/artful/ llvm-toolchain-artful-6.0 main
deb-src http://apt.llvm.org/artful/ llvm-toolchain-artful-6.0 main
现在运行以下
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
apt-get install clang-6.0 lldb-6.0 lld-6.0
答案 2 :(得分:0)
您还可以使用以下方法安装doxygen:
sudo apt install doxygen
它将自行安装所有依赖项。
答案 3 :(得分:0)
在 Ubuntu 20.04 上,我成功安装了来自 https://www.doxygen.nl/download.html#srcbin (doxygen-1.9.1.linux.bin.tar.gz
这是“使用 Ubuntu 20.04 编译并动态链接到 libclang 版本 9”)。然后通过使用 apt-file
程序,我能够找到并安装每个缺失的库,如下所示:
$ doxygen --version
doxygen: error while loading shared libraries: libclang-9.so.1: cannot open shared object file: No such file or directory
$ apt-file search libclang-9.so.1
libclang1-9: /usr/lib/llvm-9/lib/libclang-9.so.1
libclang1-9: /usr/lib/x86_64-linux-gnu/libclang-9.so.1
$ sudo apt install libclang1-9
(...)
$ doxygen --version
doxygen: error while loading shared libraries: libclang-cpp.so.9: cannot open shared object file: No such file or directory
$ apt-file search libclang-cpp.so.9
libclang-cpp9: /usr/lib/llvm-9/lib/libclang-cpp.so.9
libclang-cpp9: /usr/lib/x86_64-linux-gnu/libclang-cpp.so.9
$ sudo apt install libclang-cpp9
(...)
$ doxygen --version
1.9.1 (ef9b20ac7f8a8621fcfc299f8bd0b80422390f4b)