Root v6.32.02 error "libxxhash.so.0, needed by xxx" solution


I encountered an error when installing root v6.32.02 while using AlamLinux9 from wsl:

/usr/bin/ld: warning: libxxhash.so.0, needed by /home/esword/.local/software/root/6.32.02/lib/libCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /home/esword/.local/software/root/6.32.02/lib/libCore.so: undefined reference to `XXH64_canonicalFromHash'
/usr/bin/ld: /home/esword/.local/software/root/6.32.02/lib/libCore.so: undefined reference to `XXH64'
/usr/bin/ld: /home/esword/.local/software/root/6.32.02/lib/libROOTNTuple.so: undefined reference to `XXH3_64bits'
/usr/bin/ld: /home/esword/.local/software/root/6.32.02/lib/libCore.so: undefined reference to `XXH64_hashFromCanonical'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Neutrino.dir/build.make:645: Neutrino] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/Neutrino.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

But I searched I do own the xxhash library and after uninstalling xxhash and reinstalling it still didn’t work, I finally realized that I had to install xxhash-libs.

sudo dnf install xxhash-libs

_ROOT Version: 6.32.02
_Platform: wsl for AlmaLinux
_Compiler: PreCompiler


here they install instead xxhash-devel: root-docker/alma9/packages at master · root-project/root-docker · GitHub

However, on my WSL AlmaLinux, there was no xxhash-devel library. Instead, there was the xxhash-libs library, and what I downloaded was the pre-compiled version. I don’t know why this happened. After downloading xxhash-libs, the error was resolved and root could run normally.

Maybe missing the CRB repo? What does "dnf config-manager --set-enabled crb" perform? - Fedora Discussion

Wow, you are really amazing. I didn’t know this operation. I learned a new trick. Thank you very much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.