Closed emmy0x1 closed 5 years ago
@ealmz how did you install protobuf-elixir?
I'm on macOS. brew install protobuf
and then mix escript.install hex protobuf
@ealmz once you do that, do you have ~/.mix/escripts/protoc-gen-elixir
available? The bin
part shouldn't be there.
It installs in here /Users/emmyalmaraz/.asdf/installs/elixir/1.9.1/.mix/escripts/protoc-gen-elixir
Should I put that in my path instead? Sorry I don't have a ton of experience with environment variables.
You should have ~/.asdf/shims
in the path, then make sure that you install mix escript.install hex protobuf
in the current version you're using and then call asdf reshim
.
The only thing I did was asdf reshim
and it worked. Thank you!
I have my proto file in on the top level of my directory. When I run this:
protoc --elixir_out=./lib rpc.proto
, I get the following error:I've tried many variations of appending to my path without luck. The latest one is:
export PATH=/Users/emmyalmaraz/.mix/escripts/bin:$PATH