Install the. NET Core SDK
Before you start and remove any previous versions of the. NET Core from the Your system.
In order to install. NET Core 1.1 on CentOS or Oracle Linux, first you need to get the prerequisites and then you download The. NET Core SDK binaries, extract them onto your system and put dotnet
onto your PATH.
For and releases you can check the Linux downloads section.
- sudo yum install libunwind Libicu
- Curl-ssl-o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=835019
- sudo mkdir-p/opt/dotnet && sudo tar zxf dotnet.tar.gz-c/opt/dotnet
- sudo ln-s/opt/dotnet/dotnet/usr/local/bin
Installing Libunwind, Libicu
Download dotnet.tar.gz, enter the command and wait a while to download, unzip to the/opt/dotnet directory, create a symbolic link. Test the installation for a successful error, dotnet:/usr/lib64/libstdc++.so.6:version ' glibcxx_3.4.18 ' not found (required by dotnet)
/usr/lib64/libstdc++.so.6 is a class library of GCC by command strings/usr/lib64/libstdc++.so.6 | grep glibcxx to view installed versions
[Email protected] hwapp]# strings/usr/lib64/libstdc++.so.6 | grep glibcxx
glibcxx_3.4
glibcxx_3.4.1
glibcxx_3.4.2
glibcxx_3.4.3
glibcxx_3.4.4
glibcxx_3.4.5
glibcxx_3.4.6
glibcxx_3.4.7
glibcxx_3.4.8
glibcxx_3.4.9
glibcxx_3.4.10
glibcxx_3.4.11
glibcxx_3.4.12
glibcxx_3.4.13
Glibcxx_force_new
Glibcxx_debug_message_length
[Email protected] hwapp]# gcc-v
-bash:gcc:command not found
[Email protected] hwapp]# g++--version
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)
Copyright (C) Free Software Foundation, Inc.
This was free software; See the source for copying conditions. There is NO
Warranty Not even to merchantability or FITNESS for A particular PURPOSE.
The current is 4.4.7, indeed no glibcxx_3.4.18.
Upgrade GCC
Install wget, enter command [[email protected] ~]# yum install wget.
Refer to CentOS 6.6 upgrade GCC g++ (currently the latest version is v6.1.0) (full) upgrade, the tutorial is very good and the fifth step is 4 hours when compiling.
Test dotnet again
[Email protected] hwapp]# dotnet New
Failed to load/opt/dotnet/host/fxr/1.1.0/libhostfxr.so, error:/lib64/libc.so.6:version ' glibc_2.14 ' not found ( Required by/opt/dotnet/host/fxr/1.1.0/libhostfxr.so)
The library libhostfxr.so was found, but loading it from/opt/dotnet/host/fxr/1.1.0/libhostfxr.so failed
-Installing. NET Core Prerequisites might help resolve this problem.
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
View current version 2.12.
[Email protected] hwapp]# strings/usr/lib64/libc.so.6 | grep GLIBC
Strings: '/usr/lib64/libc.so.6 ': No such file
[Email protected] hwapp]# ll/lib64/libc.so.6
lrwxrwxrwx. 1 root root 18:57/lib64/libc.so.6-libc-2.12.so
Do you want to upgrade first look at the consequences: Linux upgrade C basic runtime CLIBC
Before you get ready to upgrade the GLIBC library, you need to think about it,
Are you sure you want to upgrade glibc?
Do you know what you're doing?
GLIBC is the GNU published LIBC library, the C runtime library. GLIBC is the lowest-level API in a Linux system, and almost any other runtime relies on glibc. GLIBC In addition to encapsulating the system services provided by the Linux operating system, it also provides many other necessary functions for the implementation of the service ...
In general, not saying that some of the applications running on Linux, or the products you have previously deployed, are basic commands for Linux, such as CP, RM, LS, mv, SSH, SCP, and so on, and commands depend on it.
Many people on the internet have a painful lesson, the system after the failure of the majority of commands can not run, the system can not re-enter after the exit ...
For systems such as CentOS, for the sake of stability (this is debatable) is often a variety of library versions are very low, such as 6.5 or even 7.0 comes with the glibc2.12, and Ubuntu 14.04 with glibc2.19
Decisively give up, or to upgrade the operating system, this installation to the end of failure.
Reference articles
1. CentOS Installation wget
2.CentOS 6.6 Upgrade GCC g++ (currently the latest version is v6.1.0) (full)
3.Install for CentOS 7.1 & Oracle Linux 7.1 (+ bit)
Install. Net Core for CentOS 6.5 (last failed)