CacheLib icon indicating copy to clipboard operation
CacheLib copied to clipboard

glog linker issue while running cachebench

Open guptask opened this issue 5 months ago • 1 comments

Describe the bug I'm hitting a glog linker issue when I try to run latest cachebench (commit #c5dd692) :

Meta_CacheLib$ ./opt/bin/cachebench --help 
./opt/bin/cachebench: error while loading shared libraries: libglog.so.0: cannot open shared object file: No such file or directory

Meta_CacheLib$ ldd opt/bin/cachebench 
        libglog.so.0 => not found

To Reproduce

  1. git clone https://github.com/facebook/CacheLib Meta_CacheLib

  2. cd Meta_CacheLib

  3. git checkout c5dd692 (last commit # with a successful build on server - https://github.com/facebook/CacheLib/actions/runs/17023393838)

  4. Change the following:

Meta_CacheLib$ git diff
diff --git a/build/fbcode_builder/getdeps.py b/build/fbcode_builder/getdeps.py
@@ -452,7 +452,7 @@ class InstallSysDepsCmd(ProjectCmdBase):
-                cmd_argss.append(["pip", "install", "pex"])
+                cmd_argss.append(["pipx", "install", "pex"])
  1. sudo ./build/fbcode_builder/getdeps.py install-system-deps --recursive cachelib

  2. mkdir opt

  3. python3 ./build/fbcode_builder/getdeps.py --allow-system-packages build cachelib --install-dir ~/Meta_CacheLib/opt/

Expected behavior Show the argument options for cachebench

Desktop (please complete the following information):

  • OS: Ubuntu 24.04 LTS (6.14.0-27-generic)

guptask avatar Aug 18 '25 18:08 guptask

Nevermind. I figured out that running python3 ./build/fbcode_builder/getdeps.py --allow-system-packages env cachelib --scratch-path opt/ provides the env needed to run cachebench. The documentation needs to be updated for this new build process. CacheLib wiki also shows older documentation.

guptask avatar Aug 19 '25 20:08 guptask