repo安装
下载repo
加入环境变量:
1
|
PATH=/mnt/share/cheji/source/bin/git-repo:$PATH
|
git安装
配置git
1
2
|
git config --global user.email "xxx@163.com"
git config --global user.name "xxx"
|
安装openssl依赖
1
|
sudo apt-get install openssl
|
安装Python3.11
下载Python3.11源码
编译
1
|
./configure --prefix=/usr/local/python3 --with-openssl=/usr/local/openssl --with-openssl-rpath=auto
|
安装
1
2
|
sudo make
sudo make install
|
安装路径
1
|
/usr/local/python3/bin/python3
|
建立python3和pip3的软链
1
2
|
sudo ln -s /usr/local/python3/bin/python3 /usr/bin/python3
sudo ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
|
将python指向python3
1
|
sudo ln -s /usr/local/python3/bin/python3 /usr/bin/python
|
并将/usr/local/python3/bin加入PATH
创建脚本
1
|
sudo vim /etc/profile.d/python3.sh
|
脚本内容:
1
2
|
PATH=$PATH:$HOME/bin:/usr/local/python3/bin
export PATH
|
立即生效
1
|
source /etc/profile.d/python3.sh
|
下载与编译Android源码
安装7zip
1
|
sudo apt-get install p7zip-full
|
解压安卓源码
1
|
7z x Android-9.0.0_r1.7z
|