glog linker issue while running cachebench
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
-
git clone https://github.com/facebook/CacheLib Meta_CacheLib
-
cd Meta_CacheLib
-
git checkout c5dd692 (last commit # with a successful build on server - https://github.com/facebook/CacheLib/actions/runs/17023393838)
-
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"])
-
sudo ./build/fbcode_builder/getdeps.py install-system-deps --recursive cachelib
-
mkdir opt
-
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)
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.