Skip to content

Commit 8098053

Browse files
authored
Merge pull request #257 from polycube-network/jpi-install
add required package to make install script happy
2 parents 1309c1a + f3b58a0 commit 8098053

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/pre-requirements.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,17 @@ PACKAGES+=" libssl-dev" # needed for certificate based security
2828
PACKAGES+=" sudo" # needed for pcn-iptables, when building docker image
2929
PACKAGES+=" kmod" # needed for pcn-iptables, when using lsmod to unload conntrack if not needed
3030
PACKAGES+=" jq bash-completion" # needed for polycubectl bash autocompletion
31+
PACKAGES+=" libpcre3-dev" # needed for libyang
3132

3233
if [ "$MODE" == "pcn-k8s" ]; then
3334
PACKAGES+=" curl" # needed for pcn-k8s to download a binary
3435
PACKAGES+=" iptables" # only for pcn-k8s
3536
PACKAGES+=" iproute2" # provides bridge command that is used to add entries in vxlan device
3637
fi
3738

39+
# use non interactive to avoid blocking the install script
40+
$SUDO bash -c "DEBIAN_FRONTEND=noninteractive apt-get install -yq $PACKAGES"
41+
3842
# licd $WORKDIR
3943
set +e
4044
if [ ! -d libyang ]; then
@@ -47,9 +51,6 @@ cmake ..
4751
make -j $(getconf _NPROCESSORS_ONLN)
4852
$SUDO make install
4953

50-
# use non interactive to avoid blocking the install script
51-
$SUDO bash -c "DEBIAN_FRONTEND=noninteractive apt-get install -yq $PACKAGES"
52-
5354
echo "Install pistache"
5455
cd $WORKDIR
5556
set +e

0 commit comments

Comments
 (0)