-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
106 lines (104 loc) · 7.56 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>homebrew/README.md</title>
<style type="text/css">code{white-space: pre;}</style>
<style type="text/css">
div.sourceCode { overflow-x: auto; }
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; line-height: 100%; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
td.sourceCode { padding-left: 5px; }
code > span.kw { color: #007020; font-weight: bold; } /* Keyword */
code > span.dt { color: #902000; } /* DataType */
code > span.dv { color: #40a070; } /* DecVal */
code > span.bn { color: #40a070; } /* BaseN */
code > span.fl { color: #40a070; } /* Float */
code > span.ch { color: #4070a0; } /* Char */
code > span.st { color: #4070a0; } /* String */
code > span.co { color: #60a0b0; font-style: italic; } /* Comment */
code > span.ot { color: #007020; } /* Other */
code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
code > span.fu { color: #06287e; } /* Function */
code > span.er { color: #ff0000; font-weight: bold; } /* Error */
code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
code > span.cn { color: #880000; } /* Constant */
code > span.sc { color: #4070a0; } /* SpecialChar */
code > span.vs { color: #4070a0; } /* VerbatimString */
code > span.ss { color: #bb6688; } /* SpecialString */
code > span.im { } /* Import */
code > span.va { color: #19177c; } /* Variable */
code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code > span.op { color: #666666; } /* Operator */
code > span.bu { } /* BuiltIn */
code > span.ex { } /* Extension */
code > span.pp { color: #bc7a00; } /* Preprocessor */
code > span.at { color: #7d9029; } /* Attribute */
code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
</style>
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
p.caption{
display:none;
}
img {width: 100%}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://kaityo256.github.io/sevendayshpc/github-markdown.css" type="text/css" />
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<article class="markdown-body">
<h1 id="homebrewのインストール">Homebrewのインストール</h1>
<h2 id="homebrewとは">Homebrewとは</h2>
<p>Homebrew(ホームブリュー)とは、主にMacで使われるパッケージ管理システムである。欲しいソフトウェアを簡単にインストールするのに使われる。一般にソフトウェアは別のライブラリに依存するが、パッケージ管理システムはその依存関係を認識して自動的に必要なライブラリもインストールしてくれる。今後、MacはHomebrewで必要なソフトウェアを管理するため、最初にインストールしておこう。</p>
<h2 id="homebrewのインストール-1">Homebrewのインストール</h2>
<p>もしインストールされていないのなら、まずHomebrewをインストールする。</p>
<p>まず「ターミナル」を開く。Command+Spaceでスポットライトを開き、Terminal.appを選べば起動する。実行したら、今後良く使うのでDockに追加しておこう。ターミナルが開いたら、以下を実行せよ。</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb1-1" title="1"><span class="ex">brew</span></a></code></pre></div>
<p><code>zsh: command not found: brew</code>と言われたらインストールされていない。インストールするには<a href="https://brew.sh/index_ja">https://brew.sh/index_ja</a>の指示に従い、ターミナルで以下のコマンドを実行する(以下のコマンドは変更される可能性があるため、最新版の指示に従うこと)。</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb2-1" title="1"><span class="ex">/bin/bash</span> -c <span class="st">"</span><span class="va">$(</span><span class="ex">curl</span> -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh<span class="va">)</span><span class="st">"</span></a></code></pre></div>
<p>上記をターミナルにコピペして実行せよ。途中、パスワードが要求されるので入力すること。</p>
<p><code>Press RETURN/ENTER to continue or any other key to abort</code>と表示されたらエンターキーを押す。Home brewのインストールが終わったら、再度以下を実行せよ。</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb3-1" title="1"><span class="ex">brew</span></a></code></pre></div>
<div class="sourceCode" id="cb4"><pre class="sourceCode txt"><code class="sourceCode default"><a class="sourceLine" id="cb4-1" title="1">Example usage:</a>
<a class="sourceLine" id="cb4-2" title="2"> brew search [TEXT|/REGEX/]</a>
<a class="sourceLine" id="cb4-3" title="3"> brew info [FORMULA...]</a>
<a class="sourceLine" id="cb4-4" title="4">(snip)</a>
<a class="sourceLine" id="cb4-5" title="5">Further help:</a>
<a class="sourceLine" id="cb4-6" title="6"> brew commands</a>
<a class="sourceLine" id="cb4-7" title="7"> brew help [COMMAND]</a>
<a class="sourceLine" id="cb4-8" title="8"> man brew</a>
<a class="sourceLine" id="cb4-9" title="9"> https://docs.brew.sh</a></code></pre></div>
<p>などと表示されればインストールできている。もし</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb5-1" title="1"><span class="ex">Error</span>: You have not agreed to the Xcode license. Please resolve this by running:</a>
<a class="sourceLine" id="cb5-2" title="2"> <span class="fu">sudo</span> xcodebuild -license accept</a></code></pre></div>
<p>というエラーが起きて実行できなかった場合、</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb6-1" title="1"><span class="fu">sudo</span> xcodebuild -license accept</a></code></pre></div>
<p>を実行せよ(パスワードが必要)。</p>
<p>最後にHome Brewを最新版にする。以下を実行せよ。</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb7-1" title="1"><span class="ex">brew</span> update --force <span class="kw">&&</span> <span class="ex">brew</span> upgrade</a></code></pre></div>
<p>新規インストール時であれば、<code>Already up-to-date.</code>と表示されて終わるはずである。すでにHomebrewをインストールしていた場合は、パッケージが最新版にアップデートされる。</p>
</article>
</body>
</html>