Possible bug in the 0.15.0 brew formula for gRPC.

After installing gRPC with `curl -fsSL https://goo.gl/getgrpc | bash -`, 
using protoc with objective-c output (via pod install of a sample project) 
gave the error:

```
protoc-gen-objcgrpc: program not found or is not executable
```

Seems that HomeBrew did not properly symlink the `protoc-gen-objcgrpc` file 
for grpc.

Here's how I fixed it:

```
cd /usr/local/Cellar/grpc/0.15.0/bin/
ln -s grpc_objective_c_plugin protoc-gen-objcgrpc
brew unlink grpc && brew link grpc
```

The above steps may also be necessary for other language plugins.

Hope that helps someone.
Best,
Tom

On Tuesday, October 6, 2015 at 3:58:58 PM UTC-7, [email protected] wrote:
>
> Yep - I was using brew.
>
> grpc isn't on a --devel branch (although protoc is currently at 2.x for 
> mainstream, 3.x for dev). I've used protoc for over a year in various 
> configs - assume it's something interesting in my install state that wasn't 
> upgradable or stuck.
>
> The fix for anyone else getting into this particular 
>
> - remove all packages via brew (brew uninstall protoc; brew uninstall grpc)
> - run this: curl -fsSL https://goo.gl/getgrpc | bash -
>
>
> Cheers,
>
>
> Nick
>
> On Monday, October 5, 2015 at 3:55:51 PM UTC-7, Jorge Canizales wrote:
>>
>> Hi,
>>
>> what steps did you follow to install grpc? The recommended way for Macs 
>> is to use homebrew 
>> <https://github.com/grpc/grpc/tree/master/src/objective-c#install>. If 
>> that's what you did, running "homebrew update" should make those problems 
>> disappear.
>>
>> On Sunday, October 4, 2015 at 11:20:22 PM UTC-7, [email protected] 
>> wrote:
>>>
>>> I fell over this when searching for the very same error message:
>>>
>>> "protoc-gen-objcgrpc: program not found or is not executable"
>>>
>>> However, I've not upgraded to El Capitan yet. Everything else is the 
>>> same.
>>>
>>> Cheers,
>>>
>>> Nick.
>>>
>>> On Thursday, October 1, 2015 at 5:42:04 PM UTC-7, Constantine Vassilev 
>>> wrote:
>>>>
>>>> I am using OS X 10.11 El Capitan
>>>> 1) Installed MacPorts for  El Capitan
>>>> 2) 3.0.0-alpha-4 from
>>>> https://github.com/google/protobuf/releases
>>>> 3) downloaded and installed gRPC 0.11
>>>>
>>>> $ git clone https://github.com/*grpc*/grpc.git
>>>>
>>>> $ cd grpc
>>>>
>>>> $ git *submodule* update --init
>>>>
>>>> $ make 
>>>>
>>>> $ [sudo] make install
>>>>
>>>> Then tried to compile:
>>>> grpc/examples/objective-c/helloworld
>>>> with "pod install".
>>>>
>>>> Got the following message:
>>>> protoc-gen-objcgrpc: program not found or is not executable
>>>> --objcgrpc_out: protoc-gen-objcgrpc: Plugin failed with status code 1.
>>>>
>>>> What is wrong?
>>>>
>>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/0bc950d5-2ffe-49ed-960f-facad29a9897%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to