sdk: Failed to initialize CoreCLR, HRESULT: 0x80131500
Steps to reproduce
- Download https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-dev-centos-x64.latest.tar.gz
- Unpack tar file
- Set DOTNET_HOME as unzipped folder. [usr/share/dotnet]
- Change permission settings for unzipped folder dotnet
- run dotnet -version
Expected behavior
Should give version number
Actual behavior
Gives error message Failed to initialize Failed to initialize CoreCLR, HRESULT: 0x80131500
Environment data
dotnet --version output:
Failed to initialize CoreCLR, HRESULT: 0x80131500
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 70 (11 by maintainers)
Commits related to this issue
- add another line for gitlab ci config https://github.com/dotnet/cli/issues/2018#issuecomment-228865616 Signed-off-by: kushal <kushaldeveloper@gmail.com> — committed to kusl/aspnetcore by 9034725985 7 years ago
You can find out what is missing by running:
Replace
/opt/dotnetwith the directory you “un-tarred” the tar ball to.This seems to have solved my issue 😕
Another way to get it running on Fedora 24 and other distros using too recent ICU (provided to me by @scela)
LD_LIBRARY_PATH=~/oldicu/:$LD_LIBRARY_PATH dotnetinstead of invoking directlydotnet.This has the advantage of not forcing installation of older icu (which can lead to other issues for package requiring newer icu). Also I imagine this would work with any Linux distribution facing this issue. You can also tweak your .bashrc to define
alias dotnet=LD_LIBRARY_PATH=~/oldicu/:$LD_LIBRARY_PATH dotnet, but since alias aren’t inherited, it’s not working when running scripts, so one had to usesource script.shinstead of./script.shif they want to take advantage of their alias.Same problem on Fedora 24, with the following library versions: libunwind-1.1-11.fc24.x86_64 libicu-56.1-4.fc24.x86_64
It is fixed in master now, if you download 2.0 nightlies from dotnet/cli things should work.
There are no plans to back port the changes to 1.0 or 1.1.
Any ideas for this in OpenSUSE Leap? I’ve installed the package icu and libicu52_1 and get this same issue.
For Ubuntu 16.04, installing libicu52 from trusty-security seems to fix the problem.
I also has the same problem. I’m trying it on Fedora 23 (downloaded Centos binaries).
I know that Fedora is not listed in supported distributions but I just wanted to try. Probably the reason for error is the same as for Ubuntu 16.04 (version of the
icuis newer in Fedora 23 and Ubuntu 16.04, compared to Debian 8, CentOS 7 and Ubuntu 14.04)Had the same problem running Kali linux. Turned out that I had a newer version of libicu and libicu-dev installed (v55 I believe) and dotnet wanted version 52. All I had to do was go to the debian repos and find libicu52 and libicu52-dev and install them
openSUSE Tumbleweed: sudo find /opt/dotnet -name ‘*.so’ -type f -print | xargs ldd | grep ‘not found’ liblldb.so.3.5.0 => not found # liblldb.so.3.8 found libicuuc.so.53.1 => not found # libicuuc.so.57.1 found libicui18n.so.53.1 => not found # libicui18n.so.57.1 found liblttng-ust.so.0 => not found # not found
@cgountanis based on all the valuable info in this issue I managed to get dotnet running on openSUSE Tumbleweed 20160831 like so:
Install a old libicu 53.1 to $HOME/.icu53
Install the data for the old libicu 53.1 to $HOME/.icu53-data
Grab the updated CoreCLR packages mentioned above required for newer Linux kernels
Call dotnet with the old icu plus its data and it should (hopefully) work
for debian stretch users, there is more than just
libicu52. I added this line to sources.list (/etc/apt/sources.list)deb http://ftp.de.debian.org/debian/ jessie mainthen :apt-get updatefinally:apt-get -t jessie install libicu52apt-get install libssl1.0.0in this point, the command by @icebreaker gives this output:finally, work is done by :
apt-get install liblttng-ust0andapt-get install liblldb-3.6and now, i have this error:
version is:
and
For Fedora you can copy necessary libs from: ftp://195.220.108.108/linux/centos/7.2.1511/os/x86_64/Packages/libicu-50.1.2-15.el7.x86_64.rpm package to your /lib/lib64
Is there a reason dotnet Core isn’t being built with the latest packages from Debian? libicu52 and liblldb-3.6, for example, are several generations behind. I don’t want to have to necro old packages just to get this to run.
–EDIT–
Everything works if you download it from the main github page here. It doesn’t work if you download it using the commands from the https://www.microsoft.com/net/core#linuxdebian website. Perhaps that should be updated?
I was able to dotnet new, restore, and run on OpenSUSE 42.1 by downloading and installing the dependency for libicu53_1: https://software.opensuse.org/package/libicu53_1-ledata (this just copies libicudt531.dat to/usr/share/icu/53.1), and using the technique mickaelistria described such that I can leave the default 52_1 install alone. Thanks mickaelistria!
BTW, Kernel v4.1.20-11-default
here are some specifics: OS is Fedora 24 with libunwind/libicu installed (f24 has icu at version 56.1 and libunwind at version 1.11). I’m getting above mentioned error. Downgrading to f23 libicu is not an option because of dependencies involved: qt5-qtbase, among others. No can do. So in the end, it seems dotnet requires a specific icu version, ie v52.
Have you installed dependent packages like icu and libunwind?
I’m currently struggling with a ICU installation, these libs are missing:
And when I try to install any of them
Thanks @icebreaker
It appears I’m still missing libicu53 (seems unavailable for Leap, though I have libicu52) and liblldb.so.3.5.0 (I have 3.7.0 installed)
Are these particular versions required?