crawlab-team / crawlab

Distributed web crawler admin platform for spiders management regardless of languages and frameworks. 分布式爬虫管理平台,支持任何语言和框架
https://www.crawlab.cn
BSD 3-Clause "New" or "Revised" License
11.39k stars 1.8k forks source link

后端无法部署 #454

Closed goofts closed 4 years ago

goofts commented 4 years ago

~/crawlab/backend# go install ./... main.go:12:2: cannot find package "github.com/apex/log" in any of: /usr/lib/go-1.10/src/github.com/apex/log (from $GOROOT) /root/go/src/github.com/apex/log (from $GOPATH) main.go:13:2: cannot find package "github.com/gin-gonic/gin" in any of: /usr/lib/go-1.10/src/github.com/gin-gonic/gin (from $GOROOT) /root/go/src/github.com/gin-gonic/gin (from $GOPATH) main.go:14:2: cannot find package "github.com/gin-gonic/gin/binding" in any of: /usr/lib/go-1.10/src/github.com/gin-gonic/gin/binding (from $GOROOT) /root/go/src/github.com/gin-gonic/gin/binding (from $GOPATH) main.go:15:2: cannot find package "github.com/spf13/viper" in any of: /usr/lib/go-1.10/src/github.com/spf13/viper (from $GOROOT) /root/go/src/github.com/spf13/viper (from $GOPATH) config/config.go:4:2: cannot find package "github.com/fsnotify/fsnotify" in any of: /usr/lib/go-1.10/src/github.com/fsnotify/fsnotify (from $GOROOT) /root/go/src/github.com/fsnotify/fsnotify (from $GOPATH) database/mongo.go:4:2: cannot find package "github.com/globalsign/mgo" in any of: /usr/lib/go-1.10/src/github.com/globalsign/mgo (from $GOROOT) /root/go/src/github.com/globalsign/mgo (from $GOPATH) database/pubsub.go:8:2: cannot find package "github.com/gomodule/redigo/redis" in any of: /usr/lib/go-1.10/src/github.com/gomodule/redigo/redis (from $GOROOT) /root/go/src/github.com/gomodule/redigo/redis (from $GOPATH) database/pubsub.go:9:2: cannot find package "github.com/pkg/errors" in any of: /usr/lib/go-1.10/src/github.com/pkg/errors (from $GOROOT) /root/go/src/github.com/pkg/errors (from $GOPATH) lib/validate_bridge/validator.go:8:2: cannot find package "gopkg.in/go-playground/validator.v9" in any of: /usr/lib/go-1.10/src/gopkg.in/go-playground/validator.v9 (from $GOROOT) /root/go/src/gopkg.in/go-playground/validator.v9 (from $GOPATH) mock/node.go:9:2: cannot find package "github.com/globalsign/mgo/bson" in any of: /usr/lib/go-1.10/src/github.com/globalsign/mgo/bson (from $GOROOT) /root/go/src/github.com/globalsign/mgo/bson (from $GOPATH) mock/task.go:12:2: cannot find package "github.com/satori/go.uuid" in any of: /usr/lib/go-1.10/src/github.com/satori/go.uuid (from $GOROOT) /root/go/src/github.com/satori/go.uuid (from $GOPATH) model/spider.go:12:2: cannot find package "gopkg.in/yaml.v2" in any of: /usr/lib/go-1.10/src/gopkg.in/yaml.v2 (from $GOROOT) /root/go/src/gopkg.in/yaml.v2 (from $GOPATH) services/user.go:8:2: cannot find package "github.com/dgrijalva/jwt-go" in any of: /usr/lib/go-1.10/src/github.com/dgrijalva/jwt-go (from $GOROOT) /root/go/src/github.com/dgrijalva/jwt-go (from $GOPATH)

tikazyq commented 4 years ago

是不是被墙了,试试设置GOPROXY=https://goproxy.cn

goofts commented 4 years ago

Go的包路径错误

2020年1月15日 下午7:03,Marvin Zhang notifications@github.com 写道:

是不是被墙了,试试设置GOPROXY=https://goproxy.cn

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/crawlab-team/crawlab/issues/454?email_source=notifications&email_token=AKF3I5TVYPWY6SNVFBOG3ALQ53UQ7A5CNFSM4KHALEV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI75YSI#issuecomment-574610505, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKF3I5RURMJWNMAVSA3WBNTQ53UQ7ANCNFSM4KHALEVQ.

tikazyq commented 4 years ago

解决了吗

MilkWangStudio commented 4 years ago

我也遇到了一样的问题,请问这个是怎么解决啊? root@ecs-422f:/data/deploy/crawlab/backend# go install ./... main.go:5:2: cannot find package "crawlab/config" in any of: /usr/lib/go-1.10/src/crawlab/config (from $GOROOT) /root/go/src/crawlab/config (from $GOPATH) main.go:6:2: cannot find package "crawlab/database" in any of: /usr/lib/go-1.10/src/crawlab/database (from $GOROOT) /root/go/src/crawlab/database (from $GOPATH) main.go:7:2: cannot find package "crawlab/lib/validate_bridge" in any of: /usr/lib/go-1.10/src/crawlab/lib/validate_bridge (from $GOROOT) /root/go/src/crawlab/lib/validate_bridge (from $GOPATH) main.go:8:2: cannot find package "crawlab/middlewares" in any of: /usr/lib/go-1.10/src/crawlab/middlewares (from $GOROOT) /root/go/src/crawlab/middlewares (from $GOPATH) main.go:9:2: cannot find package "crawlab/model" in any of: /usr/lib/go-1.10/src/crawlab/model (from $GOROOT)