Sunday 20 November 2016

How to Install Appium on Ubuntu

In this post we will step by step install appium on Ubuntu System. So lets get to the point and start installation.


Note -Appium throws error if you install via SUDO so install Appium via npm


1. To install Appium via an npm you need  node.js and npm 0.12 or greater.


2. To install node.js and appium without sudo we use linuxbrew.

3. To install linuxbrew these are the dependencies

    Ruby 1.8.6 or newer
    GCC 4.2 or newer
    Git 1.7.12.4 or newer
    Linux 2.6.16 or newer
    64-bit x86 or 32-bit ARM platform

4. Install Ruby using below command

sudo apt-get install build-essential curl git m4 python-setuptools ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev


5. Install Linux Brew using below command

ruby -e “$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"



6. Set Path for brew

first type sudo gedit.bashrc in terminal  and copy the below in the .bashrc file.export
 
PATH="$HOME/.linuxbrew/bin:$PATH"exportMANPATH="$HOME/.linuxbrew/share/man:$MANPATH"export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"



7 .Install Node:Open new terminal and copy the command and press enter
brew update
brew install node
brew link node
 


8.Finally Install Appium using below command
npm install -g appium

9.Let's Check if the installation is successfull. Open the terminal and type "appium" and hit enter.You should see something like this in the terminal

info: Welcome to Appium v1.4.12(REV 8db2d00b9afcf2c50a09a80a2e8d56b05a902caf)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug

2 comments:

  1. Hi , I got struck in the 7th step , after running command "brew link node". I'am told with below error.
    -------------------------------------------------
    amrutha@amrutha-Inspiron-3558:~$ brew link node
    Error: No such keg: /home/amrutha/.linuxbrew/Cellar/node
    amrutha@amrutha-Inspiron-3558:
    -----------------------------------

    Can you please help to resolve this , Thanks

    ReplyDelete
  2. It's a nice article, Which you have shared here about the "How to Install Appium on Ubuntu". Your article is very useful for those who are looking to buy this service at an affordable price. I would like to thanks for sharing this post here. Ubuntu Set Static IP

    ReplyDelete