- 安装brew,可参考点击打开链接
非root用户下命令行执行:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
配置环境变量:
echo 'export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"' >>~/.profile
echo 'export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"' >>~/.profile
echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >>~/.profile
su到root用户,使之生效执行命令:source ~/.bash_profile
安装gcc:brew install gcc
在安装brew过程中,可能user权限不够,命令来凑:su到root用户,执行 chmod 777 "你想要的目录名"
安装完成执行:brew -v
[app_tester@localhost root]$ brew -v
Homebrew >=1.4.0 (shallow or no git repository)
Homebrew/homebrew-core (git revision 9bd0; last commit 2018-06-11)
- 安装appium
brew install node # get node.js
npm install -g appium # get appium
npm install wd # get appium client
appium # start appium to see whether it works
安装完成:
[app_tester@localhost root]$ appium -v
1.8.1