未满足的依赖项 libc++

Vic*_*avu 9 lubuntu c++ clang

我应该如何在我的 lubuntu 机器上正确安装 clang 的 c++ 库(使用 STL)?我想使用 clang 及其 c++ 库,因为它为即将到来的 c++14 标准提供了更好的支持。

尝试安装 libc++ 时:

sudo apt-get install libc++
Run Code Online (Sandbox Code Playgroud)

我得到:

<!-- Fairly large amount of installed/up-to-date packages which I removed from the post-->
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libcgi-application-plugin-captcha-perl : Depends: libdata-random-perl but it is not going to be installed
 libcloog-isl-dev : Conflicts: libcloog-ppl-dev but 0.16.1-5 is to be installed
 libclutter-gst-2.0-doc : Conflicts: libclutter-gst-doc but 1.6.0-2build1 is to be installed
 libcuda1-304 : Conflicts: libcuda-5.0-1
 libcuda1-304-updates : Conflicts: libcuda-5.0-1
 libcuda1-331 : Breaks: libcuda-5.0-1
                Breaks: libcuda-5.5-1
 libcuda1-331-updates : Breaks: libcuda-5.0-1
                        Breaks: libcuda-5.5-1
 libcunit1-ncurses : Conflicts: libcunit1 but 2.1-2.dfsg-1 is to be installed
 libcunit1-ncurses-dev : Conflicts: libcunit1-dev but 2.1-2.dfsg-1 is to be installed
 libcurl4-gnutls-dev : Conflicts: libcurl4-nss-dev but 7.35.0-1ubuntu2 is to be installed
                       Conflicts: libcurl4-openssl-dev but 7.35.0-1ubuntu2 is to be installed
 libcurl4-nss-dev : Conflicts: libcurl4-gnutls-dev but 7.35.0-1ubuntu2 is to be installed
                    Conflicts: libcurl4-openssl-dev but 7.35.0-1ubuntu2 is to be installed
 libcurl4-openssl-dev : Conflicts: libcurl4-gnutls-dev but 7.35.0-1ubuntu2 is to be installed
                        Conflicts: libcurl4-nss-dev but 7.35.0-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我在三星 Series 9 Ultrabook 上运行 lubuntu 14.04。我不明白这些冲突,尤其是那些与 CUDA 相关的冲突,它应该只适用于带有 NVidia GPU 的系统。

请让我知道我需要提供哪些其他信息。


编辑:

经过一番尝试,我安装了 libc++-dev 包:

sudo apt-get install libc++-dev
Run Code Online (Sandbox Code Playgroud)

这安装了 clang 现在找到和使用的头文件。这并没有回答为什么 apt-get 试图安装显然不存在的 libc++ 以及为什么它会发生冲突(所有东西都是 CUDA!)的原始问题。

小智 14

没有名为libc++. 它是libc++1

所以运行命令:

sudo apt-get install libc++1 multiarch-support libc6 libc++-dev libc++-helpers libc++-test libc++abi-dev libc++abi-test libc++abi1
Run Code Online (Sandbox Code Playgroud)