{"id":1660,"date":"2022-09-29T18:01:37","date_gmt":"2022-09-29T10:01:37","guid":{"rendered":"https:\/\/www.strongd.net\/?p=1660"},"modified":"2022-09-29T18:01:37","modified_gmt":"2022-09-29T10:01:37","slug":"mac-%e5%ae%89%e8%a3%9dsecp256k1-no-secp256k1-in-java-library-path","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=1660","title":{"rendered":"Mac \u5b89\u88ddSecp256k1 no secp256k1 in java.library.path"},"content":{"rendered":"<h3 id=\"\u62a5\u9519\"><span>\u5831\u932f<\/span><\/h3>\n<figure class=\"highlight shell\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre><span class=\"line\"><span class=\"meta\"><span>#<\/span><\/span><span class=\"bash\"><span>\u5831\u932f\u63d0\u793a<\/span><\/span><\/span>\r\nno secp256k1 in java.library.path<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h3 id=\"\u89e3\u51b3\u65b9\u6848\"><span>\u89e3\u6c7a\u65b9\u6848<\/span><\/h3>\n<ol>\n<li><span>\u4f7f\u7528\u00a0<\/span><code>brew<\/code><span>\u00a0\u5b89\u88dd\u69cb\u5efa\u4f9d\u8cf4\u9805<\/span><br \/>\n<figure class=\"highlight shell\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre><span class=\"line\"><span>brew install autoconf automake libtool berkeley-db4 pkg-config openssl boost boost-build libevent<\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<\/li>\n<li><span>\u4e0b\u8f09<\/span><code>secp256k1<\/code><br \/>\n<figure class=\"highlight shell\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre><span class=\"line\"><span class=\"meta\"><span>#<\/span><\/span><span class=\"bash\"><span>\u96a8\u4fbf\u627e\u500b\u5730\u65b9<\/span><span class=\"built_in\"><span>clone<\/span><\/span><span>\u5c31\u884c<\/span><\/span><\/span>\r\n<span class=\"line\"><span>git clone git@github.com:bitcoin-core\/secp256k1.git<\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<\/li>\n<li><span>\u69cb\u5efa<\/span><code>secp256k1<\/code><br \/>\n<figure class=\"highlight shell\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre><span class=\"line\"><span class=\"meta\"><span>#<\/span><\/span><span class=\"bash\"><span>\u4ee5\u4e0b\u6b65\u9a5f\u90fd\u5728<\/span><span class=\"built_in\"><span>clone<\/span><\/span><span>\u7684secp256k1 \u4e2d\u9032\u884c<\/span><\/span><\/span>\r\n<span class=\"line\"><span>1. sh autogen.sh <\/span><\/span>\r\n<span class=\"line\"><span class=\"meta\"><span>#<\/span><\/span><span class=\"bash\"><span>\u9019\u4e00\u6b65\u8207github \u4e2d\u7684\u4e0d\u540c\uff0cgithub \u7684\u9084\u662f\u6703\u51fa\u932f\uff0c\u8996\u60c5\u6cc1\u8f38\u5165\u547d\u4ee4\u5427<\/span><\/span><\/span>\r\n<span class=\"line\"><span>2. .\/configure --enable-module-recovery --enable-jni --enable-module-ecdh --enable-experimental<\/span><\/span>\r\n<span class=\"line\"><span>3. make <\/span><\/span>\r\n<span class=\"line\"><span>4. make check <\/span><\/span>\r\n<span class=\"line\"><span>5. sudo make install\r\n<\/span><\/span>6.<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<\/li>\n<\/ol>\n<hr \/>\n<p><span>\u53c3\u8003\u8cc7\u6599<\/span><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/bitcoin-core\/secp256k1\" target=\"_blank\" rel=\"noopener\"><span>secp256k1 Github<\/span><\/a><\/li>\n<li><a href=\"https:\/\/github.com\/meritlabs\/merit\/issues\/344\" target=\"_blank\" rel=\"noopener\"><span>\u69cb\u5efa\u4f9d\u8cf4\u9805issue<\/span><\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5831\u932f #\u5831\u932f\u63d0\u793a no secp256k1 in java.library.path \u89e3\u6c7a\u65b9\u6848 \u4f7f\u7528\u00a0brew\u00a0\u5b89\u88dd\u69cb\u5efa\u4f9d\u8cf4\u9805 brew install autoconf automake libtool berkeley-db4 pkg-config openssl boost boost-build libevent \u4e0b\u8f09secp256k1 #\u96a8\u4fbf\u627e\u500b\u5730\u65b9clone\u5c31\u884c git clone git@github.com:bitcoin-core\/secp256k1.git \u69cb\u5efasecp256k1 #\u4ee5\u4e0b\u6b65\u9a5f\u90fd\u5728clone\u7684secp256k1 \u4e2d\u9032\u884c 1. sh autogen.sh #\u9019\u4e00\u6b65\u8207github \u4e2d\u7684\u4e0d\u540c\uff0cgithub \u7684\u9084\u662f\u6703\u51fa\u932f\uff0c\u8996\u60c5\u6cc1\u8f38\u5165\u547d\u4ee4\u5427 2. .\/configure &#8211;enable-module-recovery &#8211;enable-jni &#8211;enable-module-ecdh &#8211;enable-experimental 3. make 4. make check 5. sudo make install 6. \u53c3\u8003\u8cc7\u6599 secp256k1 Github \u69cb\u5efa\u4f9d\u8cf4\u9805issue<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1660","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1660"}],"version-history":[{"count":1,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1660\/revisions"}],"predecessor-version":[{"id":1661,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1660\/revisions\/1661"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}