質問編集履歴
2
文法の修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
Gosuのチュートリアル - SDLの初期化が出来ないエラー!
|
body
CHANGED
@@ -1,16 +1,17 @@
|
|
1
|
-
###前提・実現したいこと
|
2
1
|
はじめまして、
|
3
2
|
|
4
|
-
|
3
|
+
Cloud9でGosuのチュートリアルをしています。
|
5
4
|
https://github.com/gosu/gosu/wiki/Ruby-Tutorial
|
6
|
-
しかし、出だしでつまずいています。
|
7
5
|
|
6
|
+
###前提・実現したいこと
|
7
|
+
サーバーエラーが出る。
|
8
|
+
SDLの初期化?
|
8
|
-
|
9
|
+
Mir Serverに接続できない?
|
9
|
-
|
10
|
+
Windowが表示されない。
|
10
11
|
|
11
12
|
###発生している問題・エラーメッセージ
|
13
|
+
```lang-bash
|
12
14
|
|
13
|
-
```
|
14
15
|
Important: use ENV[PORT] as the port and ENV[IP] as the host in your scripts!
|
15
16
|
|
16
17
|
/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)
|
@@ -21,7 +22,7 @@
|
|
21
22
|
```
|
22
23
|
|
23
24
|
###該当のソースコード
|
24
|
-
```
|
25
|
+
```lang-ruby
|
25
26
|
require 'gosu'
|
26
27
|
|
27
28
|
class Tutorial < Gosu::Window
|
@@ -43,48 +44,62 @@
|
|
43
44
|
```
|
44
45
|
|
45
46
|
###試したこと
|
46
|
-
|
47
|
+
```bash
|
47
48
|
$ gem list
|
48
|
-
|
49
49
|
*** LOCAL GEMS ***
|
50
50
|
|
51
|
+
actioncable (5.1.3)
|
52
|
+
actionmailer (5.1.3)
|
51
|
-
actionpack (5.1.
|
53
|
+
actionpack (5.1.3)
|
52
|
-
actionview (5.1.
|
54
|
+
actionview (5.1.3)
|
55
|
+
activejob (5.1.3)
|
56
|
+
activemodel (5.1.3)
|
57
|
+
activerecord (5.1.3)
|
53
|
-
activesupport (5.1.
|
58
|
+
activesupport (5.1.3)
|
59
|
+
arel (8.0.0)
|
54
60
|
bigdecimal (1.2.8)
|
55
61
|
builder (3.2.3)
|
62
|
+
bundler (1.15.3)
|
56
63
|
bundler-unload (1.0.2)
|
57
64
|
concurrent-ruby (1.0.5)
|
58
65
|
did_you_mean (1.0.0)
|
59
66
|
erubi (1.6.1)
|
60
67
|
executable-hooks (1.3.2)
|
61
68
|
gem-wrappers (1.2.7)
|
69
|
+
globalid (0.4.0)
|
62
70
|
gosu (0.12.1)
|
63
71
|
i18n (0.8.6)
|
64
72
|
io-console (0.4.5)
|
65
73
|
json (1.8.3)
|
66
74
|
loofah (2.0.3)
|
75
|
+
mail (2.6.6)
|
67
76
|
method_source (0.8.2)
|
77
|
+
mime-types (3.1)
|
78
|
+
mime-types-data (3.2016.0521)
|
68
79
|
mini_portile2 (2.2.0)
|
69
80
|
minitest (5.8.3)
|
70
81
|
net-telnet (0.1.1)
|
82
|
+
nio4r (2.1.0)
|
71
83
|
nokogiri (1.8.0)
|
72
84
|
power_assert (0.2.6)
|
73
85
|
psych (2.0.17)
|
74
86
|
rack (2.0.3)
|
75
87
|
rack-test (0.6.3)
|
88
|
+
rails (5.1.3)
|
76
89
|
rails-dom-testing (2.0.3)
|
77
90
|
rails-html-sanitizer (1.0.3)
|
78
|
-
railties (5.1.
|
91
|
+
railties (5.1.3)
|
79
92
|
rake (10.4.2)
|
80
93
|
rdoc (4.2.1)
|
81
|
-
ruby-beautify (0.97.4)
|
82
94
|
rubygems-bundler (1.4.4)
|
83
95
|
rvm (1.11.3.9)
|
96
|
+
sprockets (3.7.1)
|
97
|
+
sprockets-rails (3.2.0)
|
84
98
|
test-unit (3.1.5)
|
85
99
|
thor (0.19.4)
|
86
100
|
thread_safe (0.3.6)
|
87
101
|
tzinfo (1.2.3)
|
102
|
+
websocket-driver (0.6.5)
|
103
|
+
websocket-extensions (0.1.2)
|
88
104
|
|
89
|
-
###補足情報(言語/FW/ツール等のバージョンなど)
|
90
|
-
|
105
|
+
```
|
1
goji
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|