Ubuntu14.04安装openssl,python3.7,下载清华源的AOSP安卓6源码
升级安装python3.7 带有openssl
**先安装需要的包zlib1g,libffi**
sudo apt-get update
sudo apt-get install zlib1g-dev
sudo apt-get install libffi-dev
**安装openssl**
sudo su
cd /usr/local/
cp /home/pino/Downloads/* .
tar -zxvf openssl-1.1.1m.tar.gz
cd openssl-1.1.1m
./config --prefix=/usr/local/openssl no-zlib
make
make install
cd /usr/bin/
mv openssl openssl.bak
cd /usr/include/
mv openssl openssl.bak
ln -s /usr/local/openssl/include/openssl openssl
cd /usr/local/lib/
ln -s /usr/local/openssl/lib/libssl.so.1.1 libssl.so
cd /usr/bin/
ln -s /usr/local/openssl/bin/openssl openssl
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
ldconfig -v
openssl version
**二、安装python3.7**
tar -zxvf Python-3.7.3.tgz
cd Python-3.7.3
./configure --prefix=/usr/local/python3.7 --with-openssl=/usr/local/openssl
make
make install
三、
cd /usr/bin/
mv python3 python3.bak
ln -s /usr/local/python3.7/bin/python3 /usr/bin/python3
mv python python.bak
ln -s /usr/bin/python3 /usr/bin/python
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip
sudo apt install libssl-dev
export PATH=~/bin:$PATH
export REPO_URL='http://mirrors.tuna.tsinghua.edu.cn/git/git-repo'
下载repo工具
mkdir ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
git config --global user.name "pino"
git config --global user.email "364374079@qq.com"
mkdir -p AOSP/android6.0
cd AOSP/android6.0/
repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-6.0.1_r78
repo sync
|