質問編集履歴

1

再インストール手順の追記

2020/06/08 02:51

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  ### エラーメッセージ
16
16
 
17
- ログ
17
+ ログ(省略しています)
18
18
 
19
19
  ```
20
20
 
@@ -30,179 +30,11 @@
30
30
 
31
31
  44: from bin/rails:4:in `<main>'
32
32
 
33
- 43: from bin/rails:4:in `require'
34
-
35
- 42: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands.rb:18:in `<top (required)>'
36
-
37
- 41: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:46:in `invoke'
38
-
39
- 40: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command/base.rb:69:in `perform'
40
-
41
- 39: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
42
-
43
- 38: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
44
-
45
- 37: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
46
-
47
- 36: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/server/server_command.rb:138:in `perform'
48
-
49
- 35: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/server/server_command.rb:138:in `tap'
50
-
51
- 34: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/server/server_command.rb:147:in `block in perform'
52
-
53
- 33: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/server/server_command.rb:37:in `start'
54
-
55
- 32: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'
56
-
57
- 31: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
58
-
59
- 30: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
60
-
61
- 29: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config'
62
-
63
- 28: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
64
-
65
- 27: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
66
-
67
- 26: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
68
-
69
- 25: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
70
-
71
- 24: from config.ru:3:in `block in <main>'
72
-
73
- 23: from config.ru:3:in `require_relative'
74
-
75
- 22: from C:/Users/r1148/butube/config/environment.rb:3:in `<top (required)>'
76
-
77
- 21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/application.rb:363:in `initialize!'
78
-
79
- 20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:60:in `run_initializers'
80
-
81
- 19: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
82
-
83
- 18: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
84
-
85
- 17: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
86
-
87
- 16: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `call'
88
-
89
- 15: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `each'
90
-
91
- 14: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
92
-
93
- 13: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
94
-
95
- 12: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
96
-
97
- 11: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
98
-
99
- 10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:61:in `block in run_initializers'
100
-
101
- 9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:32:in `run'
102
-
103
- 8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:32:in `instance_exec'
104
-
105
- 7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/railtie.rb:56:in `block in <class:Railtie>'
106
-
107
- 6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/railtie.rb:56:in `new'
108
-
109
- 5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/permissions.rb:11:in `initialize'
110
-
111
- 4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/permissions.rb:11:in `map'
112
-
113
- 3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/permissions.rb:34:in `coerce_network_to_ipaddr'
114
-
115
- 2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/permissions.rb:34:in `new'
116
-
117
33
  1: from C:/Ruby26-x64/lib/ruby/2.6.0/ipaddr.rb:586:in `initialize'
118
34
 
119
35
  C:/Ruby26-x64/lib/ruby/2.6.0/ipaddr.rb:651:in `in6_addr': invalid address (IPAddr::InvalidAddressError)
120
36
 
121
- 44: from bin/rails:4:in `<main>'
122
-
123
- 43: from bin/rails:4:in `require'
124
-
125
- 42: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands.rb:18:in `<top (required)>'
126
-
127
- 41: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:46:in `invoke'
128
-
129
- 40: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command/base.rb:69:in `perform'
130
-
131
- 39: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
132
-
133
- 38: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
134
-
135
- 37: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
136
-
137
- 36: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/server/server_command.rb:138:in `perform'
138
-
139
- 35: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/server/server_command.rb:138:in `tap'
140
-
141
- 34: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/server/server_command.rb:147:in `block in perform'
142
-
143
- 33: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/server/server_command.rb:37:in `start'
144
-
145
- 32: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'
146
-
147
- 31: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
148
-
149
- 30: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
150
-
151
- 29: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config'
152
-
153
- 28: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
154
-
155
- 27: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
156
-
157
- 26: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
158
-
159
- 25: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
160
-
161
- 24: from config.ru:3:in `block in <main>'
162
-
163
- 23: from config.ru:3:in `require_relative'
164
-
165
- 22: from C:/Users/r1148/butube/config/environment.rb:3:in `<top (required)>'
166
-
167
- 21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/application.rb:363:in `initialize!'
168
-
169
- 20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:60:in `run_initializers'
170
-
171
- 19: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
172
-
173
- 18: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
174
-
175
- 17: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
176
-
177
- 16: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `call'
178
-
179
- 15: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `each'
180
-
181
- 14: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
182
-
183
- 13: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
184
-
185
- 12: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
186
-
187
- 11: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
188
-
189
- 10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:61:in `block in run_initializers'
190
-
191
- 9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:32:in `run'
192
-
193
- 8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:32:in `instance_exec'
194
-
195
37
  7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/railtie.rb:56:in `block in <class:Railtie>'
196
-
197
- 6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/railtie.rb:56:in `new'
198
-
199
- 5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/permissions.rb:11:in `initialize'
200
-
201
- 4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/permissions.rb:11:in `map'
202
-
203
- 3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/permissions.rb:34:in `coerce_network_to_ipaddr'
204
-
205
- 2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/web-console-4.0.2/lib/web_console/permissions.rb:34:in `new'
206
38
 
207
39
  1: from C:/Ruby26-x64/lib/ruby/2.6.0/ipaddr.rb:557:in `initialize'
208
40
 
@@ -214,7 +46,53 @@
214
46
 
215
47
  ### 試したこと
216
48
 
217
- 一通り調べましたがわかりません・・・・
49
+ Ruby
50
+
51
+ Ruby on Rails
52
+
53
+ PostgreSQL
54
+
55
+ を再インストールし直しました。
56
+
57
+ Ruby
58
+
59
+ 0. [https://rubyinstaller.org/downloads/](https://rubyinstaller.org/downloads/)で「 Ruby+Devkit 2.6.6-1 (x64) 」をインストール。
60
+
61
+ 0. [https://s3-ap-northeast-1.amazonaws.com/progate/shared/images/document/6/1583723513403.png](https://s3-ap-northeast-1.amazonaws.com/progate/shared/images/document/6/1583723513403.png)のような画面で1,3と記入しエンター
62
+
63
+ 0. ruby -v
64
+
65
+ とすると「ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]」と表示されるようになる。
66
+
67
+
68
+
69
+
70
+
71
+ Ruby on Rails
72
+
73
+ gem install rails -v "6.0.3.1"
74
+
75
+ としてインストールをしました。
76
+
77
+ その後SQLite3をインストールして「sqlite3.exe」と「sqlite3.dll」を「C:¥Ruby26-x64¥bin」へコピーしました。
78
+
79
+
80
+
81
+ PostgreSQL
82
+
83
+ [https://www.enterprisedb.com/downloads/postgres-postgresql-downloads](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads)
84
+
85
+ こちらにアクセスしWindows x86-64の12.3をクリックします。
86
+
87
+ そしたら「start the download now」をクリックしてインストーラーを起動。
88
+
89
+ nextを押し続けてインストールしました。
90
+
91
+
92
+
93
+ ちなみにパスは以下の通りです。
94
+
95
+ ![イメージ説明](67877b7f89b00c32094959fee018aadd.png)
218
96
 
219
97
 
220
98
 
@@ -226,10 +104,28 @@
226
104
 
227
105
  Ruby on rails 6.0.3.1
228
106
 
229
- PostgreSQL 13beta1
107
+ ~~PostgreSQL 13beta1~~
108
+
109
+ PostgreSQL 12.3
230
110
 
231
111
  テキストエディタ Atom
232
112
 
233
113
 
234
114
 
235
115
  失礼な点があるかもしれませんがどうぞ宜しくおねがい致します。
116
+
117
+
118
+
119
+ ### 追記
120
+
121
+ technocoreさんのアドバイスに従いいったんsqliteでサーバー起動を目標にします。
122
+
123
+ ```
124
+
125
+ rails new tarou
126
+
127
+ ```
128
+
129
+ なんか普通にできました・・・・
130
+
131
+ 次にpsqlで作ってみます!