我尝试在 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/