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

13 lines
621 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Linux上C++部署
1. 编译完成运行,提示找不到.so文件
在执行二进制文件时需要能够在环境变量中找到FastDeploy相关的库文件。FastDeploy提供了辅助脚本来帮助完成。
执行如下命令即可将库路径导入到LD_LIBRARY_PATH中
```
source /Downloads/fastdeploy-linux-x64-1.0.0/fastdeploy_init.sh
```
再重新执行即可。 注意此命令执行后仅在当前的命令环境中生效(切换一个新的终端窗口,或关闭窗口重新打开后会无效),如若需要在系统中持续生效,可将这些环境变量加入到`~/.bashrc`文件中。