X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fshell%2Finstall-git-pistache.sh;h=07c7746ca5db914457f1848d3e2cd2892bec0f97;hb=refs%2Fchanges%2F57%2F9057%2F1;hp=6e95fbb94653fd18aae6f6b2f89807a04c76a864;hpb=73850eff5cca676b7d1763dfb39ed4740111f6b1;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 6e95fbb9..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 +export PATH=$PATH:~/.local/bin +export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu -sudo apt-get update && sudo apt-get install rapidjson-dev libssl-dev -python3.8 -m pip install meson +sudo apt-get update && sudo apt-get -y install rapidjson-dev libssl-dev ninja-build +python3 -m pip install meson -echo "---> install Pistache library.." - -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 && \