Thanks to visit codestin.com
Credit goes to github.com

Skip to content

服务器上运行./build.sh遇错 #6

@luckypoem

Description

@luckypoem

hi。

我在mac机器上运行./build.sh,能生成可执行文件client。
但是在服务器上运行./build.sh遇错:
root@localhost:/mika-by-sakeven# ./build.sh
building client ...
cmd/client/client.go:8:2: cannot find package "github.com/sakeven/mika/protocols" in any of:
/root/go/src/github.com/sakeven/mika/protocols (from $GOROOT)
/root/go/gopath/src/github.com/sakeven/mika/protocols (from $GOPATH)
cmd/client/client.go:9:2: cannot find package "github.com/sakeven/mika/protocols/mika" in any of:
/root/go/src/github.com/sakeven/mika/protocols/mika (from $GOROOT)
/root/go/gopath/src/github.com/sakeven/mika/protocols/mika (from $GOPATH)
cmd/client/client.go:10:2: cannot find package "github.com/sakeven/mika/protocols/proxy/http" in any of:
/root/go/src/github.com/sakeven/mika/protocols/proxy/http (from $GOROOT)
/root/go/gopath/src/github.com/sakeven/mika/protocols/proxy/http (from $GOPATH)
cmd/client/client.go:11:2: cannot find package "github.com/sakeven/mika/protocols/proxy/socks5" in any of:
/root/go/src/github.com/sakeven/mika/protocols/proxy/socks5 (from $GOROOT)
/root/go/gopath/src/github.com/sakeven/mika/protocols/proxy/socks5 (from $GOPATH)
cmd/client/client.go:12:2: cannot find package "github.com/sakeven/mika/protocols/transfer/kcp" in any of:
/root/go/src/github.com/sakeven/mika/protocols/transfer/kcp (from $GOROOT)
/root/go/gopath/src/github.com/sakeven/mika/protocols/transfer/kcp (from $GOPATH)
cmd/client/client.go:13:2: cannot find package "github.com/sakeven/mika/protocols/transfer/obfs" in any of:
/root/go/src/github.com/sakeven/mika/protocols/transfer/obfs (from $GOROOT)
/root/go/gopath/src/github.com/sakeven/mika/protocols/transfer/obfs (from $GOPATH)
cmd/client/client.go:14:2: cannot find package "github.com/sakeven/mika/protocols/transfer/tcp" in any of:
/root/go/src/github.com/sakeven/mika/protocols/transfer/tcp (from $GOROOT)
/root/go/gopath/src/github.com/sakeven/mika/protocols/transfer/tcp (from $GOPATH)
cmd/client/client.go:15:2: cannot find package "github.com/sakeven/mika/utils" in any of:
/root/go/src/github.com/sakeven/mika/utils (from $GOROOT)
/root/go/gopath/src/github.com/sakeven/mika/utils (from $GOPATH)
build client failed!
root@localhost:
/mika-by-sakeven#

怎么解决?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions