Solaris 2.6: Difference between revisions

From pega.life
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:


=== Python 3.4.10 ===
=== Python 3.4.10 ===
https://www.python.org/downloads/release/python-3410/
<syntaxhighlight copy>
<syntaxhighlight copy>
cd /root
cd /root
Line 6: Line 7:
gtar xf Python-3.4.10.tar.xz
gtar xf Python-3.4.10.tar.xz
cd Python-3.4.10
cd Python-3.4.10
gpatch -p0 < ../all-py34.patch
</syntaxhighlight>
==== Compilation ====
https://github.com/python/cpython/issues/47514
<syntaxhighlight copy>
make clean;


make clean;
export LANG=en_US.UTF-8
CPPFLAGS="-I/usr/tgcware/include" \
export LC_ALL=en_US.UTF-8
LDFLAGS="-L/usr/tgcware/lib" \
 
CFLAGS="-O2 -D__EXTENSIONS__ $CPPFLAGS" \
export CPPFLAGS="-I/usr/tgcware/include -I/opt/local/include -I/usr/tgcware/include/openssl102";
CC=/usr/tgcware/gcc43/bin/i386-pc-solaris2.6-gcc \
export LDFLAGS="-L/usr/tgcware/lib -L/opt/local/lib -L/usr/tgcware/lib/openssl102 -Wl,-z,ignore" ;
CXX=/usr/tgcware/gcc43/bin/i386-pc-solaris2.6-g++ \
export CFLAGS="-O2 -D__EXTENSIONS__ $CPPFLAGS";
./configure --prefix=/opt/local --with-system-expat;  
export CC=/usr/tgcware/gcc43/bin/i386-pc-solaris2.6-gcc;
make -j8 ; make install
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)"
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 03:06, 19 November 2025

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.patch

Compilation[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)"