我检查了这个问题,它不适用。 交叉编译 GDB 时出现 Python 丢失或无法使用的错误
我正在尝试在 Cent OS 5 上构建具有 python 支持的 gdb 7.5。
configure --with-expat --with-python
不记录任何错误并安装 Python 开发文件。
我设置LDFLAGS="L/usr/local/expat-2.1 -L/opt/python27/lib
/opt/python27/lib
包含:
rwxrwxrwx 1 root root 19 Mar 14 15:35 libpython2.7.so -> libpython2.7.so.1.0
-r-xr-xr-x 1 root root 1893448 Aug 30 2012 libpython2.7.so.1.0
drwxr-xr-x 2 root root 4096 Mar 14 15:35 pkgconfig
drwxr-xr-x 27 root root 20480 Mar 14 21:49 python2.7
运行make
会产生此错误:
checking whether to use python... yes
checking for python... /opt/python27/bin/python
checking for python2.7... no
configure: error: python is missing or unusable
/opt/python27/bin/python
存在具有正确的权限并且是可执行的。
为什么链接进程找不到python?