interprocess icon indicating copy to clipboard operation
interprocess copied to clipboard

Ubuntu - System.DllNotFoundException: Unable to load shared library 'librt'

Open ericbrunner opened this issue 4 years ago • 2 comments

Hi,

Can you please help me with that error. I just created a sample on TFM .NET 5.0 and get that exception on Ubuntu WSL (WIndows Subsystem for Linux) on Window 10.

Sample: https://[email protected]/zone-eric/NET%20Core%20Crossplattform%20IPC/_git/NETCoreXplatIPC

Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal

System.DllNotFoundException: Unable to load shared library 'librt' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibrt: cannot open shared object file: No such file or directory at Cloudtoid.Interprocess.Semaphore.Linux.Interop.sem_open(String name, Int32 oflag, UInt32 mode, UInt32 value) at Cloudtoid.Interprocess.Semaphore.Linux.Interop.CreateOrOpenSemaphore(String name, UInt32 initialCount) at Cloudtoid.Interprocess.Semaphore.Linux.SemaphoreLinux..ctor(String name, Boolean deleteOnDispose) at Cloudtoid.Interprocess.InterprocessSemaphore.CreateWaiter(String name) at Cloudtoid.Interprocess.Subscriber..ctor(QueueOptions options, ILoggerFactory loggerFactory) at Cloudtoid.Interprocess.QueueFactory.CreateSubscriber(QueueOptions options) at Sunify.WorkerService.Worker.ExecuteAsync(CancellationToken stoppingToken) in /home/eric/source/repos/NETCoreXplatIPC/xPlat-IPC/Sunify.WorkerService/Worker.cs:line 26 at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) at Sunify.WorkerService.Program.Main(String[] args) in /home/eric/source/repos/NETCoreXplatIPC/xPlat-IPC/Sunify.WorkerService/Program.cs:line 15

Full command line log is here: https://gist.github.com/ericbrunner/cd2122fad75920cdb758735cce0bb220

ericbrunner avatar Jan 07 '21 09:01 ericbrunner

Sorry for the delay. Is this still an issue?

prezaei avatar Mar 26 '21 00:03 prezaei

Seems to be an issue still.

prezaei avatar Mar 30 '22 21:03 prezaei

This is now fixed

prezaei avatar Nov 19 '22 07:11 prezaei