質問編集履歴
3
【再インストールの状況】を修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -31,11 +31,10 @@
|
|
31
31
|
|
32
32
|
【再インストールの状況】
|
33
33
|
(1)アンインストール
|
34
|
-
コード
|
35
|
-
|
34
|
+
$brew uninstall postgresql
|
35
|
+
|
36
36
|
(2)再インストール
|
37
|
-
コード
|
38
|
-
|
37
|
+
$ brew install postgresql
|
39
38
|
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
|
40
39
|
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/.git/FETCH_HEAD: Permission denied
|
41
40
|
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services/.git/FETCH_HEAD: Permission denied
|
@@ -46,7 +45,6 @@
|
|
46
45
|
To upgrade to 11.1, run `brew upgrade postgresql`
|
47
46
|
|
48
47
|
(3)バージョンの確認
|
49
|
-
コード
|
50
|
-
|
48
|
+
$ psql --version
|
51
49
|
-bash: psql: command not found
|
52
50
|
と出てしまう。
|
2
バージョン情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,7 +12,6 @@
|
|
12
12
|
|
13
13
|
初歩的な質問で申し訳ありません。
|
14
14
|
|
15
|
-
|
16
15
|
【追記】
|
17
16
|
postgresql.confを開けて編集しようとしましたが、
|
18
17
|
中身は空でした。
|
@@ -20,4 +19,34 @@
|
|
20
19
|
ls: /usr/local/var/postgres/postgresql.con
|
21
20
|
とコマンドに打つと、
|
22
21
|
ls: /usr/local/var/postgres/postgresql.conf: Permission denied
|
23
|
-
と、エラーが出てしまいます。
|
22
|
+
と、エラーが出てしまいます。
|
23
|
+
|
24
|
+
【バージョン】
|
25
|
+
MacOS
|
26
|
+
Postgresql 10.5
|
27
|
+
|
28
|
+
【インストール】
|
29
|
+
Homebrewで
|
30
|
+
$ brew install postgresqlでインストールしました。
|
31
|
+
|
32
|
+
【再インストールの状況】
|
33
|
+
(1)アンインストール
|
34
|
+
コード
|
35
|
+
```$brew uninstall postgresql
|
36
|
+
(2)再インストール
|
37
|
+
コード
|
38
|
+
```$ brew install postgresql
|
39
|
+
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
|
40
|
+
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/.git/FETCH_HEAD: Permission denied
|
41
|
+
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services/.git/FETCH_HEAD: Permission denied
|
42
|
+
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
|
43
|
+
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
|
44
|
+
error: could not lock config file .git/config: Permission denied
|
45
|
+
Error: postgresql 10.5 is already installed
|
46
|
+
To upgrade to 11.1, run `brew upgrade postgresql`
|
47
|
+
|
48
|
+
(3)バージョンの確認
|
49
|
+
コード
|
50
|
+
```$ psql --version
|
51
|
+
-bash: psql: command not found
|
52
|
+
と出てしまう。
|
1
変更点:ls: /usr/local/var/postgres/postgresql.conの結果を追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,4 +15,9 @@
|
|
15
15
|
|
16
16
|
【追記】
|
17
17
|
postgresql.confを開けて編集しようとしましたが、
|
18
|
-
中身は空でした。
|
18
|
+
中身は空でした。
|
19
|
+
また、
|
20
|
+
ls: /usr/local/var/postgres/postgresql.con
|
21
|
+
とコマンドに打つと、
|
22
|
+
ls: /usr/local/var/postgres/postgresql.conf: Permission denied
|
23
|
+
と、エラーが出てしまいます。
|