blob: 99fe03c27856da10822721c6e05a871d7eec6ca5 [file] [log] [blame]
Tomas Cejka43380f12015-06-25 22:43:20 +02001#!/bin/bash
2
3if which apt-get >/dev/null 2>/dev/null; then
4sudo apt-get update -qq -y
5sudo apt-get install -qq -y git libjson-c-dev libapr1-dev libaprutil1-dev libxml2-dev apache2-dev pkg-config libtool cmake libtool cmake libxslt1-dev libcurl4-openssl-dev
Tomas Cejkae53c51e2015-06-26 20:22:44 +02006wget http://security.ubuntu.com/ubuntu/pool/main/j/json-c/libjson-c-dev_0.11-3ubuntu1.2_amd64.deb http://security.ubuntu.com/ubuntu/pool/main/j/json-c/libjson-c2_0.11-3ubuntu1.2_amd64.deb
7sudo dpkg -i ./libjson-c-dev_0.11-3ubuntu1.2_amd64.deb libjson-c2_0.11-3ubuntu1.2_amd64.deb
Tomas Cejka43380f12015-06-25 22:43:20 +02008else
9sudo yum install -y git json-c-devel apr-devel apr-util-devel libxml2-devel httpd-devel pkg-config libtool cmake libxslt-devel curl-devel
10fi
11
12(
13wget -q https://red.libssh.org/attachments/download/107/libssh-0.6.4.tar.gz&&
14tar -xf libssh-0.6.4.tar.gz&&mkdir lssh&&cd lssh&&cmake ~/libssh-0.6.4&&sudo make install
15)
16
17(
18git clone git://github.com/cejkato2/libwebsockets lws&&mkdir lws/b&&cd lws/b&&cmake ..&&sudo make install
19)
20
21(
22git clone git://github.com/CESNET/libnetconf&&cd libnetconf&&./configure&&sudo make install
23)
24
25(
26git clone git://github.com/mbj4668/pyang&&cd pyang&&sudo python setup.py install
27)
28