Loading install_requirements.sh +16 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,22 @@ ALL_COMPONENTS="${ALL_COMPONENTS} dbscanserving opticalattackmitigator opticalat ALL_COMPONENTS="${ALL_COMPONENTS} l3_attackmitigator l3_centralizedattackdetector l3_distributedattackdetector" TFS_COMPONENTS=${TFS_COMPONENTS:-$ALL_COMPONENTS} # Some components require libyang built from source code # - Ref: https://github.com/CESNET/libyang # - Ref: https://github.com/CESNET/libyang-python/ echo "Installing libyang..." sudo apt-get --yes --quiet --quiet update sudo apt-get --yes --quiet --quiet install build-essential cmake libpcre2-dev python3-dev python3-cffi mkdir libyang git clone https://github.com/CESNET/libyang.git libyang mkdir libyang/build cd libyang/build cmake -D CMAKE_BUILD_TYPE:String="Release" .. make sudo make install sudo ldconfig cd ../.. echo "Updating PIP, SetupTools and Wheel..." pip install --upgrade pip # ensure next packages get the latest versions pip install --upgrade setuptools wheel # bring basic tooling for other requirements Loading Loading
install_requirements.sh +16 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,22 @@ ALL_COMPONENTS="${ALL_COMPONENTS} dbscanserving opticalattackmitigator opticalat ALL_COMPONENTS="${ALL_COMPONENTS} l3_attackmitigator l3_centralizedattackdetector l3_distributedattackdetector" TFS_COMPONENTS=${TFS_COMPONENTS:-$ALL_COMPONENTS} # Some components require libyang built from source code # - Ref: https://github.com/CESNET/libyang # - Ref: https://github.com/CESNET/libyang-python/ echo "Installing libyang..." sudo apt-get --yes --quiet --quiet update sudo apt-get --yes --quiet --quiet install build-essential cmake libpcre2-dev python3-dev python3-cffi mkdir libyang git clone https://github.com/CESNET/libyang.git libyang mkdir libyang/build cd libyang/build cmake -D CMAKE_BUILD_TYPE:String="Release" .. make sudo make install sudo ldconfig cd ../.. echo "Updating PIP, SetupTools and Wheel..." pip install --upgrade pip # ensure next packages get the latest versions pip install --upgrade setuptools wheel # bring basic tooling for other requirements Loading