Fixing preinstall tool depending on Ubuntu version

This commit is contained in:
FlUxIuS 2025-02-15 20:24:31 +01:00
parent aff4e97367
commit d1f486f9ea
No known key found for this signature in database
GPG key ID: 44C9D6E0BD9022A3

View file

@ -7,14 +7,15 @@
##########################################################
# Installing compilation dependencies
sudo apt install -y autoconf libtool libosip2-dev libortp-dev libusb-1.0-0-dev g++ sqlite3 libsqlite3-dev erlang libreadline6-dev libncurses5-dev git dpkg-dev debhelper libssl-dev cmake build-essential wget libzmq3-dev cppzmq-dev
sudo apt install -y bc autoconf libtool libosip2-dev libortp-dev libusb-1.0-0-dev g++ sqlite3 libsqlite3-dev erlang libreadline6-dev libncurses5-dev git dpkg-dev debhelper libssl-dev cmake build-essential wget
# Installing HD driver 4.1.0 (Ubuntu 22.04) or 4.6* (Ubuntu 24.04) & t ols from Ubuntu package manager
ubuntu_version=$(lsb_release -rs)
if (( $(echo "$ubuntu_version < 24.04" | bc -l) )); then
sudo apt install -y libuhd4.1.0
sudo apt install -y libuhd4.1.0 libzmq3-dev
else
sudo apt install -y libuhd4.6.0t64 cppzmq-dev
fi
sudo apt install -y libuhd4.6.0t64
sudo apt install -y libuhd-dev uhd-host