-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Mac/Ubuntu Installation Fails syntax error near unexpected token
PROTOBUF,'`
#20
Comments
Was able to resolve by following this comment thread: But then ran into another error:
|
Resolved with
|
Another problem:
Resolved: protocolbuffers/protobuf#2570 |
syntax error near unexpected token
PROTOBUF,'`syntax error near unexpected token
PROTOBUF,'`
Seems that pkg-config helped to resolve this issue. Please let me close this issue. |
@taku910 @Deepblue129 This original issue is still occurring for me:
It is not clear to me what part of the thread resolved this issue. Could you provide some more specificity around how you resolved it? |
To confirm, I have installed pkg-config, but this only seemed to resolve the second issue. It appears that the original issue is still unclear how to resolve it. |
Hi Friends! This repo is old and has far to many problems and dependencies. Built a gist for subwords in pure python from Google's new repo Tensor2Tensor. I suggest you use that! Thanks! |
I am working on a Mac running macOS Sierra. I also ran into difficulties when trying to install this software. Below was the error message I got after running the following commands.
Error Message
In order to fix the problem, these are the commands that I had to do: export PROTOBUF=/usr/local
export PROTOC="$PROTOBUF/bin/protoc"
export PROTOBUF_LIBS="-L$PROTOBUF/lib -lprotobuf -D_THREAD_SAFE"
export PROTOBUF_CFLAGS="-I$PROTOBUF/include -D_THREAD_SAFE" From what I can understand, I just needed to point the PROTOBUF variable to the correct library. I also believe I installed pkg-config, but I cannot remember if that explicitly helped the problem or not. Lastly, I also ran into the "sudo ldconfig -v" problem, but is solved/discussed in another thread. Hope this helps! |
Out:
Brew protobuf info:
The text was updated successfully, but these errors were encountered: