{"id":204810,"date":"2020-11-25T16:31:50","date_gmt":"2020-11-25T08:31:50","guid":{"rendered":"http:\/\/4563.org\/?p=204810"},"modified":"2020-11-25T16:31:50","modified_gmt":"2020-11-25T08:31:50","slug":"apple-m1-compatibility","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=204810","title":{"rendered":"Apple M1 Compatibility"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Apple M1 Compatibility               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Harry1993 <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>TLDR\uff1aApple M1 \u4e0b\u7528 macports \u80fd\u5be6\u73fe\u5927\u90e8\u5206 command line tools \u7684 native execution \uff08\u4e0d\u7528 rosetta2 \uff09\u3002<\/p>\n<p>\u525b\u5f9e Apple Store \u62ff\u5230 MacBook Air \u4e5e\u4e10\u7248\uff0c\u7b2c\u4e00\u4ef6\u4e8b\u5b89\u88dd macports \u3002\u9a5a\u8a1d\u5730\u767c\u73fe macports \u5df2\u7d93\u662f arm64-native \u4e86\uff0c\u800c\u4e14 macports \u4e0b\u7684\u5927\u90e8\u5206 packages \u4e5f\u90fd\u5728 arm64 \u67b6\u69cb pre-compiled \u904e\u4e86\uff0c\u76f4\u63a5\u53ef\u4ee5\u5b89\u88dd\u3002\u90a3\u4e9b\u5c1a\u672a pre-compiled \u7684\u53ef\u4ee5\u5728\u672c\u5730 compile \u3002\u7d50\u679c\u5c31\u662f\uff0ccommand line tools \u57fa\u672c\u90fd\u9069\u914d Apple M1 \u3002<\/p>\n<p>\u7d50\u8ad6\uff1a\u5e38\u898b\u7684 command line tools \u5c0d Apple M1 \u7684\u9069\u914d\u5f97\u4e0d\u932f\u3002<\/p>\n<p>\u9644\u9304\uff1a\u6211\u7528 macports \u5b89\u88dd mutt \u548c tmux \u7684\u65e5\u8a8c\u3002\u6211\u5011\u6703\u770b\u5230\uff0c\u9664\u4e86 mutt \u4ee5\u5916\uff0c\u5176\u4ed6 packages \u90fd\u662f\u76f4\u63a5\u5b89\u88dd\uff0c\u800c mutt \u9700\u8981\u672c\u5730 build \u3002<\/p>\n<pre><code>&gt;&gt; sudo port install tmux mutt Password: ---&gt;  Computing dependencies for tmux The following dependencies will be installed:  libevent Continue? [Y\/n]: Y ---&gt;  Fetching archive for libevent ---&gt;  Attempting to fetch libevent-2.1.12_0.darwin_20.arm64.tbz2 from https:\/\/packages.macports.org\/libevent ---&gt;  Attempting to fetch libevent-2.1.12_0.darwin_20.arm64.tbz2.rmd160 from https:\/\/packages.macports.org\/libevent ---&gt;  Installing libevent @2.1.12_0 ---&gt;  Activating libevent @2.1.12_0 ---&gt;  Cleaning libevent ---&gt;  Fetching archive for tmux ---&gt;  Attempting to fetch tmux-3.1c_0.darwin_20.arm64.tbz2 from https:\/\/packages.macports.org\/tmux ---&gt;  Attempting to fetch tmux-3.1c_0.darwin_20.arm64.tbz2.rmd160 from https:\/\/packages.macports.org\/tmux ---&gt;  Installing tmux @3.1c_0 ---&gt;  Activating tmux @3.1c_0 ---&gt;  Cleaning tmux ---&gt;  Computing dependencies for mutt The following dependencies will be installed:  curl-ca-bundle  gnutls  libidn2  libtasn1  libunistring  nettle  p11-kit Continue? [Y\/n]: Y ---&gt;  Fetching archive for curl-ca-bundle ---&gt;  Attempting to fetch curl-ca-bundle-7.73.0_0.darwin_20.noarch.tbz2 from https:\/\/packages.macports.org\/curl-ca-bundle ---&gt;  Attempting to fetch curl-ca-bundle-7.73.0_0.darwin_20.noarch.tbz2.rmd160 from https:\/\/packages.macports.org\/curl-ca-bundle ---&gt;  Installing curl-ca-bundle @7.73.0_0 ---&gt;  Activating curl-ca-bundle @7.73.0_0 ---&gt;  Cleaning curl-ca-bundle ---&gt;  Fetching archive for libunistring ---&gt;  Attempting to fetch libunistring-0.9.10_0.darwin_20.arm64.tbz2 from https:\/\/packages.macports.org\/libunistring ---&gt;  Attempting to fetch libunistring-0.9.10_0.darwin_20.arm64.tbz2.rmd160 from https:\/\/packages.macports.org\/libunistring ---&gt;  Installing libunistring @0.9.10_0 ---&gt;  Activating libunistring @0.9.10_0 ---&gt;  Cleaning libunistring ---&gt;  Fetching archive for libidn2 ---&gt;  Attempting to fetch libidn2-2.3.0_0.darwin_20.arm64.tbz2 from https:\/\/packages.macports.org\/libidn2 ---&gt;  Attempting to fetch libidn2-2.3.0_0.darwin_20.arm64.tbz2.rmd160 from https:\/\/packages.macports.org\/libidn2 ---&gt;  Installing libidn2 @2.3.0_0 ---&gt;  Activating libidn2 @2.3.0_0 ---&gt;  Cleaning libidn2 ---&gt;  Fetching archive for libtasn1 ---&gt;  Attempting to fetch libtasn1-4.16.0_0.darwin_20.arm64.tbz2 from https:\/\/packages.macports.org\/libtasn1 ---&gt;  Attempting to fetch libtasn1-4.16.0_0.darwin_20.arm64.tbz2.rmd160 from https:\/\/packages.macports.org\/libtasn1 ---&gt;  Installing libtasn1 @4.16.0_0 ---&gt;  Activating libtasn1 @4.16.0_0 ---&gt;  Cleaning libtasn1 ---&gt;  Fetching archive for nettle ---&gt;  Attempting to fetch nettle-3.6_0.darwin_20.arm64.tbz2 from https:\/\/packages.macports.org\/nettle ---&gt;  Attempting to fetch nettle-3.6_0.darwin_20.arm64.tbz2.rmd160 from https:\/\/packages.macports.org\/nettle ---&gt;  Installing nettle @3.6_0 ---&gt;  Activating nettle @3.6_0 ---&gt;  Cleaning nettle ---&gt;  Fetching archive for p11-kit ---&gt;  Attempting to fetch p11-kit-0.23.21_0.darwin_20.arm64.tbz2 from https:\/\/packages.macports.org\/p11-kit ---&gt;  Attempting to fetch p11-kit-0.23.21_0.darwin_20.arm64.tbz2.rmd160 from https:\/\/packages.macports.org\/p11-kit ---&gt;  Installing p11-kit @0.23.21_0 ---&gt;  Activating p11-kit @0.23.21_0 ---&gt;  Cleaning p11-kit ---&gt;  Fetching archive for gnutls ---&gt;  Attempting to fetch gnutls-3.6.15_0+doc.darwin_20.arm64.tbz2 from https:\/\/packages.macports.org\/gnutls ---&gt;  Attempting to fetch gnutls-3.6.15_0+doc.darwin_20.arm64.tbz2.rmd160 from https:\/\/packages.macports.org\/gnutls ---&gt;  Installing gnutls @3.6.15_0+doc ---&gt;  Activating gnutls @3.6.15_0+doc ---&gt;  Cleaning gnutls ---&gt;  Fetching archive for mutt ---&gt;  Attempting to fetch mutt-2.0.0_0+gnutls+idn+imap+pop+smtp.darwin_20.arm64.tbz2 from https:\/\/packages.macports.org\/mutt ---&gt;  Attempting to fetch mutt-2.0.0_0+gnutls+idn+imap+pop+smtp.darwin_20.arm64.tbz2 from https:\/\/ywg.ca.packages.macports.org\/mirror\/macports\/packages\/mutt\/mutt ---&gt;  Attempting to fetch mutt-2.0.0_0+gnutls+idn+imap+pop+smtp.darwin_20.arm64.tbz2 from https:\/\/mse.uk.packages.macports.org\/mutt ---&gt;  Fetching distfiles for mutt ---&gt;  Attempting to fetch mutt-2.0.0.tar.gz from https:\/\/bitbucket.org\/mutt\/mutt\/downloads\/ ---&gt;  Verifying checksums for mutt ---&gt;  Extracting mutt ---&gt;  Configuring mutt ---&gt;  Building mutt ---&gt;  Staging mutt into destroot ---&gt;  Installing mutt @2.0.0_0+gnutls+idn+imap+pop+smtp ---&gt;  Activating mutt @2.0.0_0+gnutls+idn+imap+pop+smtp ---&gt;  Cleaning mutt ---&gt;  Updating database of binaries ---&gt;  Scanning binaries for linking errors ---&gt;  No broken files found. ---&gt;  No broken ports found. ---&gt;  Some of the ports you installed have notes:   tmux has the following notes:     If you want integration with system pasteboard consider installing port tmux-pasteboard as well &gt;&gt; <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4321218\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : czhu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4321219\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Harry1993 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @czhu \u5c0d\u5440\uff0c\u6211\u5c31\u662f\u56e0\u70ba\u9019\u500b\u539f\u56e0\u8f49\u6295 macports \u7684\uff0c\u7adf\u7136\u767c\u73fe\u5b83\u5176\u5be6\u9084\u633a\u597d\u7528\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4321220\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : czhu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Harry1993 \u6709 brew \u90a3\u6837\u7684 cask \u652f\u6301\u5417\uff1f<br \/>\u5f53\u5e74\u6211\u8bb0\u5f97 macports \u7684\u6bdb\u75c5\u662f\u4ec0\u4e48\u90fd\u8981\u81ea\u5df1\u7f16\u8bd1 \u7279\u522b\u5360\u7a7a\u95f4 \u800c\u4e14\u6bcf\u6b21\u5347\u7ea7\u90fd\u6162                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4321221\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Harry1993 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @czhu \u6211\u7684 iterm2 \u5c31\u662f\u7528 macports \u88dd\u7684\uff1aport install iterm2 \u3002spotlight \u4e5f\u80fd\u81ea\u52d5\u627e\u5230\u3002<br \/>\u4f30\u8a08\u73fe\u5728 macports \u512a\u5316\u597d\u4e86\u5427\u3002\u73fe\u5728\u5927\u90e8\u5206 app \u90fd\u53ef\u4ee5\u76f4\u63a5\u5b89\u88dd\uff0c\u4e0d\u9700\u8981\u672c\u5730\u7de8\u8b6f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4321222\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : czhu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Harry1993                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4321223\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ryh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea\u4ece macports \u88ab rvm \u9ed8\u8ba4\u5b89\u88c5\uff0c\u800c macports \u8fd8\u81ea\u52a8\u5efa\u4e86\u7528\u6237\u540d\u548c\u7528\u6237\u7ec4 \u6211\u5c31\u5bf9\u5b83\u6ca1\u6709\u597d\u611f\uff08\u5f3a\u76d7\u903b\u8f91\u554a\uff09<br \/>\u770b\u4e86\u4e0b https:\/\/packages.macports.org\/?C=M;O=D 11 \u6708 22 \u65e5\u4ee5\u540e\u66f4\u65b0\u4e86\u4e0d\u5c11\uff0c\u4f46\u7edd\u5bf9\u6ca1\u8d85\u8fc7\u5b83\u6240\u4ee5 packages \u7684 20%                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4321224\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AkideLiu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             macports \u5f88\u68d2\u6211\u7528 brew                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Apple M1 Compatib&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/204810"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=204810"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/204810\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=204810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=204810"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=204810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}