-
Notifications
You must be signed in to change notification settings - Fork 763
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
Troubles getting started on OS X 10.11.6 (El Capitan) #7
Comments
Install docker in Mac and try it again, should work for sure |
I believe that docker is installed on my Mac.
|
Is the docker virtual machine running and visible? Try something like
If you get any errors from that then docker is not setup correctly. |
You don't need docker to build on mac. Docker is used as container to build for different linux.
|
Updated the README.md with build instructions. |
Thanks @fengli79, but I got another error while trying your solution. Here is my complete log:
|
@fengli79, same when I follow the install procedure you added in README.md:
=> same error: Is there anything I missed? |
Hmm, it's bug in the ./darwin_x86_64.sh, fixed by #17. |
This fix does allow me to go further! :-) But I still can't build the whole thing... It ends with the following errors:
Am I using the wrong protobuf version, maybe? Full log: http://pastebin.com/5iQ17dkb |
It looks not right, if you use init_submodules.sh, it should pin to protobuf tags/v3.0.2. |
@adrienjoly , does it work for you? |
nope, still not, @fengli79 ... here is my log from this morning, fresh clone: |
looks like you have old protobuf installed 3.0.0 beta4, and grpc is trying
to link with it. It's in grpc build script instead of our build script. Can
you uninstall the protobuf? Thus, grpc build script will use the submodule
protobuf from github.
…On Tue, Nov 29, 2016 at 12:31 AM Adrien Joly ***@***.***> wrote:
nope, still not, @fengli79 <https://github.com/fengli79> ...
here is my log from this morning, fresh clone:
http://pastebin.com/0faGZjY9
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AT1vm1t3keZexPh0ue_tLJioPVW2evJYks5rC-LvgaJpZM4KjeGo>
.
|
Sorry for the delay, @fengli79, I've been very busy lately, with the launch of my product + of two crowdfunding campaigns. I uninstalled "protobuf 3.0.0 beta4", tried again, and got:
full trace: http://pastebin.com/txzrjGJQ |
From El Cap, Mac starts to purge the DYLD_LIBRARY_PATH, thus I have to install grpc and protobuf into the default lib path for build. |
Good job, @fengli79, the build seems to be working now! :-) |
Now, I have no idea on how to test the project. |
Thank you for the link, @fengli79 Unfortunately, I'm having problems to run the example, now:
=> Should I open a new issue? |
yes, let's use a new issue to track.
…On Sat, Dec 17, 2016 at 3:32 AM Adrien Joly ***@***.***> wrote:
Thank you for the link, @fengli79 <https://github.com/fengli79>
Unfortunately, I'm having problems to run the example, now:
- When I run make example, I get a message saying that I should use
the darwin script. So I interrupted the script, and re-ran the darwin
script.
- To run make from grpc-web/net/grpc/gateway/examples/echo, I had to
re-install protoc (using brew install protobuf), but then I got the
following error:
echo$ make
protoc -I . --cpp_out=. echo.proto
g++ -std=c++11 -I/usr/local/include -I../../../../.. -pthread -c -o echo.pb.o echo.pb.cc
protoc -I . --grpc_out=. \
--plugin=protoc-gen-grpc=`which grpc_cpp_plugin` echo.proto
g++ -std=c++11 -I/usr/local/include -I../../../../.. -pthread -c -o echo.grpc.pb.o echo.grpc.pb.cc
g++ -std=c++11 -I/usr/local/include -I../../../../.. -pthread -c -o echo_server.o echo_server.cc
g++ echo.pb.o echo.grpc.pb.o echo_server.o -L/usr/local/lib -lgrpc++ -lgrpc -Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed -lprotobuf -lpthread -ldl -o echo_server
ld: unknown option: --no-as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [echo_server] Error 1
=> Should I open a new issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AT1vm5B1e4GECg-A3dArL90eJA2pa9kCks5rI8hHgaJpZM4KjeGo>
.
|
Restructure
Hi guys,
I spent some time trying to run the examples on my Mac, but ended up quitting after getting too many errors.
I'm sharing a history of what I tried to do, and what I got.
That's just a sample of all the error I got.
At that point, I decided to call it a day.
Hope this helps you in any way.
Cheers!
The text was updated successfully, but these errors were encountered: