我檢查了這個問題,它不適用。 Python missing or unusable error while cross compiling GDB在Cent OS下編譯gdb時Python缺失或無法使用5
我試圖建立GDB 7.5 Python支持分上OS 5
configure --with-expat --with-python
不記錄任何錯誤和Python的devel的文件安裝。
我設置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?
您需要閱讀'config.log'並找出失敗的原因。 – wRAR 2013-04-03 20:34:45
config.log中沒有錯誤。 – Robert 2013-04-03 20:45:28
然後你正在閱讀錯誤的config.log。 – wRAR 2013-04-03 20:47:38