finaltun icon indicating copy to clipboard operation
finaltun copied to clipboard

Can't compile in OpenVZ VPS

Open realgtk opened this issue 8 years ago • 7 comments

:( Can't compile in OpenVZ VPS

realgtk avatar May 16 '16 07:05 realgtk

能否给出详细信息

tcz001 avatar May 16 '16 12:05 tcz001

查了一下,貌似是golang无法在OpenVZ上正常编译,非虚拟机环境下编译后,拷贝到vps上也无法运行,提示中断陷阱。估计还是OpenVZ内存问题,不知大家都没有解决方法。

realgtk avatar May 17 '16 17:05 realgtk

@realgtk 可以安装,我的就是OpenVZ。finaltun怎么安装?

lp123sun avatar May 22 '16 14:05 lp123sun

@lp123sun golang安装没问题,编译有问题。

realgtk avatar May 24 '16 01:05 realgtk

@realgtk 怎么我的提示缺少这么多文件:

main.go:4:2: cannot find package "crypto/aes" in any of: /root/go/src/crypto/aes (from $GOROOT) /root/.gopkgs/finaltun/src/crypto/aes (from $GOPATH) /root/.gopath/src/crypto/aes main.go:5:2: cannot find package "crypto/cipher" in any of: /root/go/src/crypto/cipher (from $GOROOT) /root/.gopkgs/finaltun/src/crypto/cipher (from $GOPATH) /root/.gopath/src/crypto/cipher main.go:12:2: cannot find package "github.com/codegangsta/cli" in any of: /root/go/src/github.com/codegangsta/cli (from $GOROOT) /root/.gopkgs/finaltun/src/github.com/codegangsta/cli (from $GOPATH) /root/.gopath/src/github.com/codegangsta/cli main.go:13:2: cannot find package "github.com/xtaci/kcp-go" in any of: /root/go/src/github.com/xtaci/kcp-go (from $GOROOT) /root/.gopkgs/finaltun/src/github.com/xtaci/kcp-go (from $GOPATH) /root/.gopath/src/github.com/xtaci/kcp-go main.go:6:2: cannot find package "log" in any of: /root/go/src/log (from $GOROOT) /root/.gopkgs/finaltun/src/log (from $GOPATH) /root/.gopath/src/log main.go:7:2: cannot find package "math/rand" in any of: /root/go/src/math/rand (from $GOROOT) /root/.gopkgs/finaltun/src/math/rand (from $GOPATH) /root/.gopath/src/math/rand main.go:8:2: cannot find package "net" in any of: /root/go/src/net (from $GOROOT) /root/.gopkgs/finaltun/src/net (from $GOPATH) /root/.gopath/src/net main.go:9:2: cannot find package "os" in any of: /root/go/src/os (from $GOROOT) /root/.gopkgs/finaltun/src/os (from $GOPATH) /root/.gopath/src/os package . imports runtime: cannot find package "runtime" in any of: /root/go/src/runtime (from $GOROOT) /root/.gopkgs/finaltun/src/runtime (from $GOPATH) /root/.gopath/src/runtime main.go:10:2: cannot find package "time" in any of: /root/go/src/time (from $GOROOT) /root/.gopkgs/finaltun/src/time (from $GOPATH) /root/.gopath/src/time

lp123sun avatar May 24 '16 02:05 lp123sun

@lp123sun go get ./...

tcz001 avatar May 27 '16 01:05 tcz001

编译估计是因为依赖了gopacket/libpcap需要内核态的权限,这个问题没法解决

tcz001 avatar May 27 '16 01:05 tcz001