question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

libhostpolicy.so not found

See original GitHub issue

Steps to reproduce

  • get the latest cli binaries (see version info below) and put them on the path
  • dotnet new console
  • add rid to the project: <RuntimeIdentifier>ubuntu.16.04-x64</RuntimeIdentifier>
  • dotnet restore
  • dotnet run

Expected behavior

Program runs and prints hello world.

Actual behavior

Could not find required library libhostpolicy.so in 1 probing paths:
  /home/sven/.nuget/packages
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/home/sven/dotnettest/bin/Debug/netcoreapp1.0'.

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-rc4-004755)

Product Information:
 Version:            1.0.0-rc4-004755
 Commit SHA-1 hash:  bffbee2b91

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64
 Base Path:   /home/sven/bin/sdk/1.0.0-rc4-004755

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

14reactions
JoseFMPcommented, Jun 21, 2017

In which CLI version was that fixed? I am experiencing this problem on 2.0.0-preview1-005977

3reactions
Bersamcommented, Dec 10, 2017

I’m still experiencing this on 2.0.3.

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.microsoft.com/ ...
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 >
dll error on ubuntu 18
The library 'libhostpolicy.so' required to execute the application was not found in ',filepath>'. Failed to run as a self-contained app.
Read more >
Under Linux, I cannot run my project; libhostpolicy.so is ...
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/mnt/UBUNTU_OPT/Dropbox/ ...
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