Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to bind to CoreCLR

I'm attempting to deploy a Framwork-Dependant .Net Core app to Debian 9 Stretch, but when I launch the .net app it throws the error:

>     Failed to load ▒݅, error: libunwind.so.8: cannot open shared object file: No such file or directory
>     Failed to bind to CoreCLR at '/var/www/html/libcoreclr.so'

Yes, the file is at /var/www/html/libcoreclr.so

like image 850
Menefee Avatar asked Jun 02 '18 00:06

Menefee


2 Answers

This has similar root cause as https://github.com/dotnet/cli/issues/3390

For anyone who is not as experienced in Linux, installing libunwind can be done in Debian and derivative distributions (Ubuntu, Xubuntu, Devuan, ...) by executing

sudo apt install libunwind8

For any RedHat like distributions:

sudo yum install libunwind

like image 88
Csaba Toth Avatar answered Oct 18 '22 03:10

Csaba Toth


libunwind8 is listed into .net core prerequisites under Ubuntu, see here.

I experienced same issue under Debian 9 and I solved installing the lib via packet manager.
Hope this helps.

like image 36
steve Avatar answered Oct 18 '22 02:10

steve