2

I tried to do the following:

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

but I get a warning:

Warning: gdb: this formula has no --with-python= option so it will be ignored!
Hameer Abbasi
  • 1,292
  • 1
  • 12
  • 34

2 Answers2

1

This is normal, there is no --with-python=python3 option. You can obtain all available options with brew info gdb. You will obtain:

==> 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
Ortomala Lokni
  • 56,620
  • 24
  • 188
  • 240
0

There is --with-python option.

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

Try to brew -v install gdb --with-python after set your deafult python version.

Byungwoo Jeon
  • 71
  • 2
  • 7