This is a small post that provides you the information on installing Appium on Ubuntu.
Steps to install Appium
Install dependencies required by Appium
Run the below command on your Terminal
sudo apt-get install build-essential \
curl git m4 ruby texinfo libbz2-dev \
libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
Linuxbrew is required to install Node.we need node to install Appium
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
You should see this message on your Terminal
Export path variables
# Add this to end of bashrc vim ~/.bashrc export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH" export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH" export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH" # Source bashrc source ~.bashrc
Installing GCC is recommended by linuxbrew
brew install gcc
brew update brew install node brew link node
npm install -g appium npm install wd
Run the command on your Terminal
Install Appium doctor
Appium doctor is very useful to check the configs required for Appium. Install it be this command:
npm install appium-doctor -g $ appium-doctor
Set path variables for ANDROID_HOME and JAVA_HOME
Set the important env variables in the bashrc file
export ANDROID_HOME=~/Android/Sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$JAVA_HOME/bin source ~/.bashrc
Install Appium Python client
We will use python for our Appium tests so we need to install Appium-Python-Client on our box. Use this command to install. You can skip this step if you’re using Java for your Appium tests:
sudo apt-get install pip sudo pip install Appium-Python-Client
Note: You would need to restart appium in a new terminal once you set the path variables.
Voila! That’s all about this post. Happy testing!!
Checkout my portfolio here: https://confusedcoders.com/nikita-sharma-greenhorn-data-science-student
I am a greenhorn Data Science student with interest in finding patterns in data. My language of choice is Python and I am starting to get my hands dirty with R.
I blog on Medium.com  and ConfusedCoders.com . I share my code on Github.com .