Steps to install Appium on Linux (tested on fedora 23)


Install Appium on linux Fedora 23

$ sudo dnf update -y
$ sudo dnf groupinstall -y “Development Tools”
$ sudo dnf install -y autoconf automake libtool gettext git scons cmake flex bison libcurl-devel curl ncurses-devel ruby bzip2-devel expat-devel
$ git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew

Add to .bashrc

# Until LinuxBrew is fixed, the following is required.
# See: https://github.com/Homebrew/linuxbrew/issues/47

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH

# Setup linux brew

export LINUXBREWHOME=$HOME/.linuxbrew
export PATH=$LINUXBREWHOME/bin:$PATH
export MANPATH=$LINUXBREWHOME/man:$MANPATH
export PKG_CONFIG_PATH=$LINUXBREWHOME/lib64/pkgconfig:$LINUXBREWHOME/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$LINUXBREWHOME/lib64:$LINUXBREWHOME/lib:$LD_LIBRARY_PATH

$ sudo dnf install gcc-c++ (to install g++)
$ ln -s $(which gcc) ~/.linuxbrew/bin/gcc-4.4
$ ln -s $(which g++) ~/.linuxbrew/bin/g+±4.4
$ brew update

$ brew install homebrew/versions/node012

# get node.js ( brew install homebrew/versions/node012 , <issues in installing last node version,default gcc (GCC) 5.1.1 20150618 doesn't compile node 5.1.0, which come with brew 0.9.5 in fedora 23> $ brew search node )

$ npm install -g appium # get appium
$ npm install wd # get appium client
$ appium & # start appium