質問編集履歴
3
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -75,38 +75,193 @@
|
|
75
75
|
* Vagrant
|
76
76
|
* Ubuntu 14
|
77
77
|
|
78
|
-
##
|
78
|
+
##mkmf.log
|
79
|
-
|
80
79
|
```
|
81
|
-
|
80
|
+
have_header: checking for unistd.h... -------------------- yes
|
82
81
|
|
83
|
-
|
82
|
+
checked program was:
|
84
|
-
|
83
|
+
/* begin */
|
85
|
-
|
84
|
+
1: #include "ruby.h"
|
85
|
+
2:
|
86
|
-
|
86
|
+
3: int main(int argc, char **argv)
|
87
|
+
4: {
|
87
|
-
|
88
|
+
5: return 0;
|
89
|
+
6: }
|
88
|
-
|
90
|
+
/* end */
|
89
|
-
gem 'puma', '~> 3.0'
|
90
|
-
gem 'sass-rails', '~> 5.0'
|
91
|
-
gem 'uglifier', '>= 1.3.0'
|
92
|
-
gem 'coffee-rails', '~> 4.2'
|
93
|
-
gem 'therubyracer', platforms: :ruby
|
94
|
-
gem 'jquery-rails'
|
95
|
-
gem 'turbolinks', '~> 5'
|
96
|
-
gem 'jbuilder', '~> 2.5'
|
97
|
-
gem 'bcrypt', '~> 3.1.7'
|
98
91
|
|
92
|
+
checked program was:
|
93
|
+
/* begin */
|
99
|
-
|
94
|
+
1: #include "ruby.h"
|
100
|
-
|
95
|
+
2:
|
101
|
-
|
96
|
+
3: #include <unistd.h>
|
102
|
-
end
|
97
|
+
/* end */
|
103
98
|
|
104
|
-
|
99
|
+
--------------------
|
105
|
-
gem 'web-console'
|
106
|
-
gem 'listen', '~> 3.0.5'
|
107
|
-
gem 'spring'
|
108
|
-
gem 'spring-watcher-listen', '~> 2.0.0'
|
109
|
-
end
|
110
100
|
|
101
|
+
have_func: checking for rb_thread_blocking_region()... -------------------- no
|
102
|
+
|
103
|
+
conftest.c: In function ‘t’:
|
104
|
+
conftest.c:13:57: error: ‘rb_thread_blocking_region’ undeclared (first use in this function)
|
105
|
+
int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_blocking_region; return !p; }
|
106
|
+
^
|
107
|
+
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
|
108
|
+
checked program was:
|
109
|
+
/* begin */
|
110
|
+
1: #include "ruby.h"
|
111
|
+
2:
|
112
|
+
3: /*top*/
|
113
|
+
4: extern int t(void);
|
114
|
+
5: int main(int argc, char **argv)
|
115
|
+
6: {
|
116
|
+
7: if (argc > 1000000) {
|
117
|
+
8: printf("%p", &t);
|
118
|
+
9: }
|
119
|
+
10:
|
120
|
+
11: return 0;
|
121
|
+
12: }
|
122
|
+
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_blocking_region; return !p; }
|
123
|
+
/* end */
|
124
|
+
|
125
|
+
/tmp/cc8EA8BT.o: In function `t':
|
126
|
+
/vagrant/sample_app/path/ruby/2.3.0/gems/nio4r-1.2.1/ext/nio4r/conftest.c:14: undefined reference to `rb_thread_blocking_region'
|
127
|
+
collect2: error: ld returned 1 exit status
|
128
|
+
checked program was:
|
129
|
+
/* begin */
|
130
|
+
1: #include "ruby.h"
|
131
|
+
2:
|
132
|
+
3: /*top*/
|
133
|
+
4: extern int t(void);
|
134
|
+
5: int main(int argc, char **argv)
|
135
|
+
6: {
|
136
|
+
7: if (argc > 1000000) {
|
137
|
+
8: printf("%p", &t);
|
138
|
+
9: }
|
139
|
+
10:
|
140
|
+
11: return 0;
|
141
|
+
12: }
|
142
|
+
13: extern void rb_thread_blocking_region();
|
143
|
+
14: int t(void) { rb_thread_blocking_region(); return 0; }
|
144
|
+
/* end */
|
145
|
+
|
146
|
+
--------------------
|
147
|
+
|
148
|
+
have_func: checking for rb_thread_call_without_gvl()... -------------------- yes
|
149
|
+
|
150
|
+
conftest.c: In function ‘t’:
|
151
|
+
conftest.c:13:57: error: ‘rb_thread_call_without_gvl’ undeclared (first use in this function)
|
152
|
+
int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_without_gvl; return !p; }
|
153
|
+
^
|
154
|
+
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
|
155
|
+
checked program was:
|
156
|
+
/* begin */
|
157
|
+
1: #include "ruby.h"
|
158
|
+
2:
|
159
|
+
3: /*top*/
|
160
|
+
4: extern int t(void);
|
161
|
+
5: int main(int argc, char **argv)
|
162
|
+
6: {
|
163
|
+
7: if (argc > 1000000) {
|
164
|
+
8: printf("%p", &t);
|
165
|
+
9: }
|
166
|
+
10:
|
167
|
+
11: return 0;
|
168
|
+
12: }
|
169
|
+
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_without_gvl; return !p; }
|
170
|
+
/* end */
|
171
|
+
|
172
|
+
checked program was:
|
173
|
+
/* begin */
|
174
|
+
1: #include "ruby.h"
|
175
|
+
2:
|
176
|
+
3: /*top*/
|
177
|
+
4: extern int t(void);
|
178
|
+
5: int main(int argc, char **argv)
|
179
|
+
6: {
|
180
|
+
7: if (argc > 1000000) {
|
181
|
+
8: printf("%p", &t);
|
182
|
+
9: }
|
183
|
+
10:
|
184
|
+
11: return 0;
|
185
|
+
12: }
|
186
|
+
13: extern void rb_thread_call_without_gvl();
|
187
|
+
14: int t(void) { rb_thread_call_without_gvl(); return 0; }
|
188
|
+
/* end */
|
189
|
+
|
190
|
+
--------------------
|
191
|
+
|
192
|
+
have_header: checking for sys/select.h... -------------------- yes
|
193
|
+
|
194
|
+
checked program was:
|
195
|
+
/* begin */
|
196
|
+
1: #include "ruby.h"
|
197
|
+
2:
|
198
|
+
3: #include <sys/select.h>
|
199
|
+
/* end */
|
200
|
+
|
201
|
+
--------------------
|
202
|
+
|
203
|
+
have_header: checking for poll.h... -------------------- yes
|
204
|
+
|
205
|
+
checked program was:
|
206
|
+
/* begin */
|
207
|
+
1: #include "ruby.h"
|
208
|
+
2:
|
209
|
+
3: #include <poll.h>
|
210
|
+
/* end */
|
211
|
+
|
212
|
+
--------------------
|
213
|
+
|
214
|
+
have_header: checking for sys/epoll.h... -------------------- yes
|
215
|
+
|
216
|
+
checked program was:
|
217
|
+
/* begin */
|
218
|
+
1: #include "ruby.h"
|
219
|
+
2:
|
220
|
+
3: #include <sys/epoll.h>
|
221
|
+
/* end */
|
222
|
+
|
223
|
+
--------------------
|
224
|
+
|
225
|
+
have_header: checking for sys/event.h... -------------------- no
|
226
|
+
|
227
|
+
conftest.c:3:23: fatal error: sys/event.h: No such file or directory
|
228
|
+
#include <sys/event.h>
|
229
|
+
^
|
230
|
+
compilation terminated.
|
231
|
+
checked program was:
|
232
|
+
/* begin */
|
233
|
+
1: #include "ruby.h"
|
234
|
+
2:
|
235
|
+
3: #include <sys/event.h>
|
236
|
+
/* end */
|
237
|
+
|
238
|
+
--------------------
|
239
|
+
|
240
|
+
have_header: checking for port.h... -------------------- no
|
241
|
+
|
111
|
-
|
242
|
+
conftest.c:3:18: fatal error: port.h: No such file or directory
|
243
|
+
#include <port.h>
|
244
|
+
^
|
245
|
+
compilation terminated.
|
246
|
+
checked program was:
|
247
|
+
/* begin */
|
248
|
+
1: #include "ruby.h"
|
249
|
+
2:
|
250
|
+
3: #include <port.h>
|
251
|
+
/* end */
|
252
|
+
|
253
|
+
--------------------
|
254
|
+
|
255
|
+
have_header: checking for sys/resource.h... -------------------- yes
|
256
|
+
|
257
|
+
checked program was:
|
258
|
+
/* begin */
|
259
|
+
1: #include "ruby.h"
|
260
|
+
2:
|
261
|
+
3: #include <sys/resource.h>
|
262
|
+
/* end */
|
263
|
+
|
264
|
+
--------------------
|
265
|
+
|
266
|
+
|
112
267
|
```
|
2
編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,44 +27,7 @@
|
|
27
27
|
##エラー内容
|
28
28
|
```
|
29
29
|
vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ bundle install
|
30
|
-
Fetching gem metadata from https://rubygems.org/..........
|
31
|
-
Fetching version metadata from https://rubygems.org/..
|
32
|
-
Fetching dependency metadata from https://rubygems.org/.
|
33
|
-
Resolving dependencies...
|
34
|
-
Using rake 11.3.0
|
35
|
-
Using concurrent-ruby 1.0.2
|
36
|
-
|
30
|
+
/*中略*/
|
37
|
-
Using minitest 5.9.1
|
38
|
-
Using thread_safe 0.3.5
|
39
|
-
Using builder 3.2.2
|
40
|
-
Using erubis 2.7.0
|
41
|
-
Using mini_portile2 2.1.0
|
42
|
-
Using rack 2.0.1
|
43
|
-
Installing nio4r 1.2.1 with native extensions
|
44
|
-
Using websocket-extensions 0.1.2
|
45
|
-
Using mime-types-data 3.2016.0521
|
46
|
-
Using arel 7.1.4
|
47
|
-
Using execjs 2.7.0
|
48
|
-
Installing bcrypt 3.1.11 with native extensions
|
49
|
-
Using sass 3.4.22
|
50
|
-
Using will_paginate 3.1.3
|
51
|
-
Using bundler 1.13.4
|
52
|
-
Installing byebug 9.0.6 with native extensions
|
53
|
-
Using coffee-script-source 1.10.0
|
54
|
-
Using method_source 0.8.2
|
55
|
-
Using thor 0.19.1
|
56
|
-
Installing debug_inspector 0.0.2 with native extensions
|
57
|
-
Installing ffi 1.9.14 with native extensions
|
58
|
-
Using multi_json 1.12.1
|
59
|
-
Using libv8 3.16.14.15
|
60
|
-
Using rb-fsevent 0.9.7
|
61
|
-
Installing puma 3.6.0 with native extensions
|
62
|
-
Using ref 2.0.0
|
63
|
-
Using tilt 2.0.5
|
64
|
-
Installing sqlite3 1.3.12 with native extensions
|
65
|
-
Using turbolinks-source 5.0.0
|
66
|
-
Using faker 1.6.6
|
67
|
-
Using tzinfo 1.2.2
|
68
31
|
Installing nokogiri 1.6.8.1 with native extensions
|
69
32
|
Using rack-test 0.6.3
|
70
33
|
Using sprockets 3.7.0
|
@@ -104,106 +67,6 @@
|
|
104
67
|
An error occurred while installing nio4r (1.2.1), and Bundler cannot
|
105
68
|
continue.
|
106
69
|
Make sure that `gem install nio4r -v '1.2.1'` succeeds before bundling.
|
107
|
-
vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ bundle doctor
|
108
|
-
This bundle's gems must be installed to run this command.
|
109
|
-
Install missing gems with `bundle install`.
|
110
|
-
vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ rails -v
|
111
|
-
/home/vagrant/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `
|
112
|
-
to_specs': Could not find 'railties' (>= 0.a) among 33 total gem(s) (Gem::LoadError
|
113
|
-
)
|
114
|
-
Checked in 'GEM_PATH=/vagrant/sample_app/path/ruby/2.3.0', execute `gem env` for mo
|
115
|
-
re information
|
116
|
-
from /home/vagrant/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/dependenc
|
117
|
-
y.rb:328:in `to_spec'
|
118
|
-
from /home/vagrant/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/
|
119
|
-
kernel_gem.rb:65:in `gem'
|
120
|
-
from /home/vagrant/.rvm/gems/ruby-2.3.1/bin/rails:22:in `<main>'
|
121
|
-
from /home/vagrant/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `ev
|
122
|
-
al'
|
123
|
-
from /home/vagrant/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<m
|
124
|
-
ain>'
|
125
|
-
vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ bundle install rails
|
126
|
-
ERROR: "bundle install" was called with arguments ["rails"]
|
127
|
-
Usage: "bundle install [OPTIONS]"
|
128
|
-
vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ bundle --help
|
129
|
-
vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$
|
130
|
-
vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ bundle install
|
131
|
-
Fetching gem metadata from https://rubygems.org/..........
|
132
|
-
Fetching version metadata from https://rubygems.org/..
|
133
|
-
Fetching dependency metadata from https://rubygems.org/.
|
134
|
-
Resolving dependencies...
|
135
|
-
Using rake 11.3.0
|
136
|
-
Using concurrent-ruby 1.0.2
|
137
|
-
Using i18n 0.7.0
|
138
|
-
Using minitest 5.9.1
|
139
|
-
Using thread_safe 0.3.5
|
140
|
-
Using builder 3.2.2
|
141
|
-
Using erubis 2.7.0
|
142
|
-
Using mini_portile2 2.1.0
|
143
|
-
Using rack 2.0.1
|
144
|
-
Installing nio4r 1.2.1 with native extensions
|
145
|
-
Using websocket-extensions 0.1.2
|
146
|
-
Using mime-types-data 3.2016.0521
|
147
|
-
Using arel 7.1.4
|
148
|
-
Using execjs 2.7.0
|
149
|
-
Installing bcrypt 3.1.11 with native extensions
|
150
|
-
Using sass 3.4.22
|
151
|
-
Using will_paginate 3.1.3
|
152
|
-
Using bundler 1.13.4
|
153
|
-
Installing byebug 9.0.6 with native extensions
|
154
|
-
Using coffee-script-source 1.10.0
|
155
|
-
Using method_source 0.8.2
|
156
|
-
Using thor 0.19.1
|
157
|
-
Installing debug_inspector 0.0.2 with native extensions
|
158
|
-
Installing ffi 1.9.14 with native extensions
|
159
|
-
Using multi_json 1.12.1
|
160
|
-
Using libv8 3.16.14.15
|
161
|
-
Using rb-fsevent 0.9.7
|
162
|
-
Installing puma 3.6.0 with native extensions
|
163
|
-
Using ref 2.0.0
|
164
|
-
Using tilt 2.0.5
|
165
|
-
Installing sqlite3 1.3.12 with native extensions
|
166
|
-
Using turbolinks-source 5.0.0
|
167
|
-
Using faker 1.6.6
|
168
|
-
Using tzinfo 1.2.2
|
169
|
-
Installing nokogiri 1.6.8.1 with native extensions
|
170
|
-
Using rack-test 0.6.3
|
171
|
-
Using sprockets 3.7.0
|
172
|
-
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
173
|
-
|
174
|
-
current directory:
|
175
|
-
/vagrant/sample_app/path/ruby/2.3.0/gems/nio4r-1.2.1/ext/nio4r
|
176
|
-
/home/vagrant/.rvm/rubies/ruby-2.3.1/bin/ruby -r
|
177
|
-
./siteconf20161015-19733-12xqd6x.rb extconf.rb
|
178
|
-
checking for unistd.h... yes
|
179
|
-
checking for rb_thread_blocking_region()... no
|
180
|
-
checking for rb_thread_call_without_gvl()... yes
|
181
|
-
checking for sys/select.h... yes
|
182
|
-
checking for poll.h... yes
|
183
|
-
checking for sys/epoll.h... yes
|
184
|
-
checking for sys/event.h... no
|
185
|
-
checking for port.h... no
|
186
|
-
checking for sys/resource.h... yes
|
187
|
-
creating Makefile
|
188
|
-
|
189
|
-
To see why this extension failed to compile, please check the mkmf.log which can be
|
190
|
-
|
191
|
-
found here:
|
192
|
-
|
193
|
-
/vagrant/sample_app/path/ruby/2.3.0/extensions/x86_64-linux/2.3.0/nio4r-1.2.1/mkmf.
|
194
|
-
log
|
195
|
-
|
196
|
-
Text file busy @ unlink_internal - ./siteconf20161015-19733-12xqd6x.rb
|
197
|
-
|
198
|
-
Gem files will remain installed in
|
199
|
-
/vagrant/sample_app/path/ruby/2.3.0/gems/nio4r-1.2.1 for inspection.
|
200
|
-
Results logged to
|
201
|
-
/vagrant/sample_app/path/ruby/2.3.0/extensions/x86_64-linux/2.3.0/nio4r-1.2.1/gem_m
|
202
|
-
ake.out
|
203
|
-
|
204
|
-
An error occurred while installing nio4r (1.2.1), and Bundler cannot
|
205
|
-
continue.
|
206
|
-
Make sure that `gem install nio4r -v '1.2.1'` succeeds before bundling.
|
207
70
|
```
|
208
71
|
|
209
72
|
##環境
|
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
解決方法をググって色々探し、試してみたのですが解決できませんでした。
|
6
6
|
|
7
7
|
また、関係あるかどうかわかりませんが
|
8
|
-
プロジェクトディレクトリ内で```
|
8
|
+
プロジェクトディレクトリ内で```rails -v``` を実行するとエラーが表示されます。
|
9
9
|
```
|
10
10
|
vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ rails -v
|
11
11
|
/home/vagrant/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `
|