Skip to content

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

Closed as not planned
Closed as not planned

Description

@Sr-316

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

Activity

  1. erlend-aasland commented on May 17, 2022

    @erlend-aasland
    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.

  2. zware commented on May 17, 2022

    @zware
    Member

    See also gh-80086.

  3. erlend-aasland commented on May 20, 2022

    @erlend-aasland
    Contributor

    See also gh-80086.

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

    Footnotes

    1. "close as not planned" ↩

  4. added
    pendingThe issue will be closed if no feedback is provided
    on May 20, 2022
  5. removed
    pendingThe issue will be closed if no feedback is provided
    on May 20, 2022
  6. moved this from Done to Discarded in dbm and shelve issueson Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-macbuildThe build process and cross-builddocsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions