X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fshell%2Finstall-git-pistache.sh;h=07c7746ca5db914457f1848d3e2cd2892bec0f97;hb=1c4a24c882d75b69cebd6d60913ef5db476634b1;hp=c8db9a85d9b3e70bf58251c4b8cf142dd4b67270;hpb=59e74e1f3e1bddd21c22445c2dd5e4f3f9539a5e;p=ci-management.git diff --git a/jjb/shell/install-git-pistache.sh b/jjb/shell/install-git-pistache.sh old mode 100644 new mode 100755 index c8db9a85..07c7746c --- a/jjb/shell/install-git-pistache.sh +++ b/jjb/shell/install-git-pistache.sh @@ -24,19 +24,12 @@ echo "---> install-git-pistache.sh" set -eux echo "---> install Pistache dependencies..." -if type -P python3 > /dev/null 2>&1 -then - echo "Python3 is installed" -else - sudo apt-get install python3 -fi - -sudo apt-get update && sudo apt-get -y install rapidjson-dev libssl-dev -python3 -m pip install meson +export PATH=$PATH:~/.local/bin +export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu -echo "---> install Pistache library.." +sudo apt-get update && sudo apt-get -y install rapidjson-dev libssl-dev ninja-build +python3 -m pip install meson -LIBRARY_PATH=/usr/lib/x86_64-linux-gnu git clone https://github.com/pistacheio/pistache.git && cd pistache && meson setup build \ --buildtype=release \ @@ -44,7 +37,7 @@ git clone https://github.com/pistacheio/pistache.git && cd pistache && meson set -DPISTACHE_BUILD_EXAMPLES=false \ -DPISTACHE_BUILD_TESTS=false \ -DPISTACHE_BUILD_DOCS=false \ - --prefix="$PWD/prefix" \ + --prefix="$PWD/prefix" && \ meson install -C build && \ sudo cp -rf prefix/include/pistache /usr/include/pistache && \ sudo cp prefix/lib/x86_64-linux-gnu/libpistache.so.0.0.3 $LIBRARY_PATH && \