Skip to content

DllNotFoundException: Unable to load shared library 'MonoPosixHelper' #124

@weimarcoro

Description

@weimarcoro

Describe the bug
Setting up a brand new net core application on MacOS, I get the DllNotFoundException whereas setting up a brand new project on Windows does work without problems with the exact same configuration.

To Reproduce
Setup a brand new net core project on MacOS using NET6 and follow the steps to add the library for Wordpress to work in the tutorial.

Expected behavior
The library should work exactly the same in both operating systems since Net Core is cross platform.

Screenshots
image

System information:

  • OS: MacOS Monterrey
  • Version 12.4

Stack trace:
DllNotFoundException: Unable to load shared library 'MonoPosixHelper' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(libMonoPosixHelper, 0x0001): tried: 'libMonoPosixHelper' (no such file), '/usr/local/lib/libMonoPosixHelper' (no such file), '/usr/lib/libMonoPosixHelper' (no such file), '/Users/weimarcoro/Development/StoreFront/StoreFront/libMonoPosixHelper' (no such file)
Peachpie.AspNetCore.Web.PhpHandlerMiddleware.InvokeScriptAsync(HttpContext context, ScriptInfo script, string path_info)
PeachPied.WordPress.AspNetCore.Internal.WpResponseCacheMiddleware.CaptureResponse(HttpContext context)
PeachPied.WordPress.AspNetCore.Internal.WpResponseCacheMiddleware.Invoke(HttpContext context)
PeachPied.WordPress.AspNetCore.Internal.DiagnosticExtensions+Middleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions