GraphScope
GraphScope copied to clipboard
[BUG] Figure out why `LD_LIBRARY_PATH` is needed to run otel
In hqps-db-ci.yaml
, /usr/local/lib
need to be added into LD_LIBRARY_PATH
, which is wield.
Figure out the reason and fix it.
The reason is the binary interactive-server
needs to find the libotel*.so
, which is installed to the /usr/local/lib
, and the mechanism is rely on LD_LIBRARY_PATH to find libraries. Generally this directory is within the default library search path, but sometimes its not. It's quite normal to add /usr/local/lib
to the LD_LIBRARY_PATH in practice.
If u want to get rid of that, there are several ways:
- Build static libraries of otel
- Add the environment in the Dockerfile
- Add option to compile without otel
The reason is the binary
interactive-server
needs to find thelibotel*.so
, which is installed to the/usr/local/lib
, and the mechanism is rely on LD_LIBRARY_PATH to find libraries. Generally this directory is within the default library search path, but sometimes its not. It's quite normal to add/usr/local/lib
to the LD_LIBRARY_PATH in practice.If u want to get rid of that, there are several ways:
- Build static libraries of otel
- Add the environment in the Dockerfile
- Add option to compile without otel
yes, but In the Dockerfile for building the imagehqps-server-base:v0.0.10
, flex/Dockerfile, we have already added the path "/usr/local/lib/" to the LD_LIBRARY_PATH environment variable. Moreover, I did not encounter this issue while developing on the devcontainer, which is also build upon hqps-server-base:v0.0.10.
This line was added after I built the image and found this issue. If u build it again, it should work.
Moreover, I did not encounter this issue while developing on the devcontainer, which is also build upon hqps-server-base:v0.0.10
As previously said, generally this directory is within the default library search path, but sometimes its not. The environment is quite diverse. So if it doesn't find, just add that.