intel / cc-oci-runtime

OCI (Open Containers Initiative) compatible runtime for Intel® Architecture
GNU General Public License v2.0
416 stars 59 forks source link

I can't compile in xubuntu #998

Open pipul opened 7 years ago

pipul commented 7 years ago

proxy/protocol.go:23:2: cannot find package "github.com/01org/cc-oci-runtime/proxy/api" in any of: /home/test/go/src/github.com/01org/cc-oci-runtime/proxy/api (from $GOROOT) /home/test/go/bin/src/github.com/01org/cc-oci-runtime/proxy/api (from $GOPATH) Makefile:5296: recipe for target 'cc-proxy' failed make[1]: [cc-proxy] Error 1 make[1]: Leaving directory '/home/test/work/cc-oci-runtime' Makefile:1682: recipe for target 'all' failed make: [all] Error 2

$ go env GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/test/go/bin" GORACE="" GOROOT="/home/test/go" GOTOOLDIR="/home/test/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build342346129=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1"

$ go version go version go1.7.6 linux/amd64

dlespiau commented 7 years ago

Hi,

Try cloning the repository in home/test/go/bin/src/github.com/01org/cc-oci-runtime instead. Because the proxy is in Go it's easier if the cc-oci-runtime is in the GOPATH.

HTH,

jcvenegas commented 7 years ago

you can also do ./autogen.sh --enable-autogopath to let build tools setup a local a gopath enviroment for you