You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS Monterey 16" M1 Pro _gdbm and _tkinter not found #92895
I followed the documentation to configure and build repo but got this issue:
configure: creating Modules/Setup.local
configure: creating Makefile
asset-overflow@MontereyJack:~/myRepos/cpython
main ✔ $ make -s -j2
Note: Deepfreeze may have added some global objects,
so run 'make regen-global-objects' if necessary.
CC='gcc' LDSHARED='gcc -bundle -undefined dynamic_lookup ' OPT='-g -Og -Wall' ./python.exe -E ./setup.py -q build
ld: warning: directory not found for option '-L/usr/lib/termcap'
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_gdbm _tkinter
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
renaming build/scripts-3.12/pydoc3 to build/scripts-3.12/pydoc3.12
renaming build/scripts-3.12/idle3 to build/scripts-3.12/idle3.12
renaming build/scripts-3.12/2to3 to build/scripts-3.12/2to3-3.12
I had already read through and installed openssl gdbm etc.. exactly per documentation and also added the necessary flags per macOS instructions for ./configure --with-pydebug --with-openssl=$(brew --prefix openssl)
forgive me if there's anything here that might be a little off (in the last sentence/statement) since I didn't copy/paste it, but I even went back over twice after "make clean" and retry configure and make -s -j2
Activity
erlend-aasland commentedon May 17, 2022
You can tell
configurewhere to find the dependencies either by modifyingPKG_CONFIG_PATH, or by using the following environment variables:For example, In my build script, I modify
PKG_CONFIG_PATHby adding$(brew --prefix tcl-tk)/lib/pkgconfig.zware commentedon May 17, 2022
See also gh-80086.
erlend-aasland commentedon May 20, 2022
Yes, I suggest closing this1 in favour of gh-80086.
Footnotes
"close as not planned" ↩