【v2.2.1】make时报错
按照说明文档中的
$ git clone -b v2.2.1 https://git.chainmaker.org.cn/chainmaker/chainmaker-go.git
$ cd chainmaker-go && rm -rf go.sum && go mod tidy
然后go mod vendor再make,则报以下错误,需要怎么解决呢?
chainmaker.org/chainmaker/common/v2/opencrypto/gmssl/gmssl
../vendor/chainmaker.org/chainmaker/common/v2/opencrypto/gmssl/gmssl/build.go:58:10: fatal error: openssl/bio.h: No such file or directory
#include <openssl/bio.h>
^~~~~~~~~~~~~~~
compilation terminated.
chainmaker.org/chainmaker/common/v2/opencrypto/tencentsm/tencentsm
../vendor/chainmaker.org/chainmaker/common/v2/opencrypto/tencentsm/tencentsm/base.go:11:10: fatal error: sm.h: No such file or directory
#include "sm.h"
^~~~~~
compilation terminated.
chainmaker.org/chainmaker/common/v2/crypto/bulletproofs/bulletproofs_cgo
../vendor/chainmaker.org/chainmaker/common/v2/crypto/bulletproofs/bulletproofs_cgo/commitment.go:25:10: fatal error: bulletproofs.h: No such file or directory
//#include <bulletproofs.h>
^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [chainmaker] Error 2