Created
November 7, 2020 09:05
-
-
Save jugmac00/ebfba2234fe059b293086bb76177adfe to your computer and use it in GitHub Desktop.
error compiling python 3.9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ ./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