我试图解决Orielly提供的示例Decentrallized Applications中提供的示例。golang错误:运行时无法找到软件包获取
go-ipfs
包似乎已过时,新版本无法正常工作。所以我手动应付旧版本并尝试编译go-kerala。
虽然部分文件夹存在于路径中,但出现错误。
例如, /home/rajkumar/go/src/github.com/ipfs/go- ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58 (from $GOPATH)
在我手动复制旧版本文件后仍存在,但仍然执行get-get命令会给出错误。
$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)
是否有任何步骤我错过了解决错误。