- 一、安装python
- 二、安装java环境
- 三、安装安卓SDK
- 四、安装node及appium
- 五、提示
一、安装python
1 升级:
sudo apt update sudo apt upgrade -y
2 安装编译依赖包:
sudo apt install build-essential -y sudo apt install libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev -y sudo apt-get install zlib1g-dev
3 下载解压
wget https://www.python.org/ftp/python/3.7.8/Python-3.7.8.tgz
4 配置编译安装
cd Python-3.7.8 ./configure --enable-optimizations sudo make sudo make install
5 安装pip
pip3 install --upgrade pip二、安装java环境
1 官网下载(需要账号自己注册)
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
2 新建env文件夹移动解压
sudo mv /home/nuc-05/下载/jdk-8u311-linux-x64.tar.gz /home/nuc-05/env tar -zxvf jdk-8u311-linux-x64.tar.gz
3 将解压出的包移动到etc/opt目录下
sudo mv jdk1.8.0_311/ /etc/opt/
4 配置
sudo vi /etc/profile # 最下面填写 export JAVA_HOME=/etc/opt/jdk1.8.0_311 export JRE_HOME=${JAVA_HOME}/jre/bin export CLASSPATH=$JAVA_HOME/lib export PATH=${JAVA_HOME}/bin:$PATH # 生效 source /etc/profile
5 安装依赖
sudo apt-get install libc6-i386三、安装安卓SDK
1 新建一个终端窗口并打开
cd /opt/ sudo midir android-sdk sudo chmod 777 android-sdk
2 下载sdkmanager解压
wget https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip sudo unzip commandlinetools-linux-6858069_latest.zip
3 启动sdkmanager
cd cmdline-tools/bin ./sdkmanager --sdk_root=/opt/android-sdk/ --list # (遇到报错找不懂java路径,执行source /etc/profile) ./sdkmanager --sdk_root=/opt/android-sdk/ "platforms;android-30" ./sdkmanager --sdk_root=/opt/android-sdk/ "platform-tools" ./sdkmanager --sdk_root=/opt/android-sdk/ "build-tools;30.0.0"
4 环境配置
sudo vi /etc/profile # 最下面填写 export ANDROID_HOME=/opt/android-sdk export PATH=${ANDROID_HOME}/tools:$PATH export PATH=${ANDROID_HOME}/platform-tools:$PATH export PATH=${ANDROID_HOME}/build-tools/30.0.0:$PATH # 生效 source /etc/profile四、安装node及appium
1 安装node
sudo apt install nodejs
2 安装npm
sudo apt install npm
3 安装appium
udo npm --registry https://registry.npm.taobao.org install -g appium@1.13.0 --unsafe-perm=true --allow-root五、提示
自己安装的时候,配置路径要记得改哦
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)