-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Unable to find or run nvidia-smi despite verified presence/executability of binary #246
Comments
Linux returns |
I'm able to at least run it. It's a foreign binary (meaning non-nixos), so it probably doesn't find
|
I can now confirm, that it should indeed work with nix-ld, when |
Thank you for investigating; with
However if I set up a barebones with import <nixpkgs> {};
mkShell {
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
stdenv.cc.cc
];
NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker";
} Then Thanks |
That's what I have in regards to nix-ld in my config {
programs.nix-ld.enable = true;
environment.variables = {
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
pkgs.stdenv.cc.cc
];
NIX_LD = "${pkgs.glibc}/lib/ld-linux-x86-64.so.2";
};
} I can then run nvidia-smi like this
|
That's helpful - thanks for sharing! |
Bug description
Attempting to run
nvidia-smi
results inzsh: command not found: nvidia-smi
. I have verified through various ways that the binary exists, is in the PATH, is chmod'd to be executable by user, but cannot be found in zsh, bash or via nix-shell.To Reproduce
Steps to reproduce the behavior:
nvidia-smi
Expected behavior
nvidia-smi
is found on the PATH and runsLogs
Please excuse my formatting. I will also attach a screenshot.
The text was updated successfully, but these errors were encountered: