dqbjvg2518 2017-09-23 03:10
浏览 694
已采纳

golang错误:运行go get时找不到目录包

I'm trying to solve the example provided in Orielly book Decentrallized Applications.

The go-ipfs package seems to be outdated and the new version is not working fine. so I manually coping the older releases and try to compile go-kerala.

Eventhough some of the folder exists in the path I get error.

For example, /home/rajkumar/go/src/github.com/ipfs/go- ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58 (from $GOPATH) is present after I have manually copied older release file but still go-get command gives error.

 $go get -d github.com/llSourcell/kerala
 package code.google.com/p/go.net/context: unrecognized import path 
 "code.google.com/p/go.net/context" (parse 
 https://code.google.com/p/go.net/context?go-get=1: no go-import meta 
 tags (meta tag github.com/golang/go did not match import path 
 code.google.com/p/go.net/context))
 package github.com/ipfs/go-
 ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58: cannot find 
 package "github.com/ipfs/go-
 ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58" in any of:
    /usr/local/go/src/github.com/ipfs/go-
 ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58 (from $GOROOT)
    /home/rajkumar/go/src/github.com/ipfs/go-
 ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58 (from $GOPATH)
 package github.com/ipfs/go-
 ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup: cannot find 
 package "github.com/ipfs/go-
 ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup" in any of:
    /usr/local/go/src/github.com/ipfs/go-
 ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup (from $GOROOT)
 /home/rajkumar/go/src/github.com/ipfs/go-
   ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup (from $GOPATH)
 package github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore: cannot find 
 package "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore" in any of:
    /usr/local/go/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore (from $GOROOT)
    /home/rajkumar/go/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore (from $GOPATH)
 package github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync: cannot find package "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync" in any of:
    /usr/local/go/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync (from $GOROOT)
    /home/rajkumar/go/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync (from $GOPATH)

Is there any step I'm missing to resolve the error.

  • 写回答

1条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 在matlab中如何进行三个参数的离散傅里叶逆变换(idft)
      • ¥15 遇到问题了,求解答!
      • ¥15 请问coppliasim eduUR5视觉抓取怎么实现仿真,
      • ¥30 JavaWeb实验(购物平台)
      • ¥15 八路抢答器倒计时设计时显示器不输出,只能显示0
      • ¥15 用C语言随机生成一个迷宫
      • ¥15 超多因素的正交方案设计
      • ¥15 Scratch~汽车小游戏
      • ¥30 OSGB转换为3dtiles
      • ¥25 用于Audio的芯片中“Audio Interface”和“Mode Control”是什么?