Solaris 2.6
Jump to navigation
Jump to search
Python 3.4.10[edit]
https://www.python.org/downloads/release/python-3410/
cd /root
curl -JLO https://www.python.org/ftp/python/3.4.10/Python-3.4.10.tar.xz
gtar xf Python-3.4.10.tar.xz
cd Python-3.4.10
gpatch -p0 < ../all-py34.patchCompilation[edit]
https://github.com/python/cpython/issues/47514
make clean;
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export CPPFLAGS="-I/usr/tgcware/include -I/opt/local/include -I/usr/tgcware/include/openssl102";
export LDFLAGS="-L/usr/tgcware/lib -L/opt/local/lib -L/usr/tgcware/lib/openssl102 -Wl,-z,ignore" ;
export CFLAGS="-O2 -D__EXTENSIONS__ $CPPFLAGS";
export CC=/usr/tgcware/gcc43/bin/i386-pc-solaris2.6-gcc;
export CXX=/usr/tgcware/gcc43/bin/i386-pc-solaris2.6-g++ ;
export LIBS="-lssl -lcrypto";
export LD_LIBRARY_PATH="/opt/local/lib:/usr/tgcware/lib:/usr/local/lib";
./configure --prefix=/opt/local --with-system-expat --with-system-ffi;
make -j8 | tee make.log; make install ; /opt/local/bin/python3 -c "import ssl, zlib; print(ssl.OPENSSL_VERSION, zlib.ZLIB_VERSION)"