Go get: gccgo:error No such file or directory

Hello,

I have been having problems trying to use the go get [package] command.

How I installed Go: apt-get gccgo-go

I have install this version of go: go version xgcc (Ubuntu 4.9.3-0ubuntu4) 4.9.3 linux/amd64

I want to install monstache: a go deamon for mongodb and elasticsearch: https://github.com/rwynn/monstache#files

However, when I run: go get github.com/rwynn/monstache this error is generated:

github.com/BurntSushi/toml gccgo: error: $~/mongostache/src/github.com/BurntSushi/toml/decode.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/BurntSushi/toml/decode_meta.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/BurntSushi/toml/doc.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/BurntSushi/toml/encode.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/BurntSushi/toml/encoding_types.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/BurntSushi/toml/lex.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/BurntSushi/toml/parse.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/BurntSushi/toml/type_check.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/BurntSushi/toml/type_fields.go: No such file or directory gccgo: fatal error: no input files compilation terminated. github.com/araddon/gou gccgo: error: $~/mongostache/src/github.com/araddon/gou/coerce.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/araddon/gou/http.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/araddon/gou/jsonhelper.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/araddon/gou/log.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/araddon/gou/log_unix.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/araddon/gou/testutil.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/araddon/gou/throttle.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/araddon/gou/uid.go: No such file or directory gccgo: fatal error: no input files compilation terminated. github.com/bitly/go-hostpool gccgo: error: $~/mongostache/src/github.com/bitly/go-hostpool/epsilon_greedy.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/bitly/go-hostpool/epsilon_value_calculators.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/bitly/go-hostpool/host_entry.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/bitly/go-hostpool/hostpool.go: No such file or directory gccgo: fatal error: no input files compilation terminated. gopkg.in/sourcemap.v1/base64vlq gccgo: error: $~/mongostache/src/gopkg.in/sourcemap.v1/base64vlq/base64_vlq.go: No such file or directory gccgo: fatal error: no input files compilation terminated. github.com/robertkrimen/otto/token gccgo: error: $~/mongostache/src/github.com/robertkrimen/otto/token/token.go: No such file or directory gccgo: error: $~/mongostache/src/github.com/robertkrimen/otto/token/token_const.go: No such file or directory gccgo: fatal error: no input files compilation terminated. github.com/robertkrimen/otto/dbg gccgo: error: $~/mongostache/src/github.com/robertkrimen/otto/dbg/dbg.go: No such file or directory gccgo: fatal error: no input files compilation terminated. github.com/robertkrimen/otto/registry gccgo: error: $~/mongostache/src/github.com/robertkrimen/otto/registry/registry.go: No such file or directory gccgo: fatal error: no input files compilation terminated. gopkg.in/mgo.v2/bson gccgo: error: $~/mongostache/src/gopkg.in/mgo.v2/bson/bson.go: No such file or directory gccgo: error: $~/mongostache/src/gopkg.in/mgo.v2/bson/decode.go: No such file or directory gccgo: error: $~/mongostache/src/gopkg.in/mgo.v2/bson/encode.go: No such file or directory gccgo: fatal error: no input files compilation terminated. gopkg.in/mgo.v2/internal/scram gccgo: error: $~/mongostache/src/gopkg.in/mgo.v2/internal/scram/scram.go: No such file or directory gccgo: fatal error: no input files compilation terminated.

I am new to Go so I don’t know what I’m doing wrong.

Thanks.
AJ

Unless there’s some specific reason why you need to use GCCgo instead of normal Go, I’d suggest using the normal Go compiler.

I’d second this. Unless you have a strong reason, I recommend the official releases from the golang.org website. They are extremely well tested, known to work well on all supported systems, and are always up to date.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.