找不到-ltensorflow

I'm trying to make work TF on Mac OS X. I ran the tutorial how to install it. All went well, the tensorflow library is install in my GOPATH but I keep getting this error.

/usr/local/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: library not found for -ltensorflow
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I understand it is something about C compiler cannot found ltensorflow library. TF runs all good with Python2.7 though.

Any ideas how to fix it, please?

EDIT:

Air-MacBook-Air-Fonzik:GoTensor air$ echo $DYLD_LIBRARY_PATH 
/Users/air/PycharmProjects/GoTensor/
Air-MacBook-Air-Fonzik:GoTensor air$ echo $LIBRARY_PATH 
/Users/air/PycharmProjects/GoTensor/
Air-MacBook-Air-Fonzik:GoTensor air$ echo $GOPATH
/Users/air/PycharmProjects/GoTensor/

this is the output of my paths now, still does not work. The folder GoTensor contains the pkg and src of tensorflow go package. Is this setup correct?

$DYLD_LIBRARY_PATH and $LIBRARY_PATH need to include the directory in which the C library (libtensorflow.so) is installed, not the Go libraries.

I suspect this is not the case for you (ls ${DYLD_LIBRARY_PATH}/libtensorflow.so). (See Step 2 and 3 in https://www.tensorflow.org/install/install_go).

To avoid needing the environment variables, you could also ensure that libtensorflow.so is in /usr/local/lib and then run ldconfig once after extracting it.

Hope that helps.