{"id":431,"date":"2022-10-30T19:48:18","date_gmt":"2022-10-30T11:48:18","guid":{"rendered":"http:\/\/madapapa.com\/wordpress\/?p=431"},"modified":"2022-11-06T15:35:08","modified_gmt":"2022-11-06T07:35:08","slug":"qiang-da-debrew","status":"publish","type":"post","link":"http:\/\/madapapa.com\/wordpress\/?p=431","title":{"rendered":"\u5f3a\u5927\u7684brew"},"content":{"rendered":"<h2><a id=\"brew-doctor\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>brew doctor<\/h2>\n<p>\u5f53brew update\u65e0\u6cd5\u4f7f\u7528\u65f6\uff0c\u8fd0\u884cbrew doctor\uff0c\u4e00\u6761\u6761\u53bb\u4fee\u6539\u5c31\u597d\u3002<\/p>\n<h2><a id=\"brew-config\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>brew config<\/h2>\n<pre><code class=\"language-plain_text\">Homebrew bottles (binary package) depend on Command Line Tools (CLT) for installation. After an upgrade, CLT should be reinstalled yet it does not mean xcode installation. To check if you have CLT installed?\n\nbrew config\n\nIf you found CLT: N\\A. Follow @carlocab's answer. Run: xcode-select --install, ...\n<\/code><\/pre>\n<h2><a id=\"brew-v\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>brew -v<\/h2>\n<p>\u68c0\u67e5\u76ee\u5f55<\/p>\n<h2><a id=\"brew-update\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>brew update<\/h2>\n<p>brew\u81ea\u8eab\u7684\u5347\u7ea7<\/p>\n<h2><a id=\"brew-upgrade\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>brew upgrade<\/h2>\n<p>\u5404\u79cdpackage\u7684\u5347\u7ea7<\/p>\n<h2><a id=\"%E6%97%A0%E6%B3%95%E5%8D%87%E7%BA%A7clt%E6%97%B6%E5%80%99\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u65e0\u6cd5\u5347\u7ea7CLT\u65f6\u5019<\/h2>\n<p>\u5728\u516c\u53f8\u7f51\u7edc\uff0c\u65e0\u6cd5\u4e0b\u8f7dcommand line tools\uff0c\u53ef\u4ee5\u76f4\u63a5\u4eceapple\u5b98\u7f51\u4e0b\u8f7d<br \/>\n<a href=\"https:\/\/developer.apple.com\/download\/all\/\">https:\/\/developer.apple.com\/download\/all\/<\/a><\/p>\n<h2><a id=\"%E8%A7%A3%E5%86%B3fatal-not-in-a-git-directory%E9%97%AE%E9%A2%98\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u89e3\u51b3fatal: not in a git directory\u95ee\u9898<\/h2>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4<\/p>\n<pre><code class=\"language-plain_text\">git config --global --add safe.directory \/opt\/homebrew\/Library\/Taps\/homebrew\/homebrew-services\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/madapapa.com\/wordpress\/wp-content\/uploads\/2022\/11\/16671912050812.jpg\" alt=\"\" \/><\/p>\n<p>\u53c2\u8003<br \/>\n<a href=\"https:\/\/stackoverflow.com\/questions\/9329243\/how-to-install-xcode-command-line-tools\">https:\/\/stackoverflow.com\/questions\/9329243\/how-to-install-xcode-command-line-tools<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/Homebrew\/discussions\/discussions\/2391\">https:\/\/github.com\/Homebrew\/discussions\/discussions\/2391<\/a><\/p>\n<p><a href=\"https:\/\/blog.csdn.net\/qq_20349639\/article\/details\/125069418\">https:\/\/blog.csdn.net\/qq_20349639\/article\/details\/125069418<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>brew doctor \u5f53brew update\u65e0\u6cd5\u4f7f\u7528\u65f6\uff0c\u8fd0\u884cbrew doctor\uff0c\u4e00\u6761\u6761\u53bb\u4fee\u6539\u5c31\u597d\u3002 brew config Homebrew bottles (binary package) depend on Command Line Tools (CLT) for installation. After an upgrade, CLT should be reinstalled yet it does not mean xcode installation. To check if you have CLT installed? brew config If you found CLT: N\\A. Follow @carlocab&#8217;s answer. Run: xcode-select &#8211;install, &#8230; brew &hellip; <a href=\"http:\/\/madapapa.com\/wordpress\/?p=431\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u5f3a\u5927\u7684brew<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-431","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=431"}],"version-history":[{"count":4,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/431\/revisions"}],"predecessor-version":[{"id":455,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/431\/revisions\/455"}],"wp:attachment":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=431"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}