\u5bf9\u4e8eFedora\uff0cCentOS\u6216Red Hat\uff0c\u8bf7\u6539\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n
\r\nsudo yum groupinstall \u2018Development Tools\u2019 && sudo yum install curl file git\r\n<\/pre>\n\u5b89\u88c5Linuxbrew<\/p>\n
\u4e0e\u4f9d\u8d56\u9879\u4e00\u6837\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5355\u4e2a\u547d\u4ee4\u6765\u5b89\u88c5Linuxbrew\u3002 \u8fd9\u5c06\u4eceLinuxbrew GitHub\u5b58\u50a8\u5e93\u4e0b\u8f7d\u5e76\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u811a\u672c\uff1a<\/p>\n
\r\nlinuxidc@linuxidc:~\/www.linuxidc.com$ sh -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Linuxbrew\/install\/master\/install.sh)\"\r\n<\/pre>\n<\/p>\n
Linuxbrew\u7f51\u7ad9\u5efa\u8bae\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u5c06\u5e94\u7528\u7a0b\u5e8f\u6dfb\u52a0\u5230\u60a8\u7684bash\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u00a0\u5c06Homebrew\u6dfb\u52a0\u5230\u4f60\u7684PATH\u548cbash shell\u914d\u7f6e\u6587\u4ef6\u811a\u672c\uff0cDebian\/Ubuntu\u4e0a\u7684~\/.profile\u6216CentOS\/Fedora\/RedHat\u4e0a\u7684~\/.bash_profile\uff1a<\/p>\n
\r\nlinuxidc@linuxidc:~\/www.linuxidc.com$ sudo nano ~\/.profile\r\n\r\ntest -d \\~\/.linuxbrew && eval $(\\~\/.linuxbrew\/bin\/brew shellenv)\r\ntest -d \/home\/linuxbrew\/.linuxbrew && eval $(\/home\/linuxbrew\/.linuxbrew\/bin\/brew shellenv)\r\ntest -r \\~\/.bash\\_profile && echo \"eval \\\\$($(brew --prefix)\/bin\/brew shellenv)\" >>\\~\/.bash\\_profile\r\necho \"eval \\\\$($(brew --prefix)\/bin\/brew shellenv)\" >>\\~\/.profile\r\n<\/pre>\n<\/p>\n
\u5982\u679c\u60a8\u5728\u6ce8\u9500\u5e76\u8fd4\u56de\u6240\u9009\u7684shell\u540e\u4e0a\u8ff0\u547d\u4ee4\u4e0d\u8d77\u4f5c\u7528\uff0c\u8bf7\u5728\u201c~\/.bashrc,\u201d\u00a0 \u201c~\/.zshrc\u201d\u6216\u5176\u4ed6\u76f8\u5173\u7684shell\u914d\u7f6e\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n
\r\nexport PATH=\"\/home\/linuxbrew\/.linuxbrew\/bin:$PATH\r\n<\/pre>\n\u73b0\u5728\uff0c\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528Linuxbrew\u5b89\u88c5\u8f6f\u4ef6\u5305\u4e86\u3002 \u5b89\u88c5\u7a0b\u5e8f\u5efa\u8bae\u5b89\u88c5gcc\uff0c\u56e0\u6b64\u9996\u5148\uff1a<\/p>\n
\r\nbrew install gcc\r\n\r\nbrew install hello\r\n<\/pre>\n<\/p>\n
\u4f7f\u7528Linuxbrew<\/strong><\/p>\n\u5982\u4e0a\u6240\u793a\uff0c\u6700\u7b80\u5355\u7684\u547d\u4ee4\u662fbrew install\uff0c\u540e\u8ddf\u8981\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u7684\u540d\u79f0\u3002 \u8981\u641c\u7d22\u53ef\u7528\u7684\u7a0b\u5e8f\u5305\uff0cHomebrew\u5c06\u8be5\u7a0b\u5e8f\u5305\u79f0\u4e3a\u201cformulae\u201d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528brew\u641c\u7d22\uff0c\u540e\u8ddf\u540d\u79f0\u3002 \u8981\u663e\u793a\u7279\u5b9a\u914d\u65b9\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u4f7f\u7528Brew\u4fe1\u606f\u53ca\u5176\u540d\u79f0\u3002 \u6700\u540e\uff0cbrew\u66f4\u65b0\u5c06\u66f4\u65b0Linuxbrew\u4ee5\u53ca\u5df2\u5b89\u88c5\u7684formulae\u3002<\/p>\n
<\/p>\n
\u9996\u5148\u89e3\u51b3\u7b2c\u4e00\u4e2a\u95ee\u9898\uff0c\u9ed8\u8ba4\u6539\u4e3aPython2\uff0c\u518d\u770b\u770b\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n
<\/p>\n
\u5982\u679c\u60a8\u7684Linuxbrew\u5b89\u88c5\u5de5\u4f5c\u4e0d\u6b63\u5e38\uff0c\u6216\u60a8\u4e0d\u786e\u5b9a\uff0c\u4e00\u4e2a\u547d\u4ee4\u662fbrew doctor\uff08\u89c1\u4e0a\u56fe\uff09\u3002\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u8be5\u547d\u4ee4\u5c06\u62a5\u544a\u201c\u60a8\u7684\u7cfb\u7edf\u5df2\u7ecf\u51c6\u5907\u5c31\u7eea\u3002\u201d\u5982\u679c\u51fa\u4e86\u95ee\u9898\uff0c\u8be5\u547d\u4ee4\u5c06\u544a\u8bc9\u60a8\u4ece\u54ea\u91cc\u5f00\u59cb\u4fee\u590d\u95ee\u9898\u3002\u6709\u5173\u66f4\u591a\u547d\u4ee4\uff0c\u8bf7\u53c2\u9605Homebrew\u7a0b\u5e8f\u6587\u6863\uff0c\u4f46\u4ee5\u4e0a\u5e94\u8be5\u662f\u60a8\u9700\u8981\u4e86\u89e3\u7684\u4e3b\u8981\u5185\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u501f\u52a9\u9002\u7528\u4e8eLinux\u7684Windows\u5b50\u7cfb\u7edf\uff0cHomebrew\u73b0\u5728\u53ef\u7528\u4e8eLinux\u7528\u6237\u548cWindows\u7528\u6237\u3002 \u4e0d […]<\/p>\n","protected":false},"author":362,"featured_media":168608,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-168297","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/168297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=168297"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/168297\/revisions"}],"predecessor-version":[{"id":168609,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/168297\/revisions\/168609"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/168608"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=168297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=168297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=168297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}