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:)


•
u/AutoModerator Oct 24 '26
If you're looking for help with a mod, make sure your post or top-level comment includes:
See common issues and solutions. If you're having trouble installing SMAPI, see the detailed Getting Started guide.
If you've already done these steps or you're not asking for help with a mod, then please ignore this. Thank you!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Active-Diamond242 Oct 24 '26
Tenes instalada la versión correcta de dotnet? Si es así solo hace falta colocar la especificacion en la ruta que te dio, que distro estás usando? Ahora mismo no tengo la pc a mano para mostrarte como debería quedar el archivo .json si me esperas unas horas te mando
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