Skip to content

Commit

Permalink
Prefer distribution's libmodbus.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhartmann committed Sep 7, 2023
1 parent f3a12df commit cca4009
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion background_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function linux_install_deps {
$1 apt-get update
$1 apt-get install -y build-essential pkg-config bison flex autoconf \
automake libtool make git python2.7 \
sqlite3 cmake git curl python3 python3-pip
sqlite3 cmake git curl python3 python3-pip libmodbus-dev
else
echo "Unsupported linux distro."
exit 1
Expand Down Expand Up @@ -144,6 +144,8 @@ function install_opendnp3 {
}

function install_libmodbus {
[ -r /usr/include/modbus/modbus.h ] && return 0

echo "[LIBMODBUS]"
cd "$OPENPLC_DIR/utils/libmodbus_src"
./autogen.sh
Expand Down

0 comments on commit cca4009

Please sign in to comment.