Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install .netcore on CentOs machine?

I'm new to .NET core and I am trying to run some basic examples on a CentOS machine.

I've read the Microsoft Documentation and found these steps to be the closest guide to what I want to do:

http://dotnet.github.io/core/getting-started/

After following these steps I could run a test/sample application but only under mono( e.g.after issuing

$ dnvm use [version] -r mono

followed by

$ dnu restore

and

$ dnx . run

)

When running under .NET Core ($ dnvm use [version] -r coreclr ) I get the following error:

dnx: /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.14' not found (required by dnx) dnx: /usr/lib64/libstdc++.so.6: versionGLIBCXX_3.4.15' not found (required by dnx)

I tried updating my gcc but to no avail. I also found that there were some errors when issuing:

$ yum install libunwind8 libssl-dev unzip

The libunwind8, libssl-dev packages where not found.

Are the two related? Has anyone successfully installed .NET core on CentOS? If so could you point me to a guide or explain the process?

Thank you!

like image 713
user3844943 Avatar asked Aug 06 '15 11:08

user3844943


People also ask

Can .NET Core run on Linux?

NET works well on their Linux distributions. Support is provided by those distributions. You can still open issues at dotnet/core if you run into problems.

How do I download .NET Core?

To download the latest version of . NET Core, go to https://dotnet.microsoft.com/download and select the platform you are using. As you can see above, . NET Core Runtime and .


1 Answers

You can install .NET Core on CentOS 7 now using the following steps:

yum install centos-release-dotnet
yum install rh-dotnet20

To use it:

scl enable rh-dotnet20 bash
dotnet --info
like image 192
omajid Avatar answered Sep 20 '22 17:09

omajid