使用Homebrew在Mac上安装带有Python 3的GDB

时间:2018-02-24 11:55:22

标签: python gdb homebrew

我尝试执行以下操作:

brew -v install gdb --with-python=python3

但我收到警告:

Warning: gdb: this formula has no --with-python= option so it will be ignored!

2 个答案:

答案 0 :(得分:1)

这是正常的,没有--with-python=python3选项。您可以使用brew info gdb获取所有可用选项。您将获得:

==> Options
--with-all-targets
    Build with support for all targets
--with-guile@2.0
    Build with guile@2.0 support
--with-python
    Use the Homebrew version of Python; by default system Python is used
--with-python@2
    Build with python@2 support
--with-version-suffix
    Add a version suffix to program

答案 1 :(得分:0)

--with-python选项。

--with-python
    Use the Homebrew version of Python; by default system Python is used

设置你的deafult python版本后尝试brew -v install gdb --with-python