Skip to content

Commit 2ee7717

Browse files
committed
Update ldd check with dotnet 5.
1 parent c946435 commit 2ee7717

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

docs/start/envlinux.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ x64
1515
- openSUSE 15+
1616
- SUSE Enterprise Linux (SLES) 12 SP2+
1717

18-
## Install .Net Core 3.x Linux Dependencies
18+
## Install .Net Core 5 Linux Dependencies
1919

20-
The `./config.sh` will check .Net Core 3.x dependencies during runner configuration.
20+
The `./config.sh` will check .Net Core 5 dependencies during runner configuration.
2121
You might see something like this which indicate a dependency's missing.
2222
```bash
2323
./config.sh
2424
libunwind.so.8 => not found
2525
libunwind-x86_64.so.8 => not found
26-
Dependencies is missing for Dotnet Core 3.0
27-
Execute ./bin/installdependencies.sh to install any missing Dotnet Core 3.0 dependencies.
26+
Dependencies is missing for Dotnet 5
27+
Execute ./bin/installdependencies.sh to install any missing Dotnet 5 dependencies.
2828
```
2929
You can easily correct the problem by executing `./bin/installdependencies.sh`.
3030
The `installdependencies.sh` script should install all required dependencies on all supported Linux versions

src/Misc/layoutbin/installdependencies.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ fi
1414

1515
function print_errormessage()
1616
{
17-
echo "Can't install dotnet core dependencies."
17+
echo "Can't install dotnet 5 dependencies."
1818
echo "You can manually install all required dependencies based on following documentation"
1919
echo "https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x"
2020
}
2121

2222
function print_rhel6message()
2323
{
24-
echo "We did our best effort to install dotnet core dependencies"
24+
echo "We did our best effort to install dotnet 5 dependencies"
2525
echo "However, there are some dependencies which require manual installation"
2626
echo "You can install all remaining required dependencies based on the following documentation"
2727
echo "https://github.com/dotnet/core/blob/master/Documentation/build-and-install-rhel6-prerequisites.md"
2828
}
2929

3030
function print_rhel6errormessage()
3131
{
32-
echo "We couldn't install dotnet core dependencies"
32+
echo "We couldn't install dotnet 5 dependencies"
3333
echo "You can manually install all required dependencies based on following documentation"
3434
echo "https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x"
3535
echo "In addition, there are some dependencies which require manual installation. Please follow this documentation"

src/Misc/layoutroot/config.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ $user_id -eq 0 -a -z "$RUNNER_ALLOW_RUNASROOT" ]; then
88
exit 1
99
fi
1010

11-
# Check dotnet core 3.0 dependencies for Linux
11+
# Check dotnet 5 dependencies for Linux
1212
if [[ (`uname` == "Linux") ]]
1313
then
1414
command -v ldd > /dev/null
@@ -18,25 +18,25 @@ then
1818
exit 1
1919
fi
2020

21-
message="Execute sudo ./bin/installdependencies.sh to install any missing Dotnet Core 3.0 dependencies."
21+
message="Execute sudo ./bin/installdependencies.sh to install any missing Dotnet 5 dependencies."
2222

2323
ldd ./bin/libcoreclr.so | grep 'not found'
2424
if [ $? -eq 0 ]; then
25-
echo "Dependencies is missing for Dotnet Core 3.0"
25+
echo "Dependencies is missing for Dotnet 5"
2626
echo $message
2727
exit 1
2828
fi
2929

30-
ldd ./bin/System.Security.Cryptography.Native.OpenSsl.so | grep 'not found'
30+
ldd ./bin/libSystem.Security.Cryptography.Native.OpenSsl.so | grep 'not found'
3131
if [ $? -eq 0 ]; then
32-
echo "Dependencies is missing for Dotnet Core 3.0"
32+
echo "Dependencies is missing for Dotnet 5"
3333
echo $message
3434
exit 1
3535
fi
3636

37-
ldd ./bin/System.IO.Compression.Native.so | grep 'not found'
37+
ldd ./bin/libSystem.IO.Compression.Native.so | grep 'not found'
3838
if [ $? -eq 0 ]; then
39-
echo "Dependencies is missing for Dotnet Core 3.0"
39+
echo "Dependencies is missing for Dotnet 5"
4040
echo $message
4141
exit 1
4242
fi
@@ -54,7 +54,7 @@ then
5454
libpath=${LD_LIBRARY_PATH:-}
5555
$LDCONFIG_COMMAND -NXv ${libpath//:/ } 2>&1 | grep libicu >/dev/null 2>&1
5656
if [ $? -ne 0 ]; then
57-
echo "Libicu's dependencies is missing for Dotnet Core 3.0"
57+
echo "Libicu's dependencies is missing for Dotnet 5"
5858
echo $message
5959
exit 1
6060
fi

0 commit comments

Comments
 (0)