我尝试在 Ubuntu 14.04.1 64 位 LTS 上运行程序布局编辑器(可在此站点上获得)我在终端中得到以下输出:
$ layout
layout: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by layout)
Run Code Online (Sandbox Code Playgroud)
我试着命令strings的/usr/lib/x86_64-linux-gnu/libstdc++.so.6如下,这里是输入和输出:
$ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_DEBUG_MESSAGE_LENGTH
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题我以某种方式猜测它与相关GCC但无法弄清楚如何解决这个问题。此外,我已经按照如何在 Ubuntu 上使用最新的 GCC?并且在GLIBCXX_3.4.15 not found 上有一个针对旧版本 Ubuntu 的类似问题。然而,当我跑了sudo update,我得到很多的警告,我和字符串命令获得的名单安装后没有新的项目gcc 4.9,所以我清除了PPA(工具链测试构建)与ppa-purge。非常感谢任何帮助,关于如何进行的建议。
几周以来,我一直在尝试在 Ubuntu 14.04 LTS 上使用 Code::Blocks IDE 对 Atmega16 进行编程,但是在 C::B 中编译/构建程序时遇到以下错误
/usr/include/features.h|374|fatal error: sys/cdefs.h: No such file or directory|
Run Code Online (Sandbox Code Playgroud)
我已阅读此线程
并基于此我尝试libc6-dev通过删除依赖项来清除并遇到麻烦。根据以前的经验,我知道发生管道破裂错误的可能性很大。我通过安装丢失的依赖项来解决它。
现在我仍然有同样的错误。
背景:我正在尝试构建我的程序,但首先我需要在 netbeans 中设置库。我的项目正在使用 GLU,因此我安装了 libglu-dev。我没有注意到图书馆所在的位置,现在我找不到它们了。
几天前我已经切换到 Linux,到目前为止我对它非常满意,但是我无法用谷歌搜索这个并变得沮丧..有没有办法找出包文件的安装位置而不运行重新安装?我的意思是,如果我在一段时间前获得了库 xxx 并安装了它,是否有一些命令 xxx可以打印此信息?
我已经尝试过 locate、find 和 whereis 命令,但要么我遗漏了某些东西,要么我无法正确执行..对于 libglu,locate 返回:
/usr/share/bug/libglu1-mesa
/usr/share/bug/libglu1-mesa/control
/usr/share/bug/libglu1-mesa/script
/usr/share/doc/libglu1-mesa
/usr/share/doc/libglu1-mesa/changelog.Debian.gz
/usr/share/doc/libglu1-mesa/copyright
/usr/share/lintian/overrides/libglu1-mesa
/var/lib/dpkg/info/libglu1-mesa:i386.list
/var/lib/dpkg/info/libglu1-mesa:i386.md5sums
/var/lib/dpkg/info/libglu1-mesa:i386.postinst
/var/lib/dpkg/info/libglu1-mesa:i386.postrm
/var/lib/dpkg/info/libglu1-mesa:i386.shlibs
Run Code Online (Sandbox Code Playgroud)
其他两个命令找不到任何东西。现在 locate 完成了它的工作,但我确定这些路径都不是库实际所在的位置(至少我到目前为止链接的所有内容都在 /usr/lib 或 usr/local/lib 中)。
libglu 仅作为示例引入,我正在寻找此问题的通用解决方案。
我在完全安装 boost 库时遇到了问题,它失败/跳过了一些似乎对我继续用它编译程序很关键的事情。这是我安装 boost 时得到的结果,
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o
libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or directory
compilation terminated.
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG -I"." -c -o "bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o" "libs/iostreams/src/bzip2.cpp"
...failed gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o...
...skipped <pbin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi>libboost_iostreams.so.1.50.0 for lack of <pbin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi>bzip2.o...
...skipped <p/usr/local/lib>libboost_iostreams.so.1.50.0 for lack of <pbin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi>libboost_iostreams.so.1.50.0...
...skipped <p/usr/local/lib>libboost_iostreams.so for lack of <p/usr/local/lib>libboost_iostreams.so.1.50.0...
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/link-static/threading-multi/bzip2.o
libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or directory
compilation terminated.
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG -I"." …Run Code Online (Sandbox Code Playgroud) 如何在 Ubuntu 14.04 中安装 BLAS 和 LAPACK?当我尝试使用以下命令安装这些软件包时apt-get install BLAS:
Error occurred
Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Run Code Online (Sandbox Code Playgroud) 在尝试运行各种软件(特别是 Steam 和 Yenka)时,我遇到了类似的错误: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
我正在运行 64 位系统,带有 NVidia Optimus 卡(我对某些需要专用显卡的仅 Windows 软件进行双重引导)。我安装了 bumblebee,我使用的是 nvidia-current 驱动程序,而不是按照推荐从 NVidia 下载的驱动程序。
库 (libGL.so.1) 不存在于 的顶级目录中/usr/lib,但它/usr/lib32/nvidia-current作为软链接存在于中/usr/lib32/nvidia-current/libGL.so.304.64。
ldconfig -p 输出的一部分:
libGL.so.1 (libc6,x86-64, OS ABI: Linux 2.4.20) => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
libGL.so (libc6,x86-64, OS ABI: Linux 2.4.20) => /usr/lib/x86_64-linux-gnu/libGL.so
libGL.so (libc6,x86-64, OS ABI: Linux 2.4.20) => /usr/lib/x86_64-linux-gnu/mesa/libGL.so
Run Code Online (Sandbox Code Playgroud)
显然正在加载具有该名称的库,但它们位于 中/usr/lib/x86_64-linux-gnu,但是已安装的软件似乎无法“看到”它。对于 Steam,使用 optirun 运行它会使其工作,但对于 Yenka 则不是这种情况。我假设 optirun …
在 Ubuntu 中对默认 Python 版本进行了一些不太聪明的编辑后,从 2.7 到 3.2,我最终破坏了我的整个系统。我的电脑骤降,一切都停止了工作后,我试图恢复我的变化(通过链接/usr/bin/python2.7到/usr/bin/python和改变默认的版本/usr/share/python/debian_defaults回到2.7),但有些事情仍然打破。
例如,当我输入import giPython 解释器时,我收到以下消息:
>>> import gi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named gi
>>>
Run Code Online (Sandbox Code Playgroud)
某些程序也会出现错误(例如:gnome 调整工具)。我已经尝试从软件中心和源代码重新安装 Python,但同样的错误仍然存在。
python --version 现在返回:
Python 2.7.2
Run Code Online (Sandbox Code Playgroud)
以及一些依赖 Python 2.7 的软件包现在正在运行(例如软件中心),但有些东西仍然被破坏。我可以做些什么来完全重新安装 Python 2.7 作为默认版本?
当我运行一个在运行时链接到共享库的进程(在进程启动时链接,稍后不与 链接dlload())时,.so除了LD_LIBRARY_PATH?
背景:
我编写了一些使用特定第三方库的 C++ 代码。我已经在两个不同的平台上安装了这个库并编译了我的代码,都是 Ubuntu 但不同的版本,以及不同版本的 gcc。该库是从源代码编译和安装的,位于/usr/local/lib两个平台上。当我编译我的代码时,我链接了pkg-config --libs第三方库的参数,并且我已经验证pkg-config --libs在两个平台上返回完全相同的内容。
我的代码在两个平台上都成功编译,并且在两个平台上都LD_LIBRARY_PATH没有定义(或定义为空"":)。但是,当我在一个平台上运行它时它工作正常,而在另一个平台上我收到此错误:
error while loading shared libraries: libthrift-0.9.0.so: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)
有趣的是,那那些没有工作,是新的Ubuntu和gcc版本。:/
所以我试图弄清楚工作人员如何能够找到图书馆,以便我可以让坏的人以同样的方式找到图书馆。(即,没有设置LD_LIBRARY_PATH)
更新:
这是我的输出 cat /etc/ld.so.conf.d/*
...在工作(旧)系统上:
/usr/lib/mesa
/usr/lib32/mesa
/usr/lib/alsa-lib
# libc default configuration
/usr/local/lib
# Multiarch support
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
Run Code Online (Sandbox Code Playgroud)
...在损坏的(较新的)系统上:
# libc default configuration
/usr/local/lib
# Multiarch support
/lib/x86_64-linux-gnu …Run Code Online (Sandbox Code Playgroud) 我刚刚下载了 Ubuntu 13.10 final beta 64 位,我使用的每个程序都可以完美运行,除了“Machinarium”一个非常酷的 Flash 游戏。游戏没有 .deb 包,我以前可以玩它。我尝试安装 lib32 和 ia32,它说它安装到最后一个版本,或者如果我尝试 lib32-dev,它说它不再可用。这是我的 ldd 命令结果:
fz@Unknown:~/Games/Machinarium$ ldd Machinarium
linux-gate.so.1 => (0xf77c8000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf76c0000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf76a5000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf756f000)
libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf755c000)
libXt.so.6 => /usr/lib/i386-linux-gnu/libXt.so.6 (0xf7500000)
libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf7461000)
libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf7427000)
libgtk-x11-2.0.so.0 => not found
libgdk-x11-2.0.so.0 => not found
libatk-1.0.so.0 => not found
libgdk_pixbuf-2.0.so.0 => not found
libpangocairo-1.0.so.0 => not found
libpango-1.0.so.0 => not found
libcairo.so.2 => not found
libgobject-2.0.so.0 …Run Code Online (Sandbox Code Playgroud)