Skip to content
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

Failed: fail to run "make" #159

Closed
ameriania opened this issue Jun 6, 2018 · 4 comments
Closed

Failed: fail to run "make" #159

ameriania opened this issue Jun 6, 2018 · 4 comments

Comments

@ameriania
Copy link

ameriania commented Jun 6, 2018

$ cd $GOPATH/src/github.com/ry/deno

$ make
protoc --go_out=. msg.proto
make: protoc: No such file or directory
make: *** [msg.pb.go] Error 1

I encounter this problem,and stuck here.

Maybe there are some similar problems #128 #71

But it can not solve my problem

Anyone can help?Thanks

OS: macOS 10.13.2
go version: go version go1.10.2 darwin/amd64
current directory: ~/go/src/github.com/ry/deno

@terasum
Copy link
Contributor

terasum commented Jun 6, 2018

@ThatToti you need to install protoc, the README.md contains the install instruction

@ztplz
Copy link
Contributor

ztplz commented Jun 6, 2018

run export PATH=$PATH:$HOME/go/bin:$GOPATH/bin and get protoc-gen-go again

@ameriania
Copy link
Author

@terasum @ztplz I did install the protoc-gen-go,but it still throws the error

protoc --go_out=. msg.proto
make: protoc: No such file or directory
make: *** [msg.pb.go] Error 1

@ameriania
Copy link
Author

Okay,I found the problem.

In the Compile Instructions,we run

brew install protobuf

It should install protoc at the same time,but for some reasons,it will fail.

When we run make ,it will throws the error

protoc --go_out=. msg.proto
make: protoc: No such file or directory
make: *** [msg.pb.go] Error 1

To install protoc,we can alternately install as followed instructions:

Mac OS

PROTOC_ZIP=protoc-3.3.0-osx-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
rm -f $PROTOC_ZIP

Linux

PROTOC_ZIP=protoc-3.3.0-linux-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
rm -f $PROTOC_ZIP

That's it.

@ztplz @terasum Thanks for your suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants