# untar archive
tar zxvf tarball.tar.gz
git init --bare
git clone --bare git@host:path
# clean dist after installing new packages
make distclean
make clean
# For 3.6 have to be installed vars
CPPFLAGS="-I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include"
LDFLAGS="-L$(brew --prefix openssl)/lib"
./configure --enable-optimizations --prefix=<custom-directory>
make
make install
# fix error ModuleNotFoundError: No module named 'encodings'
unset PYTHONHOME
unset PYTHONPATH
yum install zlib-devel
/configure --enable-optimizations --prefix=/data/services/python/build/3.6.1 --disable-ipv6
make
make install
# Specific Directory (Tested on MacOS 10.15.2)
./configure --enable-optimizations --prefix=<custom-directory> --with-openssl=/usr/local/Cellar/[email protected]/1.1.1d/
# Ubuntu 18+
./configure --enable-optimizations --prefix=~/python37 --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu
make
make install
./configure --prefix=/data/services/python/build/3.8.1
# for make world
sudo yum install sgml-common stylesheets openjade sgml-tools
# uuid header files
sudo yum install libuuid-devel
# postgresql can not find libuuid
sudo ln -s /usr/lib64/libuuid.so.1 /usr/lib64/libuuid.so
./configure --with-libraries=/usr/lib64 --with-uuid=e2fs --without-readline --without-zlib --prefix=/data/services/postgres/build/postgresql-10.12
make
make install
make install-world
# uuid header files
sudo yum install libuuid-devel
# postgresql can not find libuuid
sudo ln -s /usr/lib64/libuuid.so.1 /usr/lib64/libuuid.so
./configure --with-libraries=/usr/lib64 --with-uuid=e2fs --without-readline --without-zlib --prefix=/data/services/postgres/build/postgresql-10.12
make world
make install
make install-world
make PREFIX=/some/other/directory install