C++ example runs failed

I build two nodes cluster by ray, and compile the cpp example successful, but it runs failed sometimes.

And the log shows that example.so not loaded
function_helper.cc:152: /root/.cache/bazel/_bazel_root/7610a462699889935b9daf1ea884ae4d/execroot/main/bazel-out/k8-fastbuild/bin dynamic library not found.

what should i do?

Seems like the ray worker can’t find the example.so. You should also compile it and add it into code_search_path. You can set the code_search_path by adding --ray_code_search_path={your_path} to the driver command. And you must ensure the example.so has been distributed to all of your ray nodes.