Skip to content

Failed to install tokengen #833

Open
@MohammadrezaNasrabadi

Description

@MohammadrezaNasrabadi

I want to set up the hyperlerdger with token network, as provided in token-sdk fabric-samples. One step is installing the tokengen command, However, it seems like there is some dependencies problem on pkcs11 module.

After issuing the below command:

go install github.com/hyperledger-labs/fabric-token-sdk/cmd/[email protected]

The below error output is shown:

# github.com/hyperledger/fabric/bccsp/pkcs11
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:41:21: undefined: pkcs11.Ctx
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:51:23: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:52:22: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:55:32: undefined: pkcs11.ObjectHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:326:51: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:338:46: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:370:50: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:385:51: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:684:72: undefined: pkcs11.ObjectHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:693:77: undefined: pkcs11.ObjectHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:693:77: too many errors
# github.com/hyperledger/fabric-private-chaincode/internal/crypto
/root/go/pkg/mod/github.com/hyperledger/[email protected]/internal/crypto/crypto.go:24:10: undefined: GoCrypto

I have tried different versions of the packages but neither was helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions