-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot open shared object file: No such file or directory... part 2 #42
Comments
What do you get:
|
I have followed this instruction and solved the problem. |
I was trying to trace from where the path |
I've had the same issue, and the problem was about the env var LD_LIBRARY_PATH that was empty. I've copied the .so file to /usr/local/lib and typed the following command -> export $LD_LIBRARY_PATH=/usr/local/lib and this fixed the problem. Don't if this solution can be helpful, anyway i've obtained the following output, launching the main.go (go run main.go) -> 85: peacock: 0.976471 |
I have followed the instructions from issue and still have:
/tmp/go-build1465283250/b001/exe/main: error while loading shared libraries: libtensorflowlite_c.so: cannot open shared object file: No such file or directory
exit status 127
I put the libtensorflowlite_c.so into the /usr/local/lib and export LD_LIBRARY_PATH=/usr/local/lib and in /etc/environment but does not help.
I am trying to run esrgan example.
tflite.go has:
/*
#ifndef GO_TFLITE_H
#include "tflite.go.h"
#endif
#cgo LDFLAGS: -ltensorflowlite_c
#cgo android LDFLAGS: -ldl
#cgo linux,!android LDFLAGS: -ldl -lrt
*/`
I am using Go 1.17
The text was updated successfully, but these errors were encountered: