linux - 编译 xcbproto 1.7 时出错

标签 linux

我尝试在 linux 中编译 xcbproto 1.7 并在键入 make install 命令时收到错误消息

Making install in xcbgen
make[1]: Entering directory `/home/reham/miriad_files/xcb-proto-1.7/xcbgen'
make[2]: Entering directory `/home/reham/miriad_files/xcb-proto-1.7/xcbgen'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/lib/python2.5/site-packages/xcbgen" || /bin/mkdir -p "/usr/local/lib/python2.5/site-packages/xcbgen"
 /usr/bin/install -c -m 644 __init__.py error.py expr.py matcher.py state.py xtypes.py '/usr/local/lib/python2.5/site-packages/xcbgen'
/home/reham/Desktop/Fermi/ScienceTools-v9r15p2-fssc-20090808-i686-pc-linux-gnu-libc2.5/i686-pc-linux-gnu-libc2.5/bin/python: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file: No such file or directory
make[2]: *** [install-pkgpythonPYTHON] Error 127
make[2]: Leaving directory `/home/reham/miriad_files/xcb-proto-1.7/xcbgen'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/reham/miriad_files/xcb-proto-1.7/xcbgen'
make: *** [install-recursive] Error 1

问题是什么?

最佳答案

看来您在系统上安装的自定义 Python 版本有问题。即这个:

/home/reham/Desktop/Fermi/ScienceTools-v9r15p2-fssc-20090808-i686-pc-linux-gnu-libc2.5/i686-pc-linux-gnu-libc2.5/bin/python

这似乎取决于链接器未找到的共享库 libpython2.5.so.1.0

很可能是您安装的自定义 python 版本带来了这个共享库,只是找不到它,因为它不在标准目录之一中。

要解决此问题,您可以尝试使用系统上安装的 python 版本,或者将包含 libpython2.5.so.1.0 的路径添加到链接器搜索的路径中。

我猜它会在 /home/reham/Desktop/Fermi/ScienceTools-v9r15p2-fssc-20090808-i686-pc-linux-gnu-libc2.5/i686-pc-linux-gnu 下面的某个地方-libc2.5/

最有可能在子目录 /lib 中。

关于linux - 编译 xcbproto 1.7 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15325835/

相关文章:

linux - 需要将用户名设为:plain from hash:plain username:hash

linux - Bash mysql/public_html 仅备份脚本

linux - 是否可以在 Linux 中进行内存到内存的 DMA 传输?如果是这样,什么函数调用 DMA 开始传输?

linux - 无法使用 apt-get update 获取最新更新

c++ - 如何在 Eclipse 中设置 linux C++ 项目?

regex - 使用 Linux sed 正则表达式替换文本文件中的 Windows 文件路径

linux - 我如何控制 Linux 中 USB 端口的电源输出?

linux - 对查找命令进行排序以遵守 Unix 中的自定义顺序

linux - 如何打印单个 ASCII 字符?

Linux,Debian Shell 不删除目录