質問編集履歴

2

文法の修正

2017/08/14 09:52

投稿

yukinz
yukinz

スコア11

test CHANGED
@@ -1 +1 @@
1
- Cloud9, Ruby, Gosu チュートリアル
1
+ Gosuチュートリアル - SDLの初期化が出来ないエラー!
test CHANGED
@@ -1,179 +1,209 @@
1
+ はじめまして、
2
+
3
+
4
+
5
+ Cloud9でGosuのチュートリアルをしています。
6
+
7
+ https://github.com/gosu/gosu/wiki/Ruby-Tutorial
8
+
9
+
10
+
1
11
  ###前提・実現したいこと
2
12
 
13
+ サーバーエラーが出る。
14
+
3
- はじめまして、
15
+ SDLの初期化?
4
-
5
-
6
-
7
- 最近Cloud9を使って下記のチュートリアルを見ながらRubyの勉強を始めました。
16
+
8
-
9
- https://github.com/gosu/gosu/wiki/Ruby-Tutorial
10
-
11
- しかし、出だしつまずています。
17
+ Mir Serverに接続きな?
12
-
13
-
14
-
15
- 色々試してDISKが100%になっている状態です。
18
+
16
-
17
- たか、ご教授お願します
19
+ Windowが表示されない。
18
20
 
19
21
 
20
22
 
21
23
  ###発生している問題・エラーメッセージ
22
24
 
23
-
25
+ ```lang-bash
26
+
27
+
28
+
29
+ Important: use ENV[PORT] as the port and ENV[IP] as the host in your scripts!
30
+
31
+
32
+
33
+ /usr/local/rvm/gems/ruby-2.3.0/gems/gosu-0.12.1/lib/gosu/swig_patches.rb:20:in `initialize': Could not initialize SDL Video: Failed to connect to the Mir Server (RuntimeError)
34
+
35
+ from /usr/local/rvm/gems/ruby-2.3.0/gems/gosu-0.12.1/lib/gosu/swig_patches.rb:20:in `initialize'
36
+
37
+ from /home/ubuntu/workspace/gosu-examples.rb:29:in `initialize'
38
+
39
+ from /home/ubuntu/workspace/gosu-examples.rb:42:in `new'
40
+
41
+ from /home/ubuntu/workspace/gosu-examples.rb:42:in `<main>'
24
42
 
25
43
  ```
26
44
 
45
+
46
+
47
+ ###該当のソースコード
48
+
49
+ ```lang-ruby
50
+
51
+ require 'gosu'
52
+
53
+
54
+
55
+ class Tutorial < Gosu::Window
56
+
57
+ def initialize
58
+
59
+ super 640, 480
60
+
27
- Important: use ENV[PORT] as the port and ENV[IP] as the host in your scripts!
61
+ self.caption = "Tutorial Game"
28
-
29
-
30
-
31
- /usr/local/rvm/gems/ruby-2.3.0/gems/gosu-0.12.1/lib/gosu/swig_patches.rb:20:in `initialize': Could not initialize SDL Video: Failed to connect to the Mir Server (RuntimeError)
62
+
32
-
33
- from /usr/local/rvm/gems/ruby-2.3.0/gems/gosu-0.12.1/lib/gosu/swig_patches.rb:20:in `initialize'
63
+ end
34
-
64
+
65
+
66
+
35
- from /home/ubuntu/workspace/gosu-examples.rb:29:in `initialize'
67
+ def update
68
+
36
-
69
+ # ...
70
+
71
+ end
72
+
73
+
74
+
75
+ def draw
76
+
77
+ # ...
78
+
79
+ end
80
+
81
+ end
82
+
83
+
84
+
37
- from /home/ubuntu/workspace/gosu-examples.rb:42:in `new'
85
+ Tutorial.new.show
38
-
39
- from /home/ubuntu/workspace/gosu-examples.rb:42:in `<main>'
40
86
 
41
87
  ```
42
88
 
43
89
 
44
90
 
45
- ###該当のソースコード
46
-
47
- ```ここに言語を入力
48
-
49
- require 'gosu'
50
-
51
-
52
-
53
- class Tutorial < Gosu::Window
54
-
55
- def initialize
56
-
57
- super 640, 480
58
-
59
- self.caption = "Tutorial Game"
60
-
61
- end
62
-
63
-
64
-
65
- def update
66
-
67
- # ...
68
-
69
- end
70
-
71
-
72
-
73
- def draw
74
-
75
- # ...
76
-
77
- end
78
-
79
- end
80
-
81
-
82
-
83
- Tutorial.new.show
91
+ ###試したこと
92
+
93
+ ```bash
94
+
95
+ $ gem list
96
+
97
+ *** LOCAL GEMS ***
98
+
99
+
100
+
101
+ actioncable (5.1.3)
102
+
103
+ actionmailer (5.1.3)
104
+
105
+ actionpack (5.1.3)
106
+
107
+ actionview (5.1.3)
108
+
109
+ activejob (5.1.3)
110
+
111
+ activemodel (5.1.3)
112
+
113
+ activerecord (5.1.3)
114
+
115
+ activesupport (5.1.3)
116
+
117
+ arel (8.0.0)
118
+
119
+ bigdecimal (1.2.8)
120
+
121
+ builder (3.2.3)
122
+
123
+ bundler (1.15.3)
124
+
125
+ bundler-unload (1.0.2)
126
+
127
+ concurrent-ruby (1.0.5)
128
+
129
+ did_you_mean (1.0.0)
130
+
131
+ erubi (1.6.1)
132
+
133
+ executable-hooks (1.3.2)
134
+
135
+ gem-wrappers (1.2.7)
136
+
137
+ globalid (0.4.0)
138
+
139
+ gosu (0.12.1)
140
+
141
+ i18n (0.8.6)
142
+
143
+ io-console (0.4.5)
144
+
145
+ json (1.8.3)
146
+
147
+ loofah (2.0.3)
148
+
149
+ mail (2.6.6)
150
+
151
+ method_source (0.8.2)
152
+
153
+ mime-types (3.1)
154
+
155
+ mime-types-data (3.2016.0521)
156
+
157
+ mini_portile2 (2.2.0)
158
+
159
+ minitest (5.8.3)
160
+
161
+ net-telnet (0.1.1)
162
+
163
+ nio4r (2.1.0)
164
+
165
+ nokogiri (1.8.0)
166
+
167
+ power_assert (0.2.6)
168
+
169
+ psych (2.0.17)
170
+
171
+ rack (2.0.3)
172
+
173
+ rack-test (0.6.3)
174
+
175
+ rails (5.1.3)
176
+
177
+ rails-dom-testing (2.0.3)
178
+
179
+ rails-html-sanitizer (1.0.3)
180
+
181
+ railties (5.1.3)
182
+
183
+ rake (10.4.2)
184
+
185
+ rdoc (4.2.1)
186
+
187
+ rubygems-bundler (1.4.4)
188
+
189
+ rvm (1.11.3.9)
190
+
191
+ sprockets (3.7.1)
192
+
193
+ sprockets-rails (3.2.0)
194
+
195
+ test-unit (3.1.5)
196
+
197
+ thor (0.19.4)
198
+
199
+ thread_safe (0.3.6)
200
+
201
+ tzinfo (1.2.3)
202
+
203
+ websocket-driver (0.6.5)
204
+
205
+ websocket-extensions (0.1.2)
206
+
207
+
84
208
 
85
209
  ```
86
-
87
-
88
-
89
- ###試したこと
90
-
91
-
92
-
93
- $ gem list
94
-
95
-
96
-
97
- *** LOCAL GEMS ***
98
-
99
-
100
-
101
- actionpack (5.1.2)
102
-
103
- actionview (5.1.2)
104
-
105
- activesupport (5.1.2)
106
-
107
- bigdecimal (1.2.8)
108
-
109
- builder (3.2.3)
110
-
111
- bundler-unload (1.0.2)
112
-
113
- concurrent-ruby (1.0.5)
114
-
115
- did_you_mean (1.0.0)
116
-
117
- erubi (1.6.1)
118
-
119
- executable-hooks (1.3.2)
120
-
121
- gem-wrappers (1.2.7)
122
-
123
- gosu (0.12.1)
124
-
125
- i18n (0.8.6)
126
-
127
- io-console (0.4.5)
128
-
129
- json (1.8.3)
130
-
131
- loofah (2.0.3)
132
-
133
- method_source (0.8.2)
134
-
135
- mini_portile2 (2.2.0)
136
-
137
- minitest (5.8.3)
138
-
139
- net-telnet (0.1.1)
140
-
141
- nokogiri (1.8.0)
142
-
143
- power_assert (0.2.6)
144
-
145
- psych (2.0.17)
146
-
147
- rack (2.0.3)
148
-
149
- rack-test (0.6.3)
150
-
151
- rails-dom-testing (2.0.3)
152
-
153
- rails-html-sanitizer (1.0.3)
154
-
155
- railties (5.1.2)
156
-
157
- rake (10.4.2)
158
-
159
- rdoc (4.2.1)
160
-
161
- ruby-beautify (0.97.4)
162
-
163
- rubygems-bundler (1.4.4)
164
-
165
- rvm (1.11.3.9)
166
-
167
- test-unit (3.1.5)
168
-
169
- thor (0.19.4)
170
-
171
- thread_safe (0.3.6)
172
-
173
- tzinfo (1.2.3)
174
-
175
-
176
-
177
- ###補足情報(言語/FW/ツール等のバージョンなど)
178
-
179
- より詳細な情報

1

goji

2017/08/14 09:52

投稿

yukinz
yukinz

スコア11

test CHANGED
File without changes
test CHANGED
File without changes