You will find plenty of tutorials for Appium Installation on Windows,but very few on Ubuntu OS.
This is all about Appium installation on Ubuntu.
Remember Appium throws error if you install via SUDO . So install Appium via npm ,to install Appium via an npm install you need node.js and npm 0.12 or greater.
Make sure you have not installed Node or Appium with sudo.
To install node.js and appium without sudo we use linuxbrew.
Following are the detailed steps to install Appium on Ubuntu 14.04OS.
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
1.Install Ruby (Copy the command to terminal and press enter)
sudo apt-get install build-essential curl git m4 python-setuptools ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
2. Install Linux Brew:(Copy the command to terminal and press enter)
ruby -e “$(curl -fsSL
3.Set Path for brew
Type sudo gedit.bashrc in terminal and copy the below in the .bashrc file.export PATH="$HOME/.linuxbrew/bin:$PATH"export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
4.Install Node:Open new terminal and copy the command and press enter
brew update
brew install node
brew link node
You may face the error as below while installing node:
==> make install
Last 15 lines from /home/tsepak/.cache/Homebrew/Logs/node/02.make:
../deps/v8/src/base/platform/mutex.h:170:3: error: ‘void v8::operator=(const v8::RecursiveMutex&)’ must be a nonstatic member function
../deps/v8/src/base/platform/mutex.h:170:3: error: ‘void v8::operator=(const v8::RecursiveMutex&)’ must be a nonstatic member function
../deps/v8/src/base/platform/mutex.h:184:9: error: ‘LazyStaticInstance’ does not name a type
../deps/v8/src/base/platform/mutex.h:202:17: error: template declaration of ‘LockGuard final’
../deps/v8/src/base/platform/mutex.h:203:2: error: expected primary-expression before ‘public’
../deps/v8/src/base/platform/mutex.h:203:2: error: expected ‘}’ before ‘public’
../deps/v8/src/base/platform/mutex.h:205:14: error: declaration of ‘~LockGuard’ as non-member
../deps/v8/src/base/platform/mutex.h:207:2: error: expected unqualified-id before ‘private’
../deps/v8/src/base/platform/mutex.h:210:3: error: expected unqualified-id before ‘const’
../deps/v8/src/base/platform/mutex.h:210:3: error: expected ‘)’ before ‘const’
../deps/v8/src/base/platform/mutex.h:210:3: error: ‘void operator=(const LockGuard&)’ must be a nonstatic member function
../deps/v8/src/base/platform/mutex.h:211:1: error: expected declaration before ‘}’ token
make[1]: *** [/tmp/node20160122-19291-3znamd/node-v5.4.1/out/Release/obj.target/v8_libplatform/deps/v8/src/libplatform/default-platform.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/tmp/node20160122-19291-3znamd/node-v5.4.1/out’
make: *** [node] Error 2
***This is a compiler issue.If you try to build with an incompatible compiler you will face above error which is a open issue in Git.Try the below
update gcc to 4.9
or try
brew install node --cc=gcc-5
Even if this does'nt work uninstall linuxbrew and start from fresh.
5.Finally Install Appium: Appium is installed via npm
There are two ways to install npm packages :locally or globally.
For appium we need to install npm packages globally.
npm install -g appium
6.Let's Check if the installation is successfull.
Open the terminal and type "appium" and hit enter
appium
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
No comments:
Post a Comment