configure: error: python is missing or unusable

编译gdb报错

$ cd build

$ ../configure --prefix=/home/test/depends/gdb132 --with-libgmp-prefix=/home/test/depends/gmp621/

原因及解决:--with-python为python程序目录,并确保该目录下ldd -r python不缺符号和链接库,--with-python-libdir可以指定libpython*.so路径

$ ../configure --prefix=/home/test/depends/gdb132 --with-libgmp-prefix=/home/test/depends/gmp621/ --with-python=/home/test/code/Python-3.11.4/build

 参考:

https://www.cnblogs.com/shengulong/p/8053370.html

https://www.jianshu.com/p/0a338c0ac200?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

https://www.cnpython.com/qa/64090

posted @ 2023-08-21 11:26  飞飞龙  阅读(642)  评论(0)    收藏  举报