Files
FastDeploy/docs/en/faq/use_sdk_on_linux.md
2022-11-29 10:40:06 +08:00

16 lines
660 B
Markdown

# C++ Deployment on Linux
1. After compilation, and execute the binary file, throw error `error while loading shared libraries`
When we execute the binary file, it requires the dependent libraries can be found in the system, otherwise, it throws error like below
```
./infer_ppyoloe_demo: error while loading shared libraries: libonnxruntime.so.1.12.0: cannot open shared object file: No such file or directory
```
FastDeploy provides a shell scripts to help export the libraries path to `LD_LIBRARY_PATH`, execute the follwing command
```
source /Downloads/fastdeploy-linux-x64-1.0.0/fastdeploy_init.sh
```
And now you can execute the binary file again.