Commit 011c9ac8 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for installing CPP-JWT

parent 240bfc95
...@@ -272,7 +272,7 @@ install_nghttp2_from_git() { ...@@ -272,7 +272,7 @@ install_nghttp2_from_git() {
#arg2 is debug (0 or 1) (install debug libraries) #arg2 is debug (0 or 1) (install debug libraries)
install_cpp_jwt_from_git() { install_cpp_jwt_from_git() {
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
read -p "Do you want to install Cpp-jwt ? <y/N> " prompt read -p "Do you want to install CPP-JWT ? <y/N> " prompt
OPTION="" OPTION=""
else else
prompt='y' prompt='y'
...@@ -291,12 +291,21 @@ install_cpp_jwt_from_git() { ...@@ -291,12 +291,21 @@ install_cpp_jwt_from_git() {
libgtest-dev \ libgtest-dev \
libssl-dev libssl-dev
ret=$?;[[ $ret -ne 0 ]] && return $ret ret=$?;[[ $ret -ne 0 ]] && return $ret
#install libgtest
pushd $OPENAIRCN_DIR/build/ext
cd /usr/src/gtest
$SUDO cmake CMakeLists.txt
$SUDO make
$SUDO cp *.a /usr/lib
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
popd
GIT_URL=https://github.com/arun11299/cpp-jwt.git GIT_URL=https://github.com/arun11299/cpp-jwt.git
echo "Install Cpp-jwt from $GIT_URL" echo "Install Cpp-jwt from $GIT_URL"
pushd $OPENAIRCN_DIR/build/ext pushd $OPENAIRCN_DIR/build/ext
echo "Downloading Cpp-jwt" echo "Downloading CPP-JWT"
if [[ $OPTION =~ [yY](es)* ]]
if [[ $prompt =~ [yY](es)* ]]
then then
$SUDO rm -rf cpp-jwt $SUDO rm -rf cpp-jwt
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment