1. Download dotnet8 sdk
Download .NET 8.0 SDK (v8.0.100) - Linux x64 Binaries
Get the dotnet-sdk-8.0.100-linux-x64.tar.gz file
2. Upload the file to the /usr/local/software directory
mkdir -p /usr/local/software/dotnet8
Copy the file
mv dotnet-sdk-8.0.100-linux-x64.tar.gz /usr/local/software/dotnet8
unzip
cd /usr/local/software/dotnet8
tar -zxvf /usr/local/software/dotnet8
Then create a soft connection
ln -s /usr/local/software/dotnet8/dotnet /usr/local/bin
Execute the command to check whether the installation is successful, execute dotnet --version
If this prompt appears, the installation is successful!
Error resolution:
Error 1. Some servers with older environments will have the following error message and the c++ library needs to be updated.
download link:
https://download.csdn.net/download/u014574478/88544619
After decompression, get the file libstdc++.so.6.0.26
Then perform the following three steps:
1.1 Copy the obtained files to the /lib64 directory
mv libstdc++.so.6.0.26 /lib64
1.2 Delete the original soft link
rm -f /lib64/libstdc++.so.6
1.3 Create a new soft link
ln -s /lib64/libstdc++.so.6.0.26 /lib64/libstdc++.so.6
Check whether the soft link is successfully established. If the following prompt appears, it means the soft link is successfully established.
Then you can run dotnet --version to test whether it is successful
Error 2. The libicu library is missing. Just execute the command to install it.
yum install libicu -y