Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

v1.8.5 golang预测demo运行错误

Open vic-93 opened this issue 5 years ago • 5 comments

demo:https://github.com/PaddlePaddle/Paddle/blob/v1.8.5/go/README_cn.md golang:1.14.12

image

λ 9a8a6688dc42 /paddle/build/python/dist {(v1.8.5)} cd /paddle/go/
lλ 9a8a6688dc42 /paddle/go {(v1.8.5)} ll
total 16K
drwxr-xr-x  8 root root  256 Jan 18 06:52 ./
drwxr-xr-x 32 root root 1.0K Jan 18 07:08 ../
drwxr-xr-x  6 root root  192 Jan 18 02:48 data/
drwxr-xr-x  5 root root  160 Jan 15 06:18 demo/
-rw-r--r--  1 root root 8.1K Jan 18 02:50 .DS_Store
drwxr-xr-x  7 root root  224 Jan 18 07:05 paddle/
drwxr-xr-x  6 root root  192 Jan 18 05:57 paddle_c/
-rw-r--r--  1 root root 1.2K Jan 15 06:57 README_cn.md
λ 9a8a6688dc42 /paddle/go {(v1.8.5)} go run ./demo/mobilenet.go
# command-line-arguments
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/local/bin/ld: cannot find -lpaddle_fluid_c
/usr/local/bin/ld: cannot find -lpaddle_fluid_c
/usr/local/bin/ld: cannot find -lpaddle_fluid_c
/usr/local/bin/ld: cannot find -lpaddle_fluid_c
collect2: error: ld returned 1 exit status

vic-93 avatar Jan 18 '21 07:01 vic-93

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!

paddle-bot-old avatar Jan 18 '21 07:01 paddle-bot-old

golang在线预测的api除了依赖paddle_c还有哪些依赖呢?

vic-93 avatar Jan 18 '21 08:01 vic-93

动态链接库没有安装到/usr/local/lib下面,或者指定export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/paddle/go/paddle/paddle_c/paddle/lib/

image

vic-93 avatar Jan 18 '21 09:01 vic-93

Are you satisfied with the resolution of your issue?

YES No

paddle-bot-old avatar Jan 19 '21 09:01 paddle-bot-old

动态链接库没有安装到/usr/local/lib下面,或者指定export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/paddle/go/paddle/paddle_c/paddle/lib/

vic-93 avatar Jan 19 '21 09:01 vic-93