Merged PR 786165: Remove symlink libdl.so for ubuntu 22.04

remove symlink libdl.so
This commit is contained in:
Qi Wang 2024-05-24 20:35:38 +00:00
Родитель 39675eb58d
Коммит 98c1812f87
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -53,12 +53,8 @@ debugprint "Installing required packages"
sudo apt update -y
sudo apt install -y git build-essential mono-devel mono-complete libc6-dev openssh-server curl
# When using [DllImport("libdl")] in C#, the C# runtime can't find the libdl library
# if there is only libdl.so.2 file there on disk. So we help it out by creating this symlink.
. /etc/lsb-release
if [[ "$DISTRIB_RELEASE" == "22.04" ]]; then
debugprint "Attempting to symlink libdl.so"
sudo ln -vs /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so
sudo apt install -y dotnet8
fi