dou12352 2015-06-03 14:36
浏览 4158
已采纳

-bash:cfssl:找不到命令

When I tried to install cfssl with this command:

go get -u github.com/cloudflare/cfssl/cmd/cfssl

I received following output:

# github.com/cloudflare/cfssl/crypto/pkcs7
go_packages/src/github.com/cloudflare/cfssl/crypto/pkcs7/pkcs7.go:141: pkcs7.ContentType.String undefined (type asn1.ObjectIdentifier has no field or method String)
# github.com/cloudflare/cfssl/helpers/derhelpers
go_packages/src/github.com/cloudflare/cfssl/helpers/derhelpers/derhelpers.go:16: undefined: crypto.Signer
# github.com/cloudflare/cfssl/csr
go_packages/src/github.com/cloudflare/cfssl/csr/csr.go:191: undefined: x509.CertificateRequest
go_packages/src/github.com/cloudflare/cfssl/csr/csr.go:204: undefined: x509.CreateCertificateRequest
# golang.org/x/crypto/ocsp
go_packages/src/golang.org/x/crypto/ocsp/ocsp.go:494: undefined: crypto.Signer
# github.com/cloudflare/cf-tls/tls
go_packages/src/github.com/cloudflare/cf-tls/tls/handshake_client.go:431: undefined: crypto.Signer

I really have no clue whether this is harmful or not and has something to do with the usage of this tool. However when I try to use it, I receive this error:

-bash: cfssl: Command not found.

I never used go but I wanted to use this tool. Do you guys know why this is not working as expected?

Edit

output of go env

GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ubuntu/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
TERM="dumb"
CC="gcc"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
CXX="g++"
CGO_ENABLED="1"

output of go version

go version go1.2.1 linux/amd64

I really don't know why this is the case because I installed this version.

  • 写回答

2条回答 默认 最新

  • 普通网友 2015-06-04 06:57
    关注

    It seems that you have errors in getting cfssl.

    Because Cloudflare's Github page says you require to have Go lang version 1.4 atleast.

    If you download and install go 1.4 and get cfssl, then binary will be created in $GOPATH/bin/cfssl

    Refer $GOPATH variable - here

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器