今天下载了最新的QT,并且发现centos 8 仓库自带的gdb有bug,于是自行下载了更高版本的gdb9.2源码,编译安装完成后被提示“the selected build of gdb does not support python"
解决过程如下:
1.发现centos 8 中只有python3 命令没有python,于是创建软链接
使用which 查看python3所在目录,然后cd 进入,然后执行
ln -s python3 python
2.在configure过程中添加 --whith-python参数,例如
../configure --prefix=/Mine/GDB_9.2 --with-python
然后就可以make && make install了
这样在QTCreator中就可以用了