{"id":69,"date":"2024-09-23T21:14:20","date_gmt":"2024-09-23T13:14:20","guid":{"rendered":"http:\/\/www.phpzl.com\/?p=69"},"modified":"2024-09-23T21:17:31","modified_gmt":"2024-09-23T13:17:31","slug":"xampp-for-os-x-8-2-4-%e5%ae%89%e8%a3%85-sodium%e6%89%a9%e5%b1%95","status":"publish","type":"post","link":"http:\/\/www.phpzl.com\/?p=69","title":{"rendered":"XAMPP for OS X 8.2.4 \u5b89\u88c5 sodium\u6269\u5c55"},"content":{"rendered":"\n<p>1\u3001\u5b89\u88c5libsodium\u5e93<br>libsodium\u662fsodium\u6269\u5c55\u7684\u4f9d\u8d56\u5e93\uff0c\u60a8\u9700\u8981\u5148\u5b89\u88c5\u5b83\u3002\u5728Mac\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528Homebrew\u6765\u5b89\u88c5libsodium\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew install libsodium<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>2\u3001\u5b89\u88c5sodium\u6269\u5c55<\/p>\n\n\n\n<p>\u9996\u5148\u4e0b\u8f7dPHP\u6e90\u7801\uff0chttps:\/\/www.php.net\/distributions\/php-8.2.4.tar.gz\uff08\u53ef\u9009\u62e9\u5bf9\u5e94\u7248\u672c\uff09\uff1b\u7136\u540e\u89e3\u538b\uff0c\u8fdb\u5165ext\u4e0bsodium\u76ee\u5f55\uff1b<\/p>\n\n\n\n<p>\u4f7f\u7528phpize\u547d\u4ee4\u51c6\u5907\u7f16\u8bd1\u73af\u5883\uff08\u786e\u4fdd\u60a8\u7684phpize\u4e0eXAMPP\u4e2d\u7684PHP\u7248\u672c\u76f8\u5339\u914d\uff09\u3002<br>\u8fd0\u884c.\/configure\u811a\u672c\u914d\u7f6e\u6269\u5c55\u3002<br>\u4f7f\u7528make\u548csudo make install\u547d\u4ee4\u7f16\u8bd1\u5e76\u5b89\u88c5\u6269\u5c55\u3002<br>\u5728php.ini\u6587\u4ef6\u4e2d\u6dfb\u52a0extension=sodium.so\uff08\u5728Windows\u4e0a\u53ef\u80fd\u662fextension=php_sodium.dll\uff09\u6765\u542f\u7528\u6269\u5c55\u3002<\/p>\n\n\n\n<p>\u5b8c\u6574\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<pre class=\"wp-block-code\"><code>\/Applications\/XAMPP\/bin\/phpize\n\n.\/configure --with-php-config=\/Applications\/XAMPP\/bin\/php-config\n\nmake\n\nsudo make install<\/code><\/pre>\n<\/div><\/div>\n\n\n\n<p>PS\uff1a\u786e\u4fddMac\u5df2\u5b89\u88c5autoconf\uff08\u5982\u65e0\uff0c\u9700\u5148\u5b89\u88c5\uff1abrew install autoconf\uff09<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"qua-blog-post-description\">1\u3001\u5b89\u88c5libsodium\u5e93libsodium\u662fsodium\u6269\u5c55\u7684\u4f9d\u8d56\u5e93\uff0c\u60a8\u9700\u8981\u5148\u5b89\u88c5\u5b83\u3002\u5728Mac\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f [&hellip;]<\/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":[],"_links":{"self":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/posts\/69"}],"collection":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=69"}],"version-history":[{"count":5,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":75,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/posts\/69\/revisions\/75"}],"wp:attachment":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}