Skip to content

Instantly share code, notes, and snippets.

@jugmac00
Created November 7, 2020 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jugmac00/ebfba2234fe059b293086bb76177adfe to your computer and use it in GitHub Desktop.
Save jugmac00/ebfba2234fe059b293086bb76177adfe to your computer and use it in GitHub Desktop.
error compiling python 3.9
❯ ./configure --with-pydebug --enable-shared
❯ make -j2 -s
Python build finished successfully!
❯ ./python
./python: error while loading shared libraries: libpython3.9d.so.1.0: cannot open shared object file: No such file or directory
This is reproducible on Linux (Ubuntu 18.04) with the `enable-shared` option.
see
https://bugs.python.org/issue27685
https://stackoverflow.com/questions/38772946/what-exactly-does-configure-enable-shared-do-during-python-altinstall
https://stackoverflow.com/questions/12553057/compile-python-2-7-3-from-source-on-a-system-with-python-2-7-already
https://stackoverflow.com/questions/37757314/problems-installing-python-3-with-enable-shared
FWIW, in earlier versions of this book, e.g. 2020-05-29, there was no `--enable-shared` option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment