Skip to content

Commit

Permalink
Merge pull request #778 from fledge-iot/FOGL-6525-cherry-pick
Browse files Browse the repository at this point in the history
Fogl 6525 cherry pick into 2.0.0RC
  • Loading branch information
ashish-jabble authored Aug 8, 2022
2 parents 9c11e12 + 0ed1e7b commit 8117804
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ if [[ $YUM_PLATFORM = true ]]; then
service rsyslog start

sqlite3_build_prepare

# Attempts a second execution of make if the first fails
set +e
make
Expand All @@ -206,10 +205,11 @@ if [[ $YUM_PLATFORM = true ]]; then

set -e
make
# TODO: Use make install to install sqlite3 as a command
fi
cd $fledge_location
set -e

# Upgrade curl if needed
curl_upgrade_evaluates

Expand Down Expand Up @@ -248,18 +248,20 @@ elif apt --version 2>/dev/null; then
apt install -y cmake g++ make build-essential autoconf automake uuid-dev
apt install -y libtool libboost-dev libboost-system-dev libboost-thread-dev libpq-dev libz-dev
apt install -y python-dev python3-dev python3-pip python3-numpy
pip3 install --upgrade pip

sqlite3_build_prepare
make


apt install -y sqlite3 # make install after sqlite3_build_prepare should be enough to install sqlite3 as a command
apt install -y pkg-config

# for Kerberos authentication, avoid interactive questions
DEBIAN_FRONTEND=noninteractive apt install -yq krb5-user
DEBIAN_FRONTEND=noninteractive apt install -yq libcurl4-openssl-dev

apt install -y cpulimit
apt install -y cpulimit

else
echo "Requirements cannot be automatically installed, please refer README.rst to install requirements manually"
yum install -y rh-python36
echo "Requirements cannot be automatically installed, please refer README.rst to install requirements manually."
fi

0 comments on commit 8117804

Please sign in to comment.