mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 04:41:35 +00:00
build-deps
This commit is contained in:
@@ -6,27 +6,43 @@ echo "Installing build tools..."
|
|||||||
sudo apt-get --yes install build-essential
|
sudo apt-get --yes install build-essential
|
||||||
echo "Installing StaticX deps..."
|
echo "Installing StaticX deps..."
|
||||||
sudo apt-get --yes install binutils patchelf
|
sudo apt-get --yes install binutils patchelf
|
||||||
|
echo "Installing deps for python3"
|
||||||
|
sudo cp -v /etc/apt/sources.list /tmp
|
||||||
|
echo "deb-src http://archive.ubuntu.com/ubuntu/ precise main" >> /tmp/sources.list
|
||||||
|
sudo cp -v /tmp/sources.list /etc/apt
|
||||||
|
sudo apt-get --yes update > /dev/null
|
||||||
|
sudo apt-get --yes build-dep python3
|
||||||
|
|
||||||
mypath=$HOME
|
mypath=$HOME
|
||||||
|
echo "My Path is $mypath"
|
||||||
cpucount=$(nproc --all)
|
cpucount=$(nproc --all)
|
||||||
|
echo "This device has $cpucount CPUs for compiling..."
|
||||||
# Compile latest OpenSSL
|
# Compile latest OpenSSL
|
||||||
OPENSSL_VER=1.1.1b
|
OPENSSL_VER=1.1.1b
|
||||||
wget https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz
|
wget https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz
|
||||||
|
echo "Extracting OpenSSL..."
|
||||||
tar xf openssl-$OPENSSL_VER.tar.gz
|
tar xf openssl-$OPENSSL_VER.tar.gz
|
||||||
cd openssl-$OPENSSL_VER
|
cd openssl-$OPENSSL_VER
|
||||||
|
echo "Compiling OpenSSL $OPENSSL_VER..."
|
||||||
./config shared --prefix=$mypath/ssl
|
./config shared --prefix=$mypath/ssl
|
||||||
make -j$cpucount > /dev/null
|
echo "Running make for OpenSSL..."
|
||||||
|
make -j$cpucount -s
|
||||||
|
echo "Running make install for OpenSSL..."
|
||||||
make install > /dev/null
|
make install > /dev/null
|
||||||
|
export LD_LIBRARY_PATH=~/ssl/lib
|
||||||
cd ~
|
cd ~
|
||||||
|
|
||||||
# Compile latest Python
|
# Compile latest Python
|
||||||
PYTHON_VER=3.7.3
|
PYTHON_VER=3.7.3
|
||||||
wget https://www.python.org/ftp/python/$PYTHON_VER/Python-$PYTHON_VER.tar.xz
|
wget https://www.python.org/ftp/python/$PYTHON_VER/Python-$PYTHON_VER.tar.xz
|
||||||
|
echo "Extracting Python..."
|
||||||
tar xf Python-$PYTHON_VER.tar.xz
|
tar xf Python-$PYTHON_VER.tar.xz
|
||||||
cd Python-$PYTHON_VER
|
cd Python-$PYTHON_VER
|
||||||
|
echo "Compiling Python $PYTHON_VER..."
|
||||||
./configure --with-openssl=$mypath/ssl --enable-optimizations --enable-shared \
|
./configure --with-openssl=$mypath/ssl --enable-optimizations --enable-shared \
|
||||||
--prefix=$mypath/python --with-ensurepip=upgrade > /dev/null
|
--prefix=$mypath/python --with-ensurepip=upgrade > /dev/null
|
||||||
make -j$cpucount > /dev/null
|
make -j$cpucount -s
|
||||||
|
echo "Installing Python..."
|
||||||
make install > /dev/null
|
make install > /dev/null
|
||||||
cd ~
|
cd ~
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user