ptt / pttweb

PTT BBS Web Frontend
http://www.ptt.cc/bbs/
MIT License
211 stars 30 forks source link

install problem #14

Closed wade-fs closed 4 years ago

wade-fs commented 4 years ago

Is there any document for install pttweb?

I do the following:

export GOPATH="$HOME/go" go get -u github.com/ptt/pttweb ...... but failed:

$ go get -u github.com/ptt/pttweb go: finding github.com/ptt/pttweb latest go: finding golang.org/x/tools latest go: finding golang.org/x/net latest go: finding github.com/rvelhote/go-recaptcha latest go: finding golang.org/x/sys latest go: finding google.golang.org/genproto latest build github.com/ptt/pttweb: cannot load github.com/ptt/pttweb/proto/api: module github.com/ptt/pttweb@latest found (v0.0.0-20200321233133-7aff4bb7b273), but does not contain package github.com/ptt/pttweb/proto/api

I suspect it is a golang version issue. Is it true? If yes, could tell me the supported go version? If no, could tell me the install environment requirements or the install steps?

robertabcd commented 4 years ago

You will need to generate protobuf code, as this part wasn't checked in. Please see the commands in CI script: https://github.com/ptt/pttweb/blob/master/.travis.yml#L18-L20

wade-fs commented 4 years ago

Hello, sir, Thank you for your reply soon. I think the issue came from the "permission" or "environment". I try "sudo make -C go/pkg/mod/github.com/ptt/pttweb@v0.0.0-20200321233133-7aff4bb7b273/proto" to replace origin "make -C github.com/ptt/pttweb/proto"

If I tried run as "root", it still failed. It means that I run with normal user, but replace sudo in "make -C ..." in above.

holishing commented 4 years ago

you have to install golang-goprotobuf-dev