The library 'libhostpolicy.so' required to execute the application was not found

See original GitHub issue

dotnet core Newbie here, need help to find the right direction.

I’m trying to run the latest version of omnisharp-roslyn on Ubuntu 18.04 and .net core 3.0.0

Just trying to start it, I get the following error message:

$ dotnet ./OmniSharp.exe
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/opt/omnisharp-dist/omnisharp/'.
Failed to run as a self-contained app. If this should be a framework-dependent app, add the /opt/omnisharp-dist/omnisharp/OmniSharp.runtimeconfig.json file specifying the appropriate framework.
$ dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100
 Commit:    04339c3a26

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /usr/share/dotnet/sdk/3.0.100/

Host (useful for support):
  Version: 3.0.0
  Commit:  95a0a61858

.NET Core SDKs installed:
  3.0.100 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Any kind of suggestions appreciated, thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
filipwcommented, Oct 24, 2019

you have installed Mono 4.6.2, the required one is the latest - 6.4.0

0reactions
norrucommented, Oct 24, 2019

Hi, upgrading Mono to 6.4.0 from the Ubuntu PPA solved the problem. Thanks.

$ mono --version
Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:21:28 UTC 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	Interpreter:   yes
	LLVM:          yes(610)
	Suspend:       hybrid
	GC:            sgen (concurrent by default)
Read more comments on GitHub >

github_iconTop Results From Across the Web

A fatal error was encountered. The library 'libhostpolicy.so ...
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/app'. docker .
Read more >
A fatal error was encountered. The library 'libhostpolicy.so ...
The library 'libhostpolicy.so' required to execute the application was not found in '/app/'. This is my Dockerfile: ` FROM mcr...
Read more >
The library 'libhostpolicy.so' required to execute ...
During running a dotnet console application I encountered this error. I ran it from a directory that had the .dll and .pdb file...
Read more >
A fatal error was encountered. The library 'libhostpolicy.so' ...
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found - Linux · 1. Install .NET Core...
Read more >
dotnet complaining that libhostpolicy.so doesn't exist, even ...
The library 'libhostpolicy.so' required to execute the application was not found in 'path/to/exe'. Failed to run as a self-contained app.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found