From 1ac5888819a7d4db806264e4b2bb6ed155e87ca1 Mon Sep 17 00:00:00 2001 From: "drenfong.wang" Date: Wed, 23 Jan 2019 04:51:57 +0000 Subject: libssh version too low in ubuntu 16, build from source Change-Id: I52f3a12881d80014de0ecc4a026979874f7b9a0f Signed-off-by: drenfong.wang --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bce9130..94dab5d 100644 --- a/Makefile +++ b/Makefile @@ -38,9 +38,9 @@ endif DEB_DEPENDS = curl build-essential autoconf automake ccache DEB_DEPENDS += bison flex libpcre3-dev libev-dev libavl-dev libprotobuf-c-dev protobuf-c-compiler libcmocka-dev -DEB_DEPENDS += cmake ninja-build libssh-dev python-pkgconfig swig python-dev libssl-dev +DEB_DEPENDS += cmake ninja-build python-pkgconfig python-dev libssl-dev -RPM_DEPENDS = curl autoconf automake ccache bison flex pcre-devel libev-devel protobuf-c-devel protobuf-c-compiler libcmocka-devel cmake ninja-build libssh-devel python-pkgconfig python-devel openssl-devel graphviz wget +RPM_DEPENDS = curl autoconf automake ccache bison flex pcre-devel libev-devel protobuf-c-devel protobuf-c-compiler libcmocka-devel cmake ninja-build python-pkgconfig python-devel openssl-devel graphviz wget gcc gcc-c++ ifeq ($(findstring y,$(UNATTENDED)),y) CONFIRM=-y @@ -133,6 +133,11 @@ endif @rm -rf $(BR)/downloads @mkdir -p $(BR)/downloads/&&cd $(BR)/downloads/\ \ + &&wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz\ + &&tar xvf libssh-0.7.5.tar.gz && cd libssh-0.7.5 && mkdir build && cd build\ + &&cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr ..\ + &&make&&sudo make install && sudo ldconfig&&cd ../../\ + \ &&wget https://github.com/CESNET/libyang/archive/v0.16-r3.tar.gz\ &&tar xvf v0.16-r3.tar.gz && cd libyang-0.16-r3 && mkdir -p build&& cd build\ &&cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr ..\ -- cgit 1.2.3-korg