報錯
報錯提示
no secp256k1 in java.library.path
|
解決方案
- 使用
brew
安裝構建依賴項
brew install autoconf automake libtool berkeley-db4 pkg-config openssl boost boost-build libevent
- 下載
secp256k1
隨便找個地方clone就行 git clone [email protected]:bitcoin-core/secp256k1.git
- 構建
secp256k1
以下步驟都在clone的secp256k1 中進行 1. sh autogen.sh 這一步與github 中的不同,github 的還是會出錯,視情況輸入命令吧 2. ./configure --enable-module-recovery --enable-jni --enable-module-ecdh --enable-experimental 3. make 4. make check 5. sudo make install 6.
參考資料