質問編集履歴
1
再インストール手順の追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
ログのみが出力されます。
|
7
7
|
|
8
8
|
### エラーメッセージ
|
9
|
-
ログ
|
9
|
+
ログ(省略しています)
|
10
10
|
```
|
11
11
|
=> Booting Puma
|
12
12
|
=> Rails 6.0.3.1 application starting in development
|
@@ -14,105 +14,53 @@
|
|
14
14
|
Exiting
|
15
15
|
Traceback (most recent call last):
|
16
16
|
44: from bin/rails:4:in `<main>'
|
17
|
-
43: from bin/rails:4:in `require'
|
18
|
-
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)>'
|
19
|
-
41: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:46:in `invoke'
|
20
|
-
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'
|
21
|
-
39: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
|
22
|
-
38: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
|
23
|
-
37: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
|
24
|
-
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'
|
25
|
-
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'
|
26
|
-
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'
|
27
|
-
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'
|
28
|
-
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'
|
29
|
-
31: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
|
30
|
-
30: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
|
31
|
-
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'
|
32
|
-
28: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
|
33
|
-
27: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
|
34
|
-
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'
|
35
|
-
25: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
|
36
|
-
24: from config.ru:3:in `block in <main>'
|
37
|
-
23: from config.ru:3:in `require_relative'
|
38
|
-
22: from C:/Users/r1148/butube/config/environment.rb:3:in `<top (required)>'
|
39
|
-
21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/application.rb:363:in `initialize!'
|
40
|
-
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'
|
41
|
-
19: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
|
42
|
-
18: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
|
43
|
-
17: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
|
44
|
-
16: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `call'
|
45
|
-
15: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `each'
|
46
|
-
14: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
|
47
|
-
13: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
|
48
|
-
12: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
|
49
|
-
11: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
|
50
|
-
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'
|
51
|
-
9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:32:in `run'
|
52
|
-
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'
|
53
|
-
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>'
|
54
|
-
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'
|
55
|
-
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'
|
56
|
-
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'
|
57
|
-
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'
|
58
|
-
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'
|
59
17
|
1: from C:/Ruby26-x64/lib/ruby/2.6.0/ipaddr.rb:586:in `initialize'
|
60
18
|
C:/Ruby26-x64/lib/ruby/2.6.0/ipaddr.rb:651:in `in6_addr': invalid address (IPAddr::InvalidAddressError)
|
61
|
-
44: from bin/rails:4:in `<main>'
|
62
|
-
43: from bin/rails:4:in `require'
|
63
|
-
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)>'
|
64
|
-
41: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:46:in `invoke'
|
65
|
-
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'
|
66
|
-
39: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
|
67
|
-
38: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
|
68
|
-
37: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
|
69
|
-
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'
|
70
|
-
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'
|
71
|
-
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'
|
72
|
-
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'
|
73
|
-
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'
|
74
|
-
31: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
|
75
|
-
30: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
|
76
|
-
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'
|
77
|
-
28: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
|
78
|
-
27: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
|
79
|
-
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'
|
80
|
-
25: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
|
81
|
-
24: from config.ru:3:in `block in <main>'
|
82
|
-
23: from config.ru:3:in `require_relative'
|
83
|
-
22: from C:/Users/r1148/butube/config/environment.rb:3:in `<top (required)>'
|
84
|
-
21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/application.rb:363:in `initialize!'
|
85
|
-
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'
|
86
|
-
19: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
|
87
|
-
18: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
|
88
|
-
17: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
|
89
|
-
16: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `call'
|
90
|
-
15: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `each'
|
91
|
-
14: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
|
92
|
-
13: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
|
93
|
-
12: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
|
94
|
-
11: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
|
95
|
-
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'
|
96
|
-
9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:32:in `run'
|
97
|
-
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'
|
98
19
|
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>'
|
99
|
-
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'
|
100
|
-
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'
|
101
|
-
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'
|
102
|
-
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'
|
103
|
-
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'
|
104
20
|
1: from C:/Ruby26-x64/lib/ruby/2.6.0/ipaddr.rb:557:in `initialize'
|
105
21
|
C:/Ruby26-x64/lib/ruby/2.6.0/ipaddr.rb:598:in `rescue in initialize': invalid address: http://localhost:3000 (IPAddr::InvalidAddressError)
|
106
22
|
```
|
107
23
|
|
108
24
|
### 試したこと
|
109
|
-
|
25
|
+
Ruby
|
26
|
+
Ruby on Rails
|
27
|
+
PostgreSQL
|
28
|
+
を再インストールし直しました。
|
29
|
+
Ruby
|
30
|
+
0. [https://rubyinstaller.org/downloads/](https://rubyinstaller.org/downloads/)で「 Ruby+Devkit 2.6.6-1 (x64) 」をインストール。
|
31
|
+
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と記入しエンター
|
32
|
+
0. ruby -v
|
33
|
+
とすると「ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]」と表示されるようになる。
|
110
34
|
|
35
|
+
|
36
|
+
Ruby on Rails
|
37
|
+
gem install rails -v "6.0.3.1"
|
38
|
+
としてインストールをしました。
|
39
|
+
その後SQLite3をインストールして「sqlite3.exe」と「sqlite3.dll」を「C:¥Ruby26-x64¥bin」へコピーしました。
|
40
|
+
|
41
|
+
PostgreSQL
|
42
|
+
[https://www.enterprisedb.com/downloads/postgres-postgresql-downloads](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads)
|
43
|
+
こちらにアクセスしWindows x86-64の12.3をクリックします。
|
44
|
+
そしたら「start the download now」をクリックしてインストーラーを起動。
|
45
|
+
nextを押し続けてインストールしました。
|
46
|
+
|
47
|
+
ちなみにパスは以下の通りです。
|
48
|
+

|
49
|
+
|
111
50
|
### 補足情報
|
112
51
|
Windows 10 home 64ビット
|
113
52
|
ruby 2.6.6
|
114
53
|
Ruby on rails 6.0.3.1
|
115
|
-
PostgreSQL 13beta1
|
54
|
+
~~PostgreSQL 13beta1~~
|
55
|
+
PostgreSQL 12.3
|
116
56
|
テキストエディタ Atom
|
117
57
|
|
118
|
-
失礼な点があるかもしれませんがどうぞ宜しくおねがい致します。
|
58
|
+
失礼な点があるかもしれませんがどうぞ宜しくおねがい致します。
|
59
|
+
|
60
|
+
### 追記
|
61
|
+
technocoreさんのアドバイスに従いいったんsqliteでサーバー起動を目標にします。
|
62
|
+
```
|
63
|
+
rails new tarou
|
64
|
+
```
|
65
|
+
なんか普通にできました・・・・
|
66
|
+
次にpsqlで作ってみます!
|