内容简介:bitcoin的go语言版本1.12下载地址:https://github.com/btcsuite/btcd
bitcoin的 go 语言版本1.12
安装
下载地址:
https://github.com/btcsuite/btcd
执行以下命令:
$ go get -u github.com/Masterminds/glide $ git clone https://github.com/btcsuite/btcd $GOPATH/src/github.com/btcsuite/btcd $ cd $GOPATH/src/github.com/btcsuite/btcd
因为国内很多 工具 类无法下载,需要翻墙,或者修改源
$ rm -rf ~/.glide $ mkdir -p ~/.glide $ glide mirror set https://golang.org/x/mobile https://github.com/golang/mobile --vcs git $ glide mirror set https://golang.org/x/crypto https://github.com/golang/crypto --vcs git $ glide mirror set https://golang.org/x/net https://github.com/golang/net --vcs git $ glide mirror set https://golang.org/x/tools https://github.com/golang/tools --vcs git $ glide mirror set https://golang.org/x/text https://github.com/golang/text --vcs git $ glide mirror set https://golang.org/x/image https://github.com/golang/image --vcs git $ glide mirror set https://golang.org/x/sys https://github.com/golang/sys --vcs git
安装依赖包
$ glide init $ glide install
编译工程
$ go install . ./cmd/...
异常现象:
1.
问题:Update failed for golang.org/x/crypto/ripemd160: Cannot detect VCS
Update failed for golang.org/x/crypto/ripemd160: Cannot detect VCS
解决方式:修改btcd项目目录下的glide.yaml 包中的 package: golang.org/x/crypto/ripemd160 为 package: golang.org/x/crypto
修改glide.yaml
然后重新执行以下命令 进行更新安装
$ glide up
2.
问题:Unable to export dependencies to vendor directory: Error moving files: exit status 1
Unable to export dependencies to vendor directory: Error moving files: exit status 1
解决方案:
对文件 $GOPATH\src\github.com\Masterminds\glide\path\winbug.go 做如下修改:
修改winbug.go
cmd := exec.Command("cmd.exe", "/c", "xcopy /s/y", o, n+"\\")
然后 执行一下命令:
$ cd $GOPATH\src\github.com\Masterminds\glide
$ go build glide.go
$ cp glide $GOPATH\bin
重新打开命令窗口后执行以下命令
$ cd $GOPATH\src\github.com\btcsuite\btcd
$ glide up
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
函数式算法设计珠玑
Richard Bird / 苏统华、孙芳媛、郝文超、徐琴 / 机械工业出版社 / 2017-4-1 / 69.00
本书采用完全崭新的方式介绍算法设计。全书由30个珠玑构成,每个珠玑单独列为一章,用于解决一个特定编程问题。这些问题的出处五花八门,有的来自游戏或拼图,有的是有趣的组合任务,还有的是散落于数据压缩及字串匹配等领域的更为熟悉的算法。每个珠玑以使用函数式编程语言Haskell对问题进行描述作为开始,每个解答均是诉诸于函数式编程法则从问题表述中计算得到。本书适用于那些喜欢学习算法设计思想的函数式编程人员、......一起来看看 《函数式算法设计珠玑》 这本书的介绍吧!