【发布时间】:2019-08-22 03:35:29
【问题描述】:
我无法使用 python3.7 在 mac osx mojave 10.14.3(使用 gcc 8.2)中构建 gdb 8.2。
python3 是使用 brew install python3 安装的,并且在 PATH 中。
使用 brew edit gdb,
我已将--with-python=/usr 更改为/path/to/python3
另外,添加了ENV['CFLAGS']='-I/path/to/python3/include'、ENV['CC']='gcc'、ENV['CXX']='g++'。
即使在包含 CFLAGS 之后,我也会不断收到与 missing < Python.h > and < frameobject.h > 相关的错误。
我该如何解决这个问题?感谢您的帮助。
【问题讨论】: