Closed gdarruda closed 2 years ago
Sorry, that error message could do with some improvement. What's actually failing there is a dlopen("libnvidia-ml.so", RTLD_LAZY)
. So the dynamic loader can't find your libnvidia-ml.so
anywhere in its search paths. There are usually two ways the search paths are determined:
LD_LIBRARY_PATH
environment variable./etc/ld.so.conf
and everything in /etc/ld.so.conf.d
.So first, check the package contents of your nvidia driver for the location of libnvidia-ml.so
, and then make sure its path is found somewhere in the ld.so search paths. Typically, your driver package should put some file in /etc/ld.so.conf.d
. If it's there, make sure the cache is updated by running ldconfig
.
Thanks, the libraries are present, but the symlinks were missing. I created one myself for libnvidia-ml.so
: sudo ln -s libnvidia-ml.so.1 libnvidia-ml.so
. It's working now!
Installing the driver from the nVidia site, these links are created as expected. The problem only occurs when installing the driver is installed from RPM Fusion (repo of non-free software for Fedora).
It's a bug of RPM Fusion or there is some reason to don't create these links? if it's a bug, I will try to report.
Thanks for this project, it's really useful for me.
It's a bug of RPM Fusion or there is some reason to don't create these links? if it's a bug, I will try to report.
I'm really not sure right now whether there is some standard or convention that says that (or when) unversioned symlinks have to be present. My hunch is that it depends on what most other consumers of that library look for. If everything else can find the lib without that symlink, then maybe thinkfan needs to try both names and not rely on an unversioned symlink.
Turns out that the convention appears to be that only development packages install unversioned symlinks. So since we load libnvidia-ml.so
after compilation at runtime, we cannot expect an unversioned symlink to be present.
I'm trying to use thinkfan with Fedora, but:
I installed the drivers and nvidia-smi seems fine:
My conf file is this:
Using Pop_OS!, I built from source and worked fine. I don't know if I missed some nVidia package, since Pop_OS! already came with nVidia drivers. Sorry if it's not a thinkfan problem, but I don´t know how to troubleshoot this.