-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled Exception: System.DllNotFoundException: Unable to load shared library 'libX11.so.6' #3020
Comments
does your distro have XServer, and does it have X11 in the $PATH? |
Most likely caused by NixOS completely ignoring LSB. You can try messing around with LD_LIBRARY_PATH. |
Thanks for all who posted here. I managed to solve this issue, since I develop in a sandboxed environment it happened that If any Nix posters come here again, this is the
|
~]$ dotnet build ; dotnet run Restore completed in 25.9 ms for /home/user/Proj.csproj. Build succeeded. Time Elapsed 00:00:00.86 |
For anyone looking for a flake to use while developing with this lib, this is what's working for me: {
description = ".NET project template";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = inputs@{ nixpkgs, ... }:
inputs.utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
xorgLibs = with pkgs.xorg; [
libICE
libSM
libX11
libX11.dev
];
in
rec {
# `nix develop`
devShells.default = with pkgs; mkShell {
buildInputs = [
dotnet-sdk_8
fontconfig
gnumake
icu
openssl
] ++ xorgLibs;
shellHook = ''
export DOTNET_ROOT=${dotnet-sdk}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${lib.makeLibraryPath ([ fontconfig icu openssl ] ++ xorgLibs) }
'';
};
});
} |
I'm using NixOS and was trying out the Avalonia.FuncUI, I ran into the following error while using it:
I've managed to track down this error to this repo via this other issue.
Setting
LD_DEBUG
tolib
I get the following as output:Any hints on how to solve it?
The text was updated successfully, but these errors were encountered: