r/SMAPI • u/doktornotnow • Oct 24 '26
need help [Linux] ''libhostpolicy.so'' problem while trying to open StardewModdingAPI
I've been trying to install SMAPI for an hour now and I created a Reddit account because of this.
Before this problem I did some research since every time I tried to download SMAPI from the main Linux option in the .zip file, it didn't seemed to create anything to open the modded game. The StardewModdingAPI file was saying that I was missing .NET files, so I got them from the main source and still didn't worked, instead now the libhostpolicy issue is on my terminal when I want to execute the SMAPI file:
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/usr/share/dotnet'.
Failed to run as a self-contained app.
- The application was run as a self-contained app because '/home/user/.local/share/Steam/steamapps/common/Stardew Valley/StardewModdingAPI.runtimeconfig.json' did not specify a framework.
- If this should be a framework-dependent app, specify the appropriate framework in '/home/user/.local/share/Steam/steamapps/common/Stardew Valley/StardewModdingAPI.runtimeconfig.json'.
Did someone had this problem too? Is there any way I can solve it? English isn't my main language so I had some trouble writing this, hope y'all understand, ty:)


View all comments
1
u/twoismsunset Oct 26 '26
Looks like SMAPI is picking up a broken .NET setup rather than missing game files. Linux dependencies can be a proper headache lol