dotnet core fedora 24 - plembo/onemoretech GitHub Wiki

#Installing .NET Core on Fedora 24

October 25, 2016

Currently, there is a binary download of .NET Core available for Fedora 23, but none for Fedora 24. If you install .NET Core in accordance with the instructions found on github, you will get this error when invoking the dotnet binary:

[me@mine hwapp]$ dotnet new
Failed to initialize CoreCLR, HRESULT: 0x80131500

This is a known issue.

The workaround I found is to copy the binary files for libicu from Fedora 23 into /usr/lib64 on the Fedora 24 machine.

To implement this first setup .NET Core as directed, including installing the prerequisite libunwind and libicu packages.

Then download the Fedora 23 rpm for libicu from rpm.pbone.net to a temporary directory:

http://rpm.pbone.net/index.php3/stat/4/idpl/31841829/dir/fedora_23/com/libicu-54.1-5.fc23.x86_64.rpm.html

Unpack the downloaded rpm using rpm2cpio:

[me@mine tmp]$ rpm2cpio libicu-54.1-5.fc23.x86_64.rpm | cpio -idmv

Drill down into usr/lib64 and copy the libicu-54 files found there to /usr/lib64 on the target machine.

This is what success looks like:

[me@mine hwapp]$ dotnet new

Welcome to .NET Core!
---------------------
Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.
Telemetry
--------------
The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include commandline arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.
Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 2316 ms
Expanding 100% 4114 ms
Created new C# project in /home/me/tmp/hwapp.
[me@mine hwapp]$ 

Copyright 2004-2019 Phil Lembo