firecracker-microvm / firectl

firectl is a command-line tool to run Firecracker microVMs
Apache License 2.0
479 stars 72 forks source link

Build Error #35

Closed madhavtummala closed 5 years ago

madhavtummala commented 5 years ago

I am new to go lang. To install go in my Ubuntu 19.04 system, I used

sudo apt install golang-go

Then after cloning the firectl repository and running make, I got this error.

go build
main.go:24:2: cannot find package "github.com/firecracker-microvm/firecra:
    /usr/lib/go-1.10/src/github.com/firecracker-microvm/firecracker-g)
    /home/madhav/go/src/github.com/firecracker-microvm/firecracker-go)
options.go:28:2: cannot find package "github.com/firecracker-microvm/fire:
    /usr/lib/go-1.10/src/github.com/firecracker-microvm/firecracker-g)
    /home/madhav/go/src/github.com/firecracker-microvm/firecracker-go)
main.go:25:2: cannot find package "github.com/jessevdk/go-flags" in any o:
    /usr/lib/go-1.10/src/github.com/jessevdk/go-flags (from $GOROOT)
    /home/madhav/go/src/github.com/jessevdk/go-flags (from $GOPATH)
options.go:29:2: cannot find package "github.com/pkg/errors" in any of:
    /usr/lib/go-1.10/src/github.com/pkg/errors (from $GOROOT)
    /home/madhav/go/src/github.com/pkg/errors (from $GOPATH)
main.go:26:2: cannot find package "github.com/sirupsen/logrus" in any of:
    /usr/lib/go-1.10/src/github.com/sirupsen/logrus (from $GOROOT)
    /home/madhav/go/src/github.com/sirupsen/logrus (from $GOPATH)
make: *** [Makefile:24: firectl] Error 1

Please help me on what to do.

samuelkarp commented 5 years ago

Hello!

firectl requires a minimum of Go 1.11, and it appears from the errors that you're seeing that you're using Go 1.10. You'll need to update your version of Go in order to build firectl.

Thanks, Sam

samuelkarp commented 5 years ago

Hi @MadhavChoudhary! We haven't heard back from you in a week, so I'm closing this issue. Please feel free to reopen it if you have further questions.