{"id":7043,"date":"2022-09-26T19:08:15","date_gmt":"2022-09-26T11:08:15","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=7043"},"modified":"2023-07-24T09:19:55","modified_gmt":"2023-07-24T01:19:55","slug":"openssl%e4%ba%a4%e5%8f%89%e7%bc%96%e8%af%91","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=7043","title":{"rendered":"openssl\u4ea4\u53c9\u7f16\u8bd1"},"content":{"rendered":"<p><a href=\"https:\/\/blog.csdn.net\/wmx843230304wmx\/article\/details\/102825150\">https:\/\/blog.csdn.net\/wmx843230304wmx\/article\/details\/102825150<\/a><\/p>\n<p><a href=\"https:\/\/www.codenong.com\/cs108884585\/\">https:\/\/www.codenong.com\/cs108884585\/<\/a><\/p>\n<p><a href=\"https:\/\/copyfuture.com\/blogs-details\/20211208070825402M\">https:\/\/copyfuture.com\/blogs-details\/20211208070825402M<\/a><\/p>\n<ul>\n<li>openssl_1_1_1g\u5728ubuntu20\u4e0a\u597d\u50cf\u65e0\u8bba\u5982\u4f55\u90fd\u7f16\u8bd1\u4e0d\u8fc7<br \/>\n<img src=\"http:\/\/xinyiworld.top\/wordpress_it\/wp-content\/uploads\/2022\/09\/1111-1.png\" alt=\"\" \/><br \/>\n\u6362\u62101_1_1p\u6700\u63a5\u8fd11_1_1g\u7684\u7248\u672c\u5c31\u89e3\u51b3\u4e86<\/li>\n<\/ul>\n<p>\u5982\u679c\u5176\u5b83\u4f9d\u8d56openssl\u7684\u9879\u76ee\u62a5\u8fd9\u4e2a\u9519\u8bef\uff0c\u5c31\u662fopenssl\u5e93\u548c\u5934\u6587\u4ef6\u6ca1\u6709\u5b89\u88c5\u597d\uff0c\u6216\u8005\u5b89\u88c5\u7684\u4f4d\u7f6e\u4e0d\u5bf9\u3002<\/p>\n<ul>\n<li>openssl\u5982\u4f55\u88ab\u5176\u5b83\u7684\u6e90\u7801\u5f15\u7528\u5230\uff0c\u8981\u8bb0\u5f97make install\u5230\u6b63\u786e\u7684\u4f4d\u7f6e \u3002<br \/>\ncannot find -lssl<br \/>\ncannot find -lcrypto<br \/>\n<a href=\"https:\/\/blog.csdn.net\/u014248033\/article\/details\/109359024\">https:\/\/blog.csdn.net\/u014248033\/article\/details\/109359024<\/a><br \/>\n<strong>\u9519\u8bef<\/strong>\uff1a<br \/>\n\/usr\/lib\/gcc-cross\/aarch64-linux-gnu\/5\/\u2026\/\u2026\/\u2026\/\u2026\/aarch64-linux-gnu\/bin\/ld: cannot find -lssl<br \/>\n\/usr\/lib\/gcc-cross\/aarch64-linux-gnu\/5\/\u2026\/\u2026\/\u2026\/\u2026\/aarch64-linux-gnu\/bin\/ld: cannot find -lcrypto<\/li>\n<\/ul>\n<p><strong>\u5206\u6790\u539f\u56e0<\/strong>\uff1a<br \/>\naarch64-linux-gnu \u5de5\u5177\u672c\u8eab\u6ca1\u6709\u5305\u542bopenssl\uff0c\u6240\u4ee5\u9700\u8981\u628aopenssl\u5b89\u88c5\u5230aarch64-linux-gnu\u6307\u5b9a\u7684\u4f7f\u7528\u76ee\u5f55\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5<\/strong>\uff1a<br \/>\n\u9996\u5148\uff1a\u4f7f\u7528<code>--verbose | grep SEARCH_DIR<\/code> \uff0c\u53bb\u641c\u7d22aarch64-linux-gnu\u5de5\u5177\u8c03\u7528\u65f6\uff0c\u4f7f\u7528\u4e86\u54ea\u4e2a\u76ee\u5f55\u3002<\/p>\n<pre><code class=\"language-bash\">grayli@LinuxServer:~\/test_case\/iperf\/demo3\/iperf-3.6$ \/usr\/lib\/gcc-cross\/aarch64-linux-gnu\/5\/..\/..\/..\/..\/aarch64-linux-gnu\/bin\/ld --verbose | grep SEARCH_DIR\nSEARCH_DIR(&quot;=\/usr\/local\/lib\/aarch64-linux-gnu&quot;); SEARCH_DIR(&quot;=\/lib\/aarch64-linux-gnu&quot;); SEARCH_DIR(&quot;=\/usr\/lib\/aarch64-linux-gnu&quot;); SEARCH_DIR(&quot;=\/usr\/local\/lib&quot;); SEARCH_DIR(&quot;=\/lib&quot;); SEARCH_DIR(&quot;=\/usr\/lib&quot;); SEARCH_DIR(&quot;=\/usr\/aarch64-linux-gnu\/lib&quot;);<\/code><\/pre>\n<p>\u6ce8\u610f<code>aarch64-linux-gnu\/5<\/code>\uff0c\u4f60\u7684\u76ee\u5f55\u8fd9\u4e2a\u6570\u5b57\u4e0d\u4e00\u5b9a\u662f5.<\/p>\n<p>\u518d\u6b21\uff1a\uff08\u2013prefix=\/usr\/aarch64-linux-gnu\/lib\/\u5b89\u88c5\u8def\u5f84\u5c31\u662f\u7b2c\u4e00\u6b65\u641c\u7d22\u51fa\u6765\u8def\u5f84\uff09<\/p>\n<pre><code class=\"language-bash\">git clone https:\/\/github.com\/openssl\/openssl.git\ncd openssl\ngit checkout OpenSSL_1_0_2-stable\n.\/config --prefix=\/usr\/aarch64-linux-gnu\/lib\/ --cross-compile-prefix=aarch64-linux-gnu- no-asm shared\nsed -i &quot;s\/-m64\/\/g&quot; Makefile\nmake\nsudo make install<\/code><\/pre>\n<p>\u5982\u679c\u8fd8\u662f\u62a5\u9519\uff0c\u6709\u53ef\u80fd\u662f\u5b89\u88c5\u7684\u76ee\u5f55\u591a\u4e86\u4e00\u5c42lib\u3002<\/p>\n<ul>\n<li>\u6ce8\u610f\u5f15\u7528libssl\u7684\u65f6\u5019\uff0c\u540c\u65f6\u8981\u5f15\u7528libcrypto\u3002<\/li>\n<\/ul>\n<button class=\"simplefavorite-button\" data-postid=\"7043\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>https:\/\/blog.csdn.net\/wmx843230304wmx\/article\/deta [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[713],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/7043"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7043"}],"version-history":[{"count":10,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/7043\/revisions"}],"predecessor-version":[{"id":10117,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/7043\/revisions\/10117"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7043"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}