canonical / lxd-demo-server

The LXD demo server
https://linuxcontainers.org/lxd/try-it
Apache License 2.0
74 stars 26 forks source link

Getting errors while runing go build #3

Closed DilipRenkila closed 8 years ago

DilipRenkila commented 8 years ago

$ go build _/home/dilip/lxd-demo-server ./db.go:158: undefined: sqlite3 in sqlite3.ErrLocked ./db.go:158: undefined: sqlite3 in sqlite3.ErrBusy please can you explain me why this error happens?

stgraber commented 8 years ago

What OS are your trying to build this on?

DilipRenkila commented 8 years ago

ubuntu 16.04

stgraber commented 8 years ago

I'm unable to reproduce this, both a straight "go build" in the directory or a clean build from scratch with:

mkdir /tmp/go
export GOPATH=/tmp/go
go get -v -x github.com/lxc/lxd-demo-server

Work fine here.

The error you're reporting would be consistent with you not having a built go-sqlite3 for some reason but I'm on 16.04 and it's all working fine here.

DilipRenkila commented 8 years ago

It works fine. container: "my-base-container" image: "my-image" Do i need to create an container and then substitute the container's name in the above ?

stgraber commented 8 years ago

Yep, or not set it and set the image instead. It's one or the other, pick what you prefer.