Skip to content

Commit

Permalink
Update dependencies list to support Ubuntu 22.04 (#1946)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuukkalahti authored Jun 15, 2022
1 parent 591f8c3 commit ca2b1bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/start/envlinux.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The `installdependencies.sh` script should install all required dependencies on

Debian based OS (Debian, Ubuntu, Linux Mint)

- liblttng-ust0
- liblttng-ust1 or liblttng-ust0
- libkrb5-3
- zlib1g
- libssl1.1, libssl1.0.2 or libssl1.0.0
Expand Down
10 changes: 9 additions & 1 deletion src/Misc/layoutbin/installdependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ then
fi
fi

$apt_get update && $apt_get install -y liblttng-ust0 libkrb5-3 zlib1g
$apt_get update && $apt_get install -y libkrb5-3 zlib1g
if [ $? -ne 0 ]
then
echo "'$apt_get' failed with exit code '$?'"
Expand Down Expand Up @@ -94,6 +94,14 @@ then
fi
}

apt_get_with_fallbacks liblttng-ust1 liblttng-ust0
if [ $? -ne 0 ]
then
echo "'$apt_get' failed with exit code '$?'"
print_errormessage
exit 1
fi

apt_get_with_fallbacks libssl1.1$ libssl1.0.2$ libssl1.0.0$
if [ $? -ne 0 ]
then
Expand Down

0 comments on commit ca2b1bc

Please sign in to comment.