X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Fshell%2Finstall-git-pistache.sh;h=dd7812bec31afe5e116fe2c1716f61384f8ade09;hb=66e2ad4a74b00276039a17da1445a39f095e3c31;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..dd7812be --- 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,11 +37,11 @@ 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 && \ - sudo ln -s $LIBRARY_PATH/libpistache.so.0.0.3 $LIBRARY_PATH/libpistache.so.0 && \ + sudo cp prefix/lib/x86_64-linux-gnu/libpistache.so.0.0.5 $LIBRARY_PATH && \ + sudo ln -s $LIBRARY_PATH/libpistache.so.0.0.5 $LIBRARY_PATH/libpistache.so.0 && \ sudo ln -s $LIBRARY_PATH/libpistache.so.0 $LIBRARY_PATH/libpistache.so && \ sudo ldconfig