
make install # Puts the final files in prefix locationĪfter it performs the install, the prefix directory specified in configure configure and make again to rebuild with the dependencies.Īfter the build was successful, compile all the final files in to the targetĭestination that was specified by -prefix on the configure script. In Debian, the packages are: apt install libncurses-dev libgdbm-dev libz-dev tk-dev libsqlite3-dev libreadline-dev liblzma-dev libffi-dev libssl-dev In Fedora, the optional missing dependencies can be installed with: dnf install tk-devel readline-devel gdbm-devel The following modules found by detect_modules() in setup.py, have beenīuilt by the Makefile instead, as configured by the Setup files: To find the necessary bits, look in setup.py in detect_modules() for the module's name. The necessary bits to build these optional modules were not found: Near the end of the output, you should see a success message and Put the final files in the location specified by configure's -prefix.

Use the make tool to build the files followed by make install to configure -enable-optimizations -prefix=$HOME/python3.9 If you want to add optimizations, also add on the -enable-optimizations flag./configure -enable-optimizationsĪn example with all the options might look like this. Have a need for it./configure -enable-shared I recommend avoiding the shared library unless you so file is loadable when running Python whichĪdds more complexity. This will NOT build the static library and If you want to build the shared library instead of the static one ( libpython3.so), Library that you can use to link with C applications (e.g. cd cpythonīy default, it will generate (among other things) a libpython3.9.a static One in particular that is important is the -prefix.

A configure script comes in the source that can be passed many values.
