Hameer Abbasi
Hameer Abbasi

Reputation: 1314

Installing GDB with Python 3 on Mac with Homebrew

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!

Upvotes: 2

Views: 1913

Answers (2)

Byungwoo Jeon
Byungwoo Jeon

Reputation: 81

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.

Upvotes: 0

Ortomala Lokni
Ortomala Lokni

Reputation: 62653

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
[email protected]
    Build with [email protected] 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

Upvotes: 1

Related Questions