-
Notifications
You must be signed in to change notification settings - Fork 74.7k
Add the shared libraries in the quickstart #10871
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
Conversation
Can one of the admins verify this patch? |
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it! cla |
CLAs look good, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Some suggestions.
tensorflow/go/README.md
Outdated
@@ -26,6 +26,8 @@ Construct and execute TensorFlow graphs in Go. | |||
curl -L \ | |||
"https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-${TF_TYPE}-$(go env GOOS)-x86_64-1.1.0.tar.gz" | | |||
sudo tar -C /usr/local -xz | |||
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib | |||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of setting the environment variables, perhaps we can just run ldconfig
?
Actually, better still, perhaps it would be better to replace the "Quickstart" section with a pointer to the installation instructions on the website: https://www.tensorflow.org/install/install_go ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! We can totally replace the "Quickstart" with the web link since there's also a section "Installing into locations other than /usr/local
" under it, which can make the whole file terse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Jenkins, test this please. |
Add the shared libraries in the quickstart
When following the quickstart steps of the golang README.md, below issue is found:
$ uname -a
Linux ubuntu-16 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ go test github.com/tensorflow/tensorflow/tensorflow/go
/tmp/go-build828413616/github.com/tensorflow/tensorflow/tensorflow/go/_test/go.test: error while loading shared libraries: libtensorflow.so: cannot open shared object file: No such file or directory
FAIL github.com/tensorflow/tensorflow/tensorflow/go 0.001s
It's due to the env variable, after adding the LIBRARY_PATH and LD_LIBRARY_PATH, it became ok.
$ go test github.com/tensorflow/tensorflow/tensorflow/go
ok github.com/tensorflow/tensorflow/tensorflow/go 0.246s
so I updated the README.md file.