From 5f70adfb7602ba56f07912f147b5aa287b363e65 Mon Sep 17 00:00:00 2001 From: shgandhi Date: Wed, 14 Sep 2022 09:57:02 -0700 Subject: [PATCH] Remove redundant backslashes from install_deps.sh --- install_deps.sh | 500 ++++++++++++++++++++++++------------------------ 1 file changed, 250 insertions(+), 250 deletions(-) diff --git a/install_deps.sh b/install_deps.sh index 41042cd3f1..09842a4c16 100755 --- a/install_deps.sh +++ b/install_deps.sh @@ -15,32 +15,32 @@ echo ca_certificate=/etc/ssl/certs/ca-certificates.crt > ~/.wgetrc # Install tools install_build_tools() { - apt-get update && apt-get ${APT_GET_FLAGS} install \ - autoconf \ - automake \ - libtool \ - build-essential \ - clang-9 \ - clang-format-10 \ - clang-tidy-10 \ - curl \ - gdb \ - gdbserver \ - git \ - iptables \ - less \ - llvm-9 \ - lzip \ - net-tools \ - parallel \ - pkg-config \ - psmisc \ - python3-pip \ - python3-setuptools \ - python3-dev \ - sudo \ - vim \ - iproute2 \ + apt-get update && apt-get ${APT_GET_FLAGS} install + autoconf + automake + libtool + build-essential + clang-9 + clang-format-10 + clang-tidy-10 + curl + gdb + gdbserver + git + iptables + less + llvm-9 + lzip + net-tools + parallel + pkg-config + psmisc + python3-pip + python3-setuptools + python3-dev + sudo + vim + iproute2 wget update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-9/bin/clang 100 @@ -56,68 +56,68 @@ install_build_tools() { # Install 3rd parties install_third_party_libraries() { - apt-get ${APT_GET_FLAGS} install \ - libboost-system1.65-dev \ - libboost-program-options1.65-dev \ - libboost1.65-dev \ - libbz2-dev \ - liblz4-dev \ - libs3-dev \ - libsnappy-dev \ - libssl-dev \ - libyaml-cpp-dev \ - libz-dev \ + apt-get ${APT_GET_FLAGS} install + libboost-system1.65-dev + libboost-program-options1.65-dev + libboost1.65-dev + libbz2-dev + liblz4-dev + libs3-dev + libsnappy-dev + libssl-dev + libyaml-cpp-dev + libz-dev libzstd-dev pip3 install --upgrade wheel && pip3 install --upgrade trio - pip3 install \ - eliot eliot-tree \ - tatsu==4.4.0 \ - pytest \ - pycryptodome \ - ecdsa \ - protobuf==3.21.5 \ - grpcio==1.48.0 \ + pip3 install + eliot eliot-tree + tatsu==4.4.0 + pytest + pycryptodome + ecdsa + protobuf==3.21.5 + grpcio==1.48.0 grpcio-tools==1.48.0 } # Build 3rd parties install_cmake() { - wget ${WGET_FLAGS} -O cmake-linux.sh \ - https://github.com/Kitware/CMake/releases/download/v3.20.2/cmake-3.20.2-linux-x86_64.sh && \ + wget ${WGET_FLAGS} -O cmake-linux.sh + https://github.com/Kitware/CMake/releases/download/v3.20.2/cmake-3.20.2-linux-x86_64.sh && sh cmake-linux.sh -- --skip-license --prefix=/usr } install_HdrHistogram_lib() { cd ${HOME} - wget ${WGET_FLAGS} \ - https://github.com/HdrHistogram/HdrHistogram_c/archive/0.9.12.tar.gz && \ - tar -xzf 0.9.12.tar.gz && \ - rm 0.9.12.tar.gz && \ - cd HdrHistogram_c-0.9.12 && \ - mkdir build && cd build && \ - cmake .. && \ - make -j$(nproc) && \ - make install && \ - cd ${HOME} && \ + wget ${WGET_FLAGS} + https://github.com/HdrHistogram/HdrHistogram_c/archive/0.9.12.tar.gz && + tar -xzf 0.9.12.tar.gz && + rm 0.9.12.tar.gz && + cd HdrHistogram_c-0.9.12 && + mkdir build && cd build && + cmake .. && + make -j$(nproc) && + make install && + cd ${HOME} && rm -r HdrHistogram_c-0.9.12 } install_log4cpp_lib() { cd ${HOME} - wget ${WGET_FLAGS} \ - https://github.com/log4cplus/log4cplus/releases/download/REL_2_0_4/log4cplus-2.0.4.tar.gz && \ - tar -xzf log4cplus-2.0.4.tar.gz && \ - rm log4cplus-2.0.4.tar.gz && \ - cd log4cplus-2.0.4 && \ - autoreconf -f -i && \ - ./configure CXXFLAGS="--std=c++11 -march=x86-64 -mtune=generic" \ - --enable-static && \ - make -j$(nproc) && \ - make install && \ - cd ${HOME} && \ + wget ${WGET_FLAGS} + https://github.com/log4cplus/log4cplus/releases/download/REL_2_0_4/log4cplus-2.0.4.tar.gz && + tar -xzf log4cplus-2.0.4.tar.gz && + rm log4cplus-2.0.4.tar.gz && + cd log4cplus-2.0.4 && + autoreconf -f -i && + ./configure CXXFLAGS="--std=c++11 -march=x86-64 -mtune=generic" + --enable-static && + make -j$(nproc) && + make install && + cd ${HOME} && rm -r log4cplus-2.0.4 } @@ -125,25 +125,25 @@ install_log4cpp_lib() { install_googletest() { cd ${HOME} - git clone https://github.com/google/googletest.git && \ - cd googletest && \ - git checkout e93da23920e5b6887d6a6a291c3a59f83f5b579e && \ - mkdir _build && cd _build && \ - cmake -DCMAKE_CXX_FLAGS="-std=c++11 -march=x86-64 -mtune=generic" .. && \ - make -j$(nproc) && \ - make install && \ - cd ${HOME} && \ + git clone https://github.com/google/googletest.git && + cd googletest && + git checkout e93da23920e5b6887d6a6a291c3a59f83f5b579e && + mkdir _build && cd _build && + cmake -DCMAKE_CXX_FLAGS="-std=c++11 -march=x86-64 -mtune=generic" .. && + make -j$(nproc) && + make install && + cd ${HOME} && rm -r googletest cd ${HOME} - git clone https://github.com/google/benchmark.git && \ - cd benchmark && \ - git checkout f91b6b42b1b9854772a90ae9501464a161707d1e && \ - cmake -E make_directory "build" && \ - cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../ && \ - cmake --build "build" --config Release && \ + git clone https://github.com/google/benchmark.git && + cd benchmark && + git checkout f91b6b42b1b9854772a90ae9501464a161707d1e && + cmake -E make_directory "build" && + cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../ && + cmake --build "build" --config Release && cmake --build "build" --config Release --target install - cd ${HOME} && \ + cd ${HOME} && rm -r benchmark } @@ -152,86 +152,86 @@ install_googletest() { # cryptopp-pem provides PEM parsing for Wei Dai's Crypto++ (cryptopp). install_cryptopp() { cd ${HOME} - wget ${WGET_FLAGS} \ - https://github.com/weidai11/cryptopp/archive/CRYPTOPP_8_2_0.tar.gz && \ - tar -xzf CRYPTOPP_8_2_0.tar.gz && \ - rm CRYPTOPP_8_2_0.tar.gz && \ - git clone https://github.com/noloader/cryptopp-pem.git && \ - cd cryptopp-pem && \ - git checkout CRYPTOPP_8_2_0 && \ - cp *.h *.cpp ${HOME}/cryptopp-CRYPTOPP_8_2_0 && \ - cd ${HOME}/cryptopp-CRYPTOPP_8_2_0 && \ - rm -r ${HOME}/cryptopp-pem && \ - CXX_FLAGS="-march=x86-64 -mtune=generic" make -j$(nproc) && \ - make install && \ + wget ${WGET_FLAGS} + https://github.com/weidai11/cryptopp/archive/CRYPTOPP_8_2_0.tar.gz && + tar -xzf CRYPTOPP_8_2_0.tar.gz && + rm CRYPTOPP_8_2_0.tar.gz && + git clone https://github.com/noloader/cryptopp-pem.git && + cd cryptopp-pem && + git checkout CRYPTOPP_8_2_0 && + cp *.h *.cpp ${HOME}/cryptopp-CRYPTOPP_8_2_0 && + cd ${HOME}/cryptopp-CRYPTOPP_8_2_0 && + rm -r ${HOME}/cryptopp-pem && + CXX_FLAGS="-march=x86-64 -mtune=generic" make -j$(nproc) && + make install && rm -r ${HOME}/cryptopp-CRYPTOPP_8_2_0 } install_gmp_lib() { cd ${HOME} - wget ${WGET_FLAGS} https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz && \ - tar --lzip -xf gmp-6.1.2.tar.lz && \ - cd gmp-6.1.2/ && \ - ./configure --with-pic --enable-cxx --disable-fat --build x86_64-linux-gnu && \ - make -j$(nproc) && \ - make check && \ - make install && \ - ldconfig && \ - cd ${HOME} && \ + wget ${WGET_FLAGS} https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz && + tar --lzip -xf gmp-6.1.2.tar.lz && + cd gmp-6.1.2/ && + ./configure --with-pic --enable-cxx --disable-fat --build x86_64-linux-gnu && + make -j$(nproc) && + make check && + make install && + ldconfig && + cd ${HOME} && rm -r gmp-6.1.2.tar.lz gmp-6.1.2 } install_relic_toolkit() { cd ${HOME} - git clone https://github.com/relic-toolkit/relic && \ - cd relic && \ - git checkout 0998bfcb6b00aec85cf8d755d2a70d19ea3051fd && \ - mkdir build && \ - cd build && \ - cmake -DALLOC=AUTO -DWSIZE=64 \ - -DWORD=64 -DRAND=UDEV \ - -DSHLIB=ON -DSTLIB=ON \ - -DSTBIN=OFF -DTIMER=HREAL \ - -DCHECK=on -DVERBS=on \ - -DARITH=x64-asm-254 -DFP_PRIME=254 \ - -DFP_METHD="INTEG;INTEG;INTEG;MONTY;LOWER;SLIDE" \ - -DCOMP="-O3 -funroll-loops -fomit-frame-pointer -finline-small-functions -march=x86-64 -mtune=generic -fPIC" \ - -DFP_PMERS=off -DFP_QNRES=on \ - -DFPX_METHD="INTEG;INTEG;LAZYR" -DPP_METHD="LAZYR;OATEP" .. && \ - make -j$(nproc) && \ - make install && \ - cd ${HOME} && \ + git clone https://github.com/relic-toolkit/relic && + cd relic && + git checkout 0998bfcb6b00aec85cf8d755d2a70d19ea3051fd && + mkdir build && + cd build && + cmake -DALLOC=AUTO -DWSIZE=64 + -DWORD=64 -DRAND=UDEV + -DSHLIB=ON -DSTLIB=ON + -DSTBIN=OFF -DTIMER=HREAL + -DCHECK=on -DVERBS=on + -DARITH=x64-asm-254 -DFP_PRIME=254 + -DFP_METHD="INTEG;INTEG;INTEG;MONTY;LOWER;SLIDE" + -DCOMP="-O3 -funroll-loops -fomit-frame-pointer -finline-small-functions -march=x86-64 -mtune=generic -fPIC" + -DFP_PMERS=off -DFP_QNRES=on + -DFPX_METHD="INTEG;INTEG;LAZYR" -DPP_METHD="LAZYR;OATEP" .. && + make -j$(nproc) && + make install && + cd ${HOME} && rm -r relic } install_rocksdb_lib() { cd ${HOME} - wget ${WGET_FLAGS} \ - https://github.com/facebook/rocksdb/archive/v6.8.1.tar.gz && \ - tar -xzf v6.8.1.tar.gz && \ - rm v6.8.1.tar.gz && \ - cd rocksdb-6.8.1 && \ - EXTRA_CXXFLAGS="-fno-omit-frame-pointer -g " \ - EXTRA_CFLAGS="-fno-omit-frame-pointer -g " \ - PORTABLE=1 make -j$(nproc) USE_RTTI=1 shared_lib && \ - PORTABLE=1 make install-shared && \ - cd ${HOME} && \ + wget ${WGET_FLAGS} + https://github.com/facebook/rocksdb/archive/v6.8.1.tar.gz && + tar -xzf v6.8.1.tar.gz && + rm v6.8.1.tar.gz && + cd rocksdb-6.8.1 && + EXTRA_CXXFLAGS="-fno-omit-frame-pointer -g " + EXTRA_CFLAGS="-fno-omit-frame-pointer -g " + PORTABLE=1 make -j$(nproc) USE_RTTI=1 shared_lib && + PORTABLE=1 make install-shared && + cd ${HOME} && rm -r rocksdb-6.8.1 } install_rapidcheck() { cd ${HOME} - git clone https://github.com/emil-e/rapidcheck.git && \ - cd rapidcheck && \ - git checkout 258d907da00a0855f92c963d8f76eef115531716 && \ - mkdir build && cd build && \ - cmake -DRC_ENABLE_GTEST=ON -DRC_ENABLE_GMOCK=ON .. && \ - make -j$(nproc) && \ - make install && \ - cd ${HOME} && \ + git clone https://github.com/emil-e/rapidcheck.git && + cd rapidcheck && + git checkout 258d907da00a0855f92c963d8f76eef115531716 && + mkdir build && cd build && + cmake -DRC_ENABLE_GTEST=ON -DRC_ENABLE_GMOCK=ON .. && + make -j$(nproc) && + make install && + cd ${HOME} && rm -r rapidcheck } @@ -239,8 +239,8 @@ install_rapidcheck() { # In order to be compatible with the native build install_minio() { cd ${HOME} - wget ${WGET_FLAGS} \ - https://dl.min.io/server/minio/release/linux-amd64/minio && \ + wget ${WGET_FLAGS} + https://dl.min.io/server/minio/release/linux-amd64/minio && chmod 755 ${HOME}/minio pip3 install minio @@ -250,17 +250,17 @@ install_minio() { install_opentracing_lib() { cd ${HOME} - wget ${WGET_FLAGS} \ - https://github.com/opentracing/opentracing-cpp/archive/v1.6.0.tar.gz && \ - tar -xzf v1.6.0.tar.gz && \ - rm v1.6.0.tar.gz && \ - cd opentracing-cpp-1.6.0 && \ - mkdir build && \ - cd build && \ - cmake .. && \ - make -j$(nproc) && \ - make install && \ - cd ../.. && \ + wget ${WGET_FLAGS} + https://github.com/opentracing/opentracing-cpp/archive/v1.6.0.tar.gz && + tar -xzf v1.6.0.tar.gz && + rm v1.6.0.tar.gz && + cd opentracing-cpp-1.6.0 && + mkdir build && + cd build && + cmake .. && + make -j$(nproc) && + make install && + cd ../.. && rm -r opentracing-cpp-1.6.0 } @@ -268,14 +268,14 @@ install_opentracing_lib() { # ASIO only (without boost). This allows us to upgrade ASIO independently. install_asio() { cd ${HOME} - wget ${WGET_FLAGS} \ - https://sourceforge.net/projects/asio/files/asio/1.18.1%20%28Stable%29/asio-1.18.1.tar.bz2 && \ - tar -xf asio-1.18.1.tar.bz2 && \ - cd asio-1.18.1 && \ - ./configure && \ - make -j$(nproc) && \ - make install && \ - cd ${HOME} && \ + wget ${WGET_FLAGS} + https://sourceforge.net/projects/asio/files/asio/1.18.1%20%28Stable%29/asio-1.18.1.tar.bz2 && + tar -xf asio-1.18.1.tar.bz2 && + cd asio-1.18.1 && + ./configure && + make -j$(nproc) && + make install && + cd ${HOME} && rm -rf asio* } @@ -284,14 +284,14 @@ install_asio() { install_openssl() { OPENSSL_VER='1.1.1g' cd /usr/local/src/ - wget ${WGET_FLAGS} https://www.openssl.org/source/openssl-${OPENSSL_VER}.tar.gz && \ - tar -xf openssl-${OPENSSL_VER}.tar.gz && \ - rm openssl-${OPENSSL_VER}.tar.gz && \ - cd openssl-${OPENSSL_VER} && \ - ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib && \ - make -j$(nproc) && \ - make install && \ - echo "/usr/local/ssl/lib" > /etc/ld.so.conf.d/openssl-${OPENSSL_VER}.conf && \ + wget ${WGET_FLAGS} https://www.openssl.org/source/openssl-${OPENSSL_VER}.tar.gz && + tar -xf openssl-${OPENSSL_VER}.tar.gz && + rm openssl-${OPENSSL_VER}.tar.gz && + cd openssl-${OPENSSL_VER} && + ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib && + make -j$(nproc) && + make install && + echo "/usr/local/ssl/lib" > /etc/ld.so.conf.d/openssl-${OPENSSL_VER}.conf && rm -rf /usr/local/src/openssl-${OPENSSL_VER} } @@ -300,73 +300,73 @@ install_openssl() { # https://github.com/grpc/grpc/blob/master/test/distrib/cpp/run_distrib_test_cmake.sh install_grpc() { cd ${HOME} -git clone -b v1.48.x --depth 1 --recurse-submodules https://github.com/grpc/grpc && \ - mkdir -p ${HOME}/grpc/cmake/build && \ - cd ${HOME}/grpc/cmake/build && \ - cmake -DCMAKE_CXX_STANDARD=17 \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_SHARED_LIBS=ON \ - -DgRPC_INSTALL=ON \ - -DgRPC_BUILD_TESTS=OFF \ - -DgRPC_SSL_PROVIDER=package \ - -DCMAKE_INSTALL_PREFIX=/opt/grpc \ - ../.. && \ - make -j$(nproc) install && \ - cd ${HOME} && \ + git clone -b v1.48.x --depth 1 --recurse-submodules https://github.com/grpc/grpc && + mkdir -p ${HOME}/grpc/cmake/build && + cd ${HOME}/grpc/cmake/build && + cmake -DCMAKE_CXX_STANDARD=17 + -DCMAKE_BUILD_TYPE=Release + -DBUILD_SHARED_LIBS=ON + -DgRPC_INSTALL=ON + -DgRPC_BUILD_TESTS=OFF + -DgRPC_SSL_PROVIDER=package + -DCMAKE_INSTALL_PREFIX=/opt/grpc + ../.. && + make -j$(nproc) install && + cd ${HOME} && rm -r ${HOME}/grpc } install_prometheus() { # libcurl needed for Prometheus-cpp cd ${HOME} - curl --ssl-reqd --output curl.tar.xz https://curl.se/download/curl-7.66.0.tar.xz && \ - tar xf curl.tar.xz && \ - cd curl-7.66.0 && \ - ./configure --with-ssl --prefix=/usr/local && \ - make -j$(nproc) && \ - make install && \ - cd ${HOME} && \ + curl --ssl-reqd --output curl.tar.xz https://curl.se/download/curl-7.66.0.tar.xz && + tar xf curl.tar.xz && + cd curl-7.66.0 && + ./configure --with-ssl --prefix=/usr/local && + make -j$(nproc) && + make install && + cd ${HOME} && rm -r curl.tar.xz curl-7.66.0 # Prometheus-cpp cd ${HOME} - git clone -b v0.13.0 --depth 1 --recurse-submodules https://github.com/jupp0r/prometheus-cpp.git && \ - cd prometheus-cpp && \ - mkdir _build && \ - cd _build && \ - cmake -DBUILD_SHARED_LIBS=OFF \ - -DCMAKE_INSTALL_PREFIX=/usr/local \ - .. && \ - cmake --build . --parallel $(nproc) && \ - cmake --install . && \ - cd ${HOME} && \ + git clone -b v0.13.0 --depth 1 --recurse-submodules https://github.com/jupp0r/prometheus-cpp.git && + cd prometheus-cpp && + mkdir _build && + cd _build && + cmake -DBUILD_SHARED_LIBS=OFF + -DCMAKE_INSTALL_PREFIX=/usr/local + .. && + cmake --build . --parallel $(nproc) && + cmake --install . && + cd ${HOME} && rm -r prometheus-cpp } install_json_lib(){ cd ${HOME} - git clone -b v3.9.1 --depth 1 https://github.com/nlohmann/json && \ - cd json && \ - mkdir build && \ - cd build && \ - cmake .. && \ - make -j$(nproc) && \ - make install && \ - cd ${HOME} && \ + git clone -b v3.9.1 --depth 1 https://github.com/nlohmann/json && + cd json && + mkdir build && + cd build && + cmake .. && + make -j$(nproc) && + make install && + cd ${HOME} && rm -r json } install_httplib() { cd ${HOME} - git clone -b v0.9.7 --depth 1 https://github.com/yhirose/cpp-httplib && \ - cd cpp-httplib && \ - mkdir build && \ - cd build && \ - cmake -DCMAKE_BUILD_TYPE=Release .. && \ - cmake --build . --target install && \ - cd ${HOME} && \ + git clone -b v0.9.7 --depth 1 https://github.com/yhirose/cpp-httplib && + cd cpp-httplib && + mkdir build && + cd build && + cmake -DCMAKE_BUILD_TYPE=Release .. && + cmake --build . --target install && + cd ${HOME} && rm -r cpp-httplib } @@ -374,14 +374,14 @@ install_httplib() { # Thrift is the protocol used by Jaeger to export metrics install_thrift_lib(){ cd $HOME -wget ${WGET_FLAGS} https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz && \ - tar xzf thrift-0.11.0.tar.gz && \ - cd thrift-0.11.0 && \ - ./configure CXXFLAGS='-g -O2' \ - --without-python --enable-static --disable-shared \ - --disable-tests --disable-tutorial --disable-coverage && \ - make -j$(nproc) install && \ - cd ${HOME} && \ +wget ${WGET_FLAGS} https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz && + tar xzf thrift-0.11.0.tar.gz && + cd thrift-0.11.0 && + ./configure CXXFLAGS='-g -O2' + --without-python --enable-static --disable-shared + --disable-tests --disable-tutorial --disable-coverage && + make -j$(nproc) install && + cd ${HOME} && rm -r thrift-0.11.0 thrift-0.11.0.tar.gz } @@ -390,18 +390,18 @@ install_jaegertracing_cpp_lib(){ # Tracing via Jaeger and Thrift protocol # Copy FindThrift.cmake because installing Thrift does not include a CMake definition cd $HOME - git clone -b v0.7.0 --depth 1 https://github.com/jaegertracing/jaeger-client-cpp && \ - cd jaeger-client-cpp && \ - mkdir build && \ - cd build && \ - cmake -DHUNTER_ENABLED=OFF -DHUNTER_BUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF \ - -DBUILD_SHARED_LIBS=OFF -DJAEGERTRACING_BUILD_EXAMPLES=OFF \ - -DJAEGERTRACING_PLUGIN=OFF -DJAEGERTRACING_COVERAGE=OFF \ - -DJAEGERTRACING_BUILD_CROSSDOCK=OFF -DJAEGERTRACING_WITH_YAML_CPP=OFF \ - .. && \ - make -j$(nproc) install && \ - cp ../cmake/Findthrift.cmake /usr/share/cmake-3.20/Modules/ && \ - cd ${HOME} && \ + git clone -b v0.7.0 --depth 1 https://github.com/jaegertracing/jaeger-client-cpp && + cd jaeger-client-cpp && + mkdir build && + cd build && + cmake -DHUNTER_ENABLED=OFF -DHUNTER_BUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF + -DBUILD_SHARED_LIBS=OFF -DJAEGERTRACING_BUILD_EXAMPLES=OFF + -DJAEGERTRACING_PLUGIN=OFF -DJAEGERTRACING_COVERAGE=OFF + -DJAEGERTRACING_BUILD_CROSSDOCK=OFF -DJAEGERTRACING_WITH_YAML_CPP=OFF + .. && + make -j$(nproc) install && + cp ../cmake/Findthrift.cmake /usr/share/cmake-3.20/Modules/ && + cd ${HOME} && rm -r jaeger-client-cpp # Jaeger really wants to find BoostConfig.cmake, not FindBoost.cmake. @@ -414,14 +414,14 @@ install_jaegertracing_cpp_lib(){ install_cppcheck(){ cd ${HOME} CPPCHECK_VER="2.8" - wget ${WGET_FLAGS} https://sourceforge.net/projects/cppcheck/files/cppcheck/${CPPCHECK_VER}/cppcheck-${CPPCHECK_VER}.tar.gz/download -O ./cppcheck.tar.gz && \ - tar -xvzf cppcheck.tar.gz && rm ./cppcheck.tar.gz && \ - cd cppcheck-${CPPCHECK_VER} && \ - mkdir build && cd build && \ - cmake .. && \ - cmake --build . && \ - make install && \ - cd ${HOME} && \ + wget ${WGET_FLAGS} https://sourceforge.net/projects/cppcheck/files/cppcheck/${CPPCHECK_VER}/cppcheck-${CPPCHECK_VER}.tar.gz/download -O ./cppcheck.tar.gz && + tar -xvzf cppcheck.tar.gz && rm ./cppcheck.tar.gz && + cd cppcheck-${CPPCHECK_VER} && + mkdir build && cd build && + cmake .. && + cmake --build . && + make install && + cd ${HOME} && rm -rf cppcheck-${CPPCHECK_VER} } @@ -430,14 +430,14 @@ install_ccache(){ # ccache is used to accelerate C/C++ recompilation CCACHE_VER=4.6.1 cd "$HOME" - wget https://github.com/ccache/ccache/releases/download/v${CCACHE_VER}/ccache-${CCACHE_VER}.tar.xz && \ - tar xvf ccache-${CCACHE_VER}.tar.xz && \ - cd ccache-${CCACHE_VER} && \ - mkdir build && cd build && \ - cmake -DCMAKE_BUILD_TYPE=Release -DREDIS_STORAGE_BACKEND=OFF .. && \ - make && \ - make install && \ - cd "${HOME}" && \ + wget https://github.com/ccache/ccache/releases/download/v${CCACHE_VER}/ccache-${CCACHE_VER}.tar.xz && + tar xvf ccache-${CCACHE_VER}.tar.xz && + cd ccache-${CCACHE_VER} && + mkdir build && cd build && + cmake -DCMAKE_BUILD_TYPE=Release -DREDIS_STORAGE_BACKEND=OFF .. && + make && + make install && + cd "${HOME}" && rm -rf ccache-${CCACHE_VER} ccache-${CCACHE_VER}.tar.xz mkdir -p /mnt/ccache/ }