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

Incomplete documentation for getting the project running. #41

Closed
Ghoughpteighbteau opened this issue Nov 14, 2014 · 1 comment · Fixed by #43
Closed

Incomplete documentation for getting the project running. #41

Ghoughpteighbteau opened this issue Nov 14, 2014 · 1 comment · Fixed by #43

Comments

@Ghoughpteighbteau
Copy link

Running from stock ubuntu 14.04, with git and go installed.

The commands I followed from stock:

trusty-64:~$ sudo apt-get -y install git golang > /dev/null
trusty-64:~$ mkdir -p ~/sources/bin
trusty-64:~$ export GOPATH=~/sources
trusty-64:~$ export GOBIN=$GOPATH/bin
trusty-64:~$ go get github.com/lxc/lxd
trusty-64:~$ cd $GOPATH/src/github.com/lxc/lxd
trusty-64:~/sources/src/github.com/lxc/lxd$ go build
trusty-64:~/sources/src/github.com/lxc/lxd$ ????
trusty-64:~/sources/src/github.com/lxc/lxd$ go build -x
WORK=/tmp/go-build043807985

the last command being explicit with what go build is doing, which is defining a variable called WORK and then doing nothing.

I would expect running go get ../... at some point or installing pkg-config

and presumably LXC should be on the system as well? sudo apt-get install lxc ?

or compile from source?

@tych0
Copy link
Contributor

tych0 commented Nov 14, 2014

On Fri, Nov 14, 2014 at 11:43:10AM -0800, Ghoughpteighbteau wrote:

Running from stock ubuntu 14.04, with git and go installed.

The commands I followed from stock:

trusty-64:~$ sudo apt-get -y install git golang > /dev/null
trusty-64:~$ mkdir -p ~/sources/bin
trusty-64:~$ export GOPATH=~/sources
trusty-64:~$ export GOBIN=$GOPATH/bin
trusty-64:~$ go get github.com/lxc/lxd
trusty-64:~$ cd $GOPATH/src/github.com/lxc/lxd
trusty-64:~/sources/src/github.com/lxc/lxd$ go build
trusty-64:~/sources/src/github.com/lxc/lxd$ ????
trusty-64:~/sources/src/github.com/lxc/lxd$ go build -x
WORK=/tmp/go-build043807985

the last command being explicit with what go build is doing, which is defining a variable called WORK and then doing nothing.

I would expect running go get ../... at some point or installing pkg-config

and presumably LXC should be on the system as well? sudo apt-get install lxc ?

or compile from source?

Yes, you're right that lxc needs to be installed. You can run 'make'
from the top level directory to build both binaries. I'll update the
docs accordingly. Thanks for the report!


Reply to this email directly or view it on GitHub:
lxc/incus#41

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

Successfully merging a pull request may close this issue.

2 participants