1, download appium before the command line check
$ Java-versionjava Version "1.8.0_71" Java (tm) SE Runtime Environment (build 1.8.0_71-b15) Java HotSpot (tm) 64-bit Server V M (build 25.71-b15, Mixed mode)
$ brew-vhomebrew 0.9.9 (git revision 1158; last commit 2016-07-20) Homebrew/homebrew-core (git revision 666b; last commit 2016-07-20) $ node-vv6.3.0
If brew and node are not installed:
A. Install the brew command
$ruby-E "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
B. Install the node command
$brew Install node
2, Installation Appium
A. Giving local files readable writable executable permission
$sudo Chmod-r 777/usr/local
B. Install appium under non-root permissions
$NPM install-g Appium
C. Installing the Appium Client
$git clone https://github.com/appium/python-client.git$cd python-client/$sudo python setup.py install
D. Install Appium-doctor (users that are already installed can be ignored)
E. Installing the APPIUM.DMG client
Download link Address: https://bitbucket.org/appium/appium.app/downloads/
3. Check Appium for successful installation
$ appium-doctorinfo Appiumdoctor # # # Diagnostic Starting # # #info Appiumdoctor? Xcode is installed at:/applications/xcode.app/contents/developerwarn appiumdoctor? Xcode Command Line Tools is not installed!info appiumdoctor? Devtoolssecurity is Enabled.info appiumdoctor? The Authorization DB is set up Properly.info appiumdoctor? The node. JS binary was found at:/usr/local/bin/nodeinfo appiumdoctor? HOME is set to:/users/macbookwarn appiumdoctor? Android_home is not set! WARN appiumdoctor? Java_home is set to '/system/library/frameworks/javavm.framework/versions/1.6.0/home ' and this was not a valid path! WARN appiumdoctor? ADB could not being found because Android_home is not set! WARN appiumdoctor? Android could not being found because Android_home is not set! WARN appiumdoctor? Emulator could not being found because android_home are not set!info appiumdoctor # # Diagnostic completed, 6 fixes needed. # # #info Appiumdoctor Info appiumdoctor # # Manual Fixes Needed # # #info APPIUMDOctor the configuration cannot is automatically fixed, please do the following First:warn appiumdoctor-manually Configur E android_home. WARN appiumdoctor-manually Configure Java_home. WARN appiumdoctor-manually Configure Android_home and run Appium-doctor again.info appiumdoctor # # #info appiumdoctor inf o appiumdoctor Bye, run Appium-doctor again when all manual fixes has been applied!info Appiumdoctor
Some of the above software is not installed, next make up.
A.xcode Command Line Tools
$ xcode-select--installxcode-select:note:install requested for command line developer tools
B.android SDK
: https://developer.android.com/studio/install.html
After the download is complete, install the online step by step and download the SDK, configure the environment variables
# Vim/etc/profileexport Android_home=/users/macbook/library/android/sdkexport path=${path}:${android_home}/ Toolsexport Path=${path}:${android_home}/platform-tools
C. After downloading the Java installation Online, configure the environment variables
# Vim/etc/profileexport Java_home=/library/java/javavirtualmachines/jdk1.8.0_71.jdk/contents/homeexport PATH=$ Java_home/bin: $PATHexport classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Check again for appium successful installation
$ appium-doctorinfo Appiumdoctor # # # Diagnostic Starting # # #info Appiumdoctor? Xcode is installed at:/applications/xcode.app/contents/developerinfo appiumdoctor? Xcode Command Line Tools is Installed.info appiumdoctor? Devtoolssecurity is Enabled.info appiumdoctor? The Authorization DB is set up Properly.info appiumdoctor? The node. JS binary was found at:/usr/local/bin/nodeinfo appiumdoctor? HOME is set to:/users/macbookinfo appiumdoctor? Android_home is set to:/users/macbook/library/android/sdkinfo appiumdoctor? Java_home is set to:/library/java/javavirtualmachines/jdk1.8.0_71.jdk/contents/homeinfo AppiumDoctor? ADB exists at:/users/macbook/library/android/sdk/platform-tools/adbinfo appiumdoctor? Android exists at:/users/macbook/library/android/sdk/tools/androidinfo appiumdoctor? Emulator exists at:/users/macbook/library/android/sdk/tools/emulatorinfo appiumdoctor # # # Diagnostic completed, no fix Needed. # # #info Appiumdoctor Info appiumdoctor everythingLooks good, bye!info appiumdoctor
Appium Environment Configuration-mac