Skip to content

macOS Monterey 16" M1 Pro _gdbm and _tkinter not found #92895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Sr-316 opened this issue May 17, 2022 · 3 comments
Closed

macOS Monterey 16" M1 Pro _gdbm and _tkinter not found #92895

Sr-316 opened this issue May 17, 2022 · 3 comments
Labels
build The build process and cross-build docs Documentation in the Doc dir OS-mac

Comments

@Sr-316
Copy link

Sr-316 commented May 17, 2022

Documentation

(A clear and concise description of the issue.)

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

@Sr-316 Sr-316 added the docs Documentation in the Doc dir label May 17, 2022
@erlend-aasland erlend-aasland added the build The build process and cross-build label May 17, 2022
@erlend-aasland
Copy link
Contributor

You can tell configure where to find the dependencies either by modifying PKG_CONFIG_PATH, or by using the following environment variables:

$ ./configure --help | grep -i "\(tcl\|gdbm\).*flags"
  TCLTK_CFLAGS
  TCLTK_LIBS  linker flags for TCLTK, overriding pkg-config
  GDBM_CFLAGS C compiler flags for gdbm
  GDBM_LIBS   additional linker flags for gdbm

For example, In my build script, I modify PKG_CONFIG_PATH by adding $(brew --prefix tcl-tk)/lib/pkgconfig.

@zware
Copy link
Member

zware commented May 17, 2022

See also gh-80086.

@zware zware added the OS-mac label May 17, 2022
@erlend-aasland
Copy link
Contributor

See also gh-80086.

Yes, I suggest closing this1 in favour of gh-80086.

Footnotes

  1. "close as not planned"

@erlend-aasland erlend-aasland added the pending The issue will be closed if no feedback is provided label May 20, 2022
@zware zware closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2022
@erlend-aasland erlend-aasland removed the pending The issue will be closed if no feedback is provided label May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build docs Documentation in the Doc dir OS-mac
Projects
None yet
Development

No branches or pull requests

3 participants