Solaris 2.6: Difference between revisions

From pega.life
Jump to navigation Jump to search
Line 9: Line 9:
gpatch -p0 < ../all-py34.patch
gpatch -p0 < ../all-py34.patch
</syntaxhighlight>
</syntaxhighlight>
 
==== Compiltion ====
<syntaxhighlight copy>
<syntaxhighlight copy>
make clean;  
make clean;  
CPPFLAGS="-I/usr/tgcware/include -I/usr/tgcware/include/openssl102" \
 
LDFLAGS="-L/usr/tgcware/lib -L/usr/tgcware/lib/openssl102" \
export CPPFLAGS="-I/usr/tgcware/include -I/opt/local/include -I/usr/tgcware/include/openssl102";
CFLAGS="-O2 -D__EXTENSIONS__ $CPPFLAGS" \
export LDFLAGS="-L/usr/tgcware/lib -L/opt/local/lib -L/usr/tgcware/lib/openssl102" ;
CC=/usr/tgcware/gcc43/bin/i386-pc-solaris2.6-gcc \
export CFLAGS="-O2 -D__EXTENSIONS__ $CPPFLAGS";
CXX=/usr/tgcware/gcc43/bin/i386-pc-solaris2.6-g++ \
export CC=/usr/tgcware/gcc43/bin/i386-pc-solaris2.6-gcc;
LIBS="-lssl -lcrypto" \
export CXX=/usr/tgcware/gcc43/bin/i386-pc-solaris2.6-g++ ;
./configure --prefix=/opt/local --with-system-expat;  
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 ; make install ; /opt/local/bin/python3 -c "import ssl, zlib; print(ssl.OPENSSL_VERSION, zlib.ZLIB_VERSION)"
make -j8 ; make install ; /opt/local/bin/python3 -c "import ssl, zlib; print(ssl.OPENSSL_VERSION, zlib.ZLIB_VERSION)"
</syntaxhighlight>
</syntaxhighlight>

Revision as of 21:48, 18 November 2025

Python 3.4.10

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

Compiltion

make clean; 

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" ;
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 ; make install ; /opt/local/bin/python3 -c "import ssl, zlib; print(ssl.OPENSSL_VERSION, zlib.ZLIB_VERSION)"