"gradlew installDist" fails

220 views
Skip to first unread message

gqqn...@gmail.com

unread,
Jul 15, 2017, 2:12:13 PM7/15/17
to grpc.io
I'm following https://grpc.io/docs/quickstart/android.html#before-you-begin


When I run


$ ./gradlew installDist

it gives error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':grpc-compiler:compileJava_pluginExecutableJava_pluginCpp'.
> No tool chain is available to build for platform 'x86_64':
    - Tool chain 'visualCpp' (Visual Studio): Could not locate a Visual Studio installation, using the Windows registry and system path.
    - Tool chain 'gcc' (GNU GCC): Could not find C compiler 'gcc' in system path.
    - Tool chain 'clang' (Clang): Could not find C compiler 'clang' in system path.


But I installed Visual Studio 2017 Preview

How to fix it?

Eric Gribkoff

unread,
Jul 15, 2017, 2:42:27 PM7/15/17
to gqqn...@gmail.com, grpc.io
Are you using a release tag of the repo? E.g., 'git checkout v1.4.0'? You should be on a release version according to the instructions on https://grpc.io/docs/quickstart/android.html#before-you-begin, in which case codegen should already be built and you shouldn't be seeing this error. If you're on another branch, like master, this will happen. You can also try adding the line skipCodegen=true in your gradle.properties file (https://github.com/grpc/grpc-java/blob/master/COMPILING.md), but this shouldn't be necessary on a release version - if it is necessary for you, please let me know so we can investigate the issue further.

Thanks,

Eric

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/a7dafdd6-10c9-417c-b47c-026f2c6def92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gqqn...@gmail.com

unread,
Jul 15, 2017, 4:57:51 PM7/15/17
to grpc.io, gqqn...@gmail.com
oh, my bad. I forgot to change directory to grpc-java/examples.

Now it compiles. Thanks so much!!!

在 2017年7月15日星期六 UTC-7上午11:42:27,Eric Gribkoff写道:
Are you using a release tag of the repo? E.g., 'git checkout v1.4.0'? You should be on a release version according to the instructions on https://grpc.io/docs/quickstart/android.html#before-you-begin, in which case codegen should already be built and you shouldn't be seeing this error. If you're on another branch, like master, this will happen. You can also try adding the line skipCodegen=true in your gradle.properties file (https://github.com/grpc/grpc-java/blob/master/COMPILING.md), but this shouldn't be necessary on a release version - if it is necessary for you, please let me know so we can investigate the issue further.

Thanks,

Eric
On Sat, Jul 15, 2017 at 11:12 AM, <gqqn...@gmail.com> wrote:
I'm following https://grpc.io/docs/quickstart/android.html#before-you-begin


When I run


$ ./gradlew installDist

it gives error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':grpc-compiler:compileJava_pluginExecutableJava_pluginCpp'.
> No tool chain is available to build for platform 'x86_64':
    - Tool chain 'visualCpp' (Visual Studio): Could not locate a Visual Studio installation, using the Windows registry and system path.
    - Tool chain 'gcc' (GNU GCC): Could not find C compiler 'gcc' in system path.
    - Tool chain 'clang' (Clang): Could not find C compiler 'clang' in system path.


But I installed Visual Studio 2017 Preview

How to fix it?

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages