質問編集履歴
3
【再インストールの状況】を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,15 +64,13 @@
|
|
64
64
|
|
65
65
|
(1)アンインストール
|
66
66
|
|
67
|
-
|
67
|
+
$brew uninstall postgresql
|
68
68
|
|
69
|
-
|
69
|
+
|
70
70
|
|
71
71
|
(2)再インストール
|
72
72
|
|
73
|
-
コード
|
74
|
-
|
75
|
-
|
73
|
+
$ brew install postgresql
|
76
74
|
|
77
75
|
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
|
78
76
|
|
@@ -94,9 +92,7 @@
|
|
94
92
|
|
95
93
|
(3)バージョンの確認
|
96
94
|
|
97
|
-
コード
|
98
|
-
|
99
|
-
|
95
|
+
$ psql --version
|
100
96
|
|
101
97
|
-bash: psql: command not found
|
102
98
|
|
2
バージョン情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,8 +26,6 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
|
30
|
-
|
31
29
|
【追記】
|
32
30
|
|
33
31
|
postgresql.confを開けて編集しようとしましたが、
|
@@ -43,3 +41,63 @@
|
|
43
41
|
ls: /usr/local/var/postgres/postgresql.conf: Permission denied
|
44
42
|
|
45
43
|
と、エラーが出てしまいます。
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
【バージョン】
|
48
|
+
|
49
|
+
MacOS
|
50
|
+
|
51
|
+
Postgresql 10.5
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
【インストール】
|
56
|
+
|
57
|
+
Homebrewで
|
58
|
+
|
59
|
+
$ brew install postgresqlでインストールしました。
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
【再インストールの状況】
|
64
|
+
|
65
|
+
(1)アンインストール
|
66
|
+
|
67
|
+
コード
|
68
|
+
|
69
|
+
```$brew uninstall postgresql
|
70
|
+
|
71
|
+
(2)再インストール
|
72
|
+
|
73
|
+
コード
|
74
|
+
|
75
|
+
```$ brew install postgresql
|
76
|
+
|
77
|
+
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
|
78
|
+
|
79
|
+
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/.git/FETCH_HEAD: Permission denied
|
80
|
+
|
81
|
+
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services/.git/FETCH_HEAD: Permission denied
|
82
|
+
|
83
|
+
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
|
84
|
+
|
85
|
+
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
|
86
|
+
|
87
|
+
error: could not lock config file .git/config: Permission denied
|
88
|
+
|
89
|
+
Error: postgresql 10.5 is already installed
|
90
|
+
|
91
|
+
To upgrade to 11.1, run `brew upgrade postgresql`
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
(3)バージョンの確認
|
96
|
+
|
97
|
+
コード
|
98
|
+
|
99
|
+
```$ psql --version
|
100
|
+
|
101
|
+
-bash: psql: command not found
|
102
|
+
|
103
|
+
と出てしまう。
|
1
変更点:ls: /usr/local/var/postgres/postgresql.conの結果を追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -33,3 +33,13 @@
|
|
33
33
|
postgresql.confを開けて編集しようとしましたが、
|
34
34
|
|
35
35
|
中身は空でした。
|
36
|
+
|
37
|
+
また、
|
38
|
+
|
39
|
+
ls: /usr/local/var/postgres/postgresql.con
|
40
|
+
|
41
|
+
とコマンドに打つと、
|
42
|
+
|
43
|
+
ls: /usr/local/var/postgres/postgresql.conf: Permission denied
|
44
|
+
|
45
|
+
と、エラーが出てしまいます。
|