質問編集履歴

3

追記

2016/10/15 12:44

投稿

mokekepiropiro
mokekepiropiro

スコア12

test CHANGED
File without changes
test CHANGED
@@ -152,72 +152,382 @@
152
152
 
153
153
 
154
154
 
155
- ##Gemfile
155
+ ##mkmf.log
156
-
157
-
158
156
 
159
157
  ```
160
158
 
161
- source 'https://rubygems.org'
162
-
163
-
164
-
165
- gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
166
-
167
- gem 'bootstrap-sass', ' > 3.2.0.0'
168
-
169
- gem 'faker', '>1.4.2'
170
-
171
- gem 'will_paginate', '> 3.0.7'
172
-
173
- gem 'bootstrap-will_paginate', '~> 0.0.10'
174
-
175
- gem 'sqlite3'
176
-
177
- gem 'puma', '~> 3.0'
178
-
179
- gem 'sass-rails', '~> 5.0'
180
-
181
- gem 'uglifier', '>= 1.3.0'
182
-
183
- gem 'coffee-rails', '~> 4.2'
184
-
185
- gem 'therubyracer', platforms: :ruby
186
-
187
- gem 'jquery-rails'
188
-
189
- gem 'turbolinks', '~> 5'
190
-
191
- gem 'jbuilder', '~> 2.5'
192
-
193
- gem 'bcrypt', '~> 3.1.7'
194
-
195
-
196
-
197
- group :development, :test do
198
-
199
- gem 'byebug', platform: :mri
200
-
201
- gem 'rails-controller-testing'
202
-
203
- end
204
-
205
-
206
-
207
- group :development do
208
-
209
- gem 'web-console'
210
-
211
- gem 'listen', '~> 3.0.5'
212
-
213
- gem 'spring'
214
-
215
- gem 'spring-watcher-listen', '~> 2.0.0'
216
-
217
- end
218
-
219
-
220
-
221
- gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
159
+ have_header: checking for unistd.h... -------------------- yes
160
+
161
+
162
+
163
+ checked program was:
164
+
165
+ /* begin */
166
+
167
+ 1: #include "ruby.h"
168
+
169
+ 2:
170
+
171
+ 3: int main(int argc, char **argv)
172
+
173
+ 4: {
174
+
175
+ 5: return 0;
176
+
177
+ 6: }
178
+
179
+ /* end */
180
+
181
+
182
+
183
+ checked program was:
184
+
185
+ /* begin */
186
+
187
+ 1: #include "ruby.h"
188
+
189
+ 2:
190
+
191
+ 3: #include <unistd.h>
192
+
193
+ /* end */
194
+
195
+
196
+
197
+ --------------------
198
+
199
+
200
+
201
+ have_func: checking for rb_thread_blocking_region()... -------------------- no
202
+
203
+
204
+
205
+ conftest.c: In functiont’:
206
+
207
+ conftest.c:13:57: error: ‘rb_thread_blocking_region’ undeclared (first use in this function)
208
+
209
+ int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_blocking_region; return !p; }
210
+
211
+ ^
212
+
213
+ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
214
+
215
+ checked program was:
216
+
217
+ /* begin */
218
+
219
+ 1: #include "ruby.h"
220
+
221
+ 2:
222
+
223
+ 3: /*top*/
224
+
225
+ 4: extern int t(void);
226
+
227
+ 5: int main(int argc, char **argv)
228
+
229
+ 6: {
230
+
231
+ 7: if (argc > 1000000) {
232
+
233
+ 8: printf("%p", &t);
234
+
235
+ 9: }
236
+
237
+ 10:
238
+
239
+ 11: return 0;
240
+
241
+ 12: }
242
+
243
+ 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_blocking_region; return !p; }
244
+
245
+ /* end */
246
+
247
+
248
+
249
+ /tmp/cc8EA8BT.o: In function `t':
250
+
251
+ /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'
252
+
253
+ collect2: error: ld returned 1 exit status
254
+
255
+ checked program was:
256
+
257
+ /* begin */
258
+
259
+ 1: #include "ruby.h"
260
+
261
+ 2:
262
+
263
+ 3: /*top*/
264
+
265
+ 4: extern int t(void);
266
+
267
+ 5: int main(int argc, char **argv)
268
+
269
+ 6: {
270
+
271
+ 7: if (argc > 1000000) {
272
+
273
+ 8: printf("%p", &t);
274
+
275
+ 9: }
276
+
277
+ 10:
278
+
279
+ 11: return 0;
280
+
281
+ 12: }
282
+
283
+ 13: extern void rb_thread_blocking_region();
284
+
285
+ 14: int t(void) { rb_thread_blocking_region(); return 0; }
286
+
287
+ /* end */
288
+
289
+
290
+
291
+ --------------------
292
+
293
+
294
+
295
+ have_func: checking for rb_thread_call_without_gvl()... -------------------- yes
296
+
297
+
298
+
299
+ conftest.c: In function ‘t’:
300
+
301
+ conftest.c:13:57: error: ‘rb_thread_call_without_gvl’ undeclared (first use in this function)
302
+
303
+ int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_without_gvl; return !p; }
304
+
305
+ ^
306
+
307
+ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
308
+
309
+ checked program was:
310
+
311
+ /* begin */
312
+
313
+ 1: #include "ruby.h"
314
+
315
+ 2:
316
+
317
+ 3: /*top*/
318
+
319
+ 4: extern int t(void);
320
+
321
+ 5: int main(int argc, char **argv)
322
+
323
+ 6: {
324
+
325
+ 7: if (argc > 1000000) {
326
+
327
+ 8: printf("%p", &t);
328
+
329
+ 9: }
330
+
331
+ 10:
332
+
333
+ 11: return 0;
334
+
335
+ 12: }
336
+
337
+ 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_without_gvl; return !p; }
338
+
339
+ /* end */
340
+
341
+
342
+
343
+ checked program was:
344
+
345
+ /* begin */
346
+
347
+ 1: #include "ruby.h"
348
+
349
+ 2:
350
+
351
+ 3: /*top*/
352
+
353
+ 4: extern int t(void);
354
+
355
+ 5: int main(int argc, char **argv)
356
+
357
+ 6: {
358
+
359
+ 7: if (argc > 1000000) {
360
+
361
+ 8: printf("%p", &t);
362
+
363
+ 9: }
364
+
365
+ 10:
366
+
367
+ 11: return 0;
368
+
369
+ 12: }
370
+
371
+ 13: extern void rb_thread_call_without_gvl();
372
+
373
+ 14: int t(void) { rb_thread_call_without_gvl(); return 0; }
374
+
375
+ /* end */
376
+
377
+
378
+
379
+ --------------------
380
+
381
+
382
+
383
+ have_header: checking for sys/select.h... -------------------- yes
384
+
385
+
386
+
387
+ checked program was:
388
+
389
+ /* begin */
390
+
391
+ 1: #include "ruby.h"
392
+
393
+ 2:
394
+
395
+ 3: #include <sys/select.h>
396
+
397
+ /* end */
398
+
399
+
400
+
401
+ --------------------
402
+
403
+
404
+
405
+ have_header: checking for poll.h... -------------------- yes
406
+
407
+
408
+
409
+ checked program was:
410
+
411
+ /* begin */
412
+
413
+ 1: #include "ruby.h"
414
+
415
+ 2:
416
+
417
+ 3: #include <poll.h>
418
+
419
+ /* end */
420
+
421
+
422
+
423
+ --------------------
424
+
425
+
426
+
427
+ have_header: checking for sys/epoll.h... -------------------- yes
428
+
429
+
430
+
431
+ checked program was:
432
+
433
+ /* begin */
434
+
435
+ 1: #include "ruby.h"
436
+
437
+ 2:
438
+
439
+ 3: #include <sys/epoll.h>
440
+
441
+ /* end */
442
+
443
+
444
+
445
+ --------------------
446
+
447
+
448
+
449
+ have_header: checking for sys/event.h... -------------------- no
450
+
451
+
452
+
453
+ conftest.c:3:23: fatal error: sys/event.h: No such file or directory
454
+
455
+ #include <sys/event.h>
456
+
457
+ ^
458
+
459
+ compilation terminated.
460
+
461
+ checked program was:
462
+
463
+ /* begin */
464
+
465
+ 1: #include "ruby.h"
466
+
467
+ 2:
468
+
469
+ 3: #include <sys/event.h>
470
+
471
+ /* end */
472
+
473
+
474
+
475
+ --------------------
476
+
477
+
478
+
479
+ have_header: checking for port.h... -------------------- no
480
+
481
+
482
+
483
+ conftest.c:3:18: fatal error: port.h: No such file or directory
484
+
485
+ #include <port.h>
486
+
487
+ ^
488
+
489
+ compilation terminated.
490
+
491
+ checked program was:
492
+
493
+ /* begin */
494
+
495
+ 1: #include "ruby.h"
496
+
497
+ 2:
498
+
499
+ 3: #include <port.h>
500
+
501
+ /* end */
502
+
503
+
504
+
505
+ --------------------
506
+
507
+
508
+
509
+ have_header: checking for sys/resource.h... -------------------- yes
510
+
511
+
512
+
513
+ checked program was:
514
+
515
+ /* begin */
516
+
517
+ 1: #include "ruby.h"
518
+
519
+ 2:
520
+
521
+ 3: #include <sys/resource.h>
522
+
523
+ /* end */
524
+
525
+
526
+
527
+ --------------------
528
+
529
+
530
+
531
+
222
532
 
223
533
  ```

2

編集

2016/10/15 12:44

投稿

mokekepiropiro
mokekepiropiro

スコア12

test CHANGED
File without changes
test CHANGED
@@ -56,81 +56,7 @@
56
56
 
57
57
  vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ bundle install
58
58
 
59
- Fetching gem metadata from https://rubygems.org/..........
60
-
61
- Fetching version metadata from https://rubygems.org/..
62
-
63
- Fetching dependency metadata from https://rubygems.org/.
64
-
65
- Resolving dependencies...
66
-
67
- Using rake 11.3.0
68
-
69
- Using concurrent-ruby 1.0.2
70
-
71
- Using i18n 0.7.0
59
+ /*中略*/
72
-
73
- Using minitest 5.9.1
74
-
75
- Using thread_safe 0.3.5
76
-
77
- Using builder 3.2.2
78
-
79
- Using erubis 2.7.0
80
-
81
- Using mini_portile2 2.1.0
82
-
83
- Using rack 2.0.1
84
-
85
- Installing nio4r 1.2.1 with native extensions
86
-
87
- Using websocket-extensions 0.1.2
88
-
89
- Using mime-types-data 3.2016.0521
90
-
91
- Using arel 7.1.4
92
-
93
- Using execjs 2.7.0
94
-
95
- Installing bcrypt 3.1.11 with native extensions
96
-
97
- Using sass 3.4.22
98
-
99
- Using will_paginate 3.1.3
100
-
101
- Using bundler 1.13.4
102
-
103
- Installing byebug 9.0.6 with native extensions
104
-
105
- Using coffee-script-source 1.10.0
106
-
107
- Using method_source 0.8.2
108
-
109
- Using thor 0.19.1
110
-
111
- Installing debug_inspector 0.0.2 with native extensions
112
-
113
- Installing ffi 1.9.14 with native extensions
114
-
115
- Using multi_json 1.12.1
116
-
117
- Using libv8 3.16.14.15
118
-
119
- Using rb-fsevent 0.9.7
120
-
121
- Installing puma 3.6.0 with native extensions
122
-
123
- Using ref 2.0.0
124
-
125
- Using tilt 2.0.5
126
-
127
- Installing sqlite3 1.3.12 with native extensions
128
-
129
- Using turbolinks-source 5.0.0
130
-
131
- Using faker 1.6.6
132
-
133
- Using tzinfo 1.2.2
134
60
 
135
61
  Installing nokogiri 1.6.8.1 with native extensions
136
62
 
@@ -210,206 +136,6 @@
210
136
 
211
137
  Make sure that `gem install nio4r -v '1.2.1'` succeeds before bundling.
212
138
 
213
- vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ bundle doctor
214
-
215
- This bundle's gems must be installed to run this command.
216
-
217
- Install missing gems with `bundle install`.
218
-
219
- vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ rails -v
220
-
221
- /home/vagrant/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `
222
-
223
- to_specs': Could not find 'railties' (>= 0.a) among 33 total gem(s) (Gem::LoadError
224
-
225
- )
226
-
227
- Checked in 'GEM_PATH=/vagrant/sample_app/path/ruby/2.3.0', execute `gem env` for mo
228
-
229
- re information
230
-
231
- from /home/vagrant/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/dependenc
232
-
233
- y.rb:328:in `to_spec'
234
-
235
- from /home/vagrant/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/
236
-
237
- kernel_gem.rb:65:in `gem'
238
-
239
- from /home/vagrant/.rvm/gems/ruby-2.3.1/bin/rails:22:in `<main>'
240
-
241
- from /home/vagrant/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `ev
242
-
243
- al'
244
-
245
- from /home/vagrant/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<m
246
-
247
- ain>'
248
-
249
- vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ bundle install rails
250
-
251
- ERROR: "bundle install" was called with arguments ["rails"]
252
-
253
- Usage: "bundle install [OPTIONS]"
254
-
255
- vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ bundle --help
256
-
257
- vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$
258
-
259
- vagrant@vagrant-ubuntu-trusty-64:/vagrant/sample_app$ bundle install
260
-
261
- Fetching gem metadata from https://rubygems.org/..........
262
-
263
- Fetching version metadata from https://rubygems.org/..
264
-
265
- Fetching dependency metadata from https://rubygems.org/.
266
-
267
- Resolving dependencies...
268
-
269
- Using rake 11.3.0
270
-
271
- Using concurrent-ruby 1.0.2
272
-
273
- Using i18n 0.7.0
274
-
275
- Using minitest 5.9.1
276
-
277
- Using thread_safe 0.3.5
278
-
279
- Using builder 3.2.2
280
-
281
- Using erubis 2.7.0
282
-
283
- Using mini_portile2 2.1.0
284
-
285
- Using rack 2.0.1
286
-
287
- Installing nio4r 1.2.1 with native extensions
288
-
289
- Using websocket-extensions 0.1.2
290
-
291
- Using mime-types-data 3.2016.0521
292
-
293
- Using arel 7.1.4
294
-
295
- Using execjs 2.7.0
296
-
297
- Installing bcrypt 3.1.11 with native extensions
298
-
299
- Using sass 3.4.22
300
-
301
- Using will_paginate 3.1.3
302
-
303
- Using bundler 1.13.4
304
-
305
- Installing byebug 9.0.6 with native extensions
306
-
307
- Using coffee-script-source 1.10.0
308
-
309
- Using method_source 0.8.2
310
-
311
- Using thor 0.19.1
312
-
313
- Installing debug_inspector 0.0.2 with native extensions
314
-
315
- Installing ffi 1.9.14 with native extensions
316
-
317
- Using multi_json 1.12.1
318
-
319
- Using libv8 3.16.14.15
320
-
321
- Using rb-fsevent 0.9.7
322
-
323
- Installing puma 3.6.0 with native extensions
324
-
325
- Using ref 2.0.0
326
-
327
- Using tilt 2.0.5
328
-
329
- Installing sqlite3 1.3.12 with native extensions
330
-
331
- Using turbolinks-source 5.0.0
332
-
333
- Using faker 1.6.6
334
-
335
- Using tzinfo 1.2.2
336
-
337
- Installing nokogiri 1.6.8.1 with native extensions
338
-
339
- Using rack-test 0.6.3
340
-
341
- Using sprockets 3.7.0
342
-
343
- Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
344
-
345
-
346
-
347
- current directory:
348
-
349
- /vagrant/sample_app/path/ruby/2.3.0/gems/nio4r-1.2.1/ext/nio4r
350
-
351
- /home/vagrant/.rvm/rubies/ruby-2.3.1/bin/ruby -r
352
-
353
- ./siteconf20161015-19733-12xqd6x.rb extconf.rb
354
-
355
- checking for unistd.h... yes
356
-
357
- checking for rb_thread_blocking_region()... no
358
-
359
- checking for rb_thread_call_without_gvl()... yes
360
-
361
- checking for sys/select.h... yes
362
-
363
- checking for poll.h... yes
364
-
365
- checking for sys/epoll.h... yes
366
-
367
- checking for sys/event.h... no
368
-
369
- checking for port.h... no
370
-
371
- checking for sys/resource.h... yes
372
-
373
- creating Makefile
374
-
375
-
376
-
377
- To see why this extension failed to compile, please check the mkmf.log which can be
378
-
379
-
380
-
381
- found here:
382
-
383
-
384
-
385
- /vagrant/sample_app/path/ruby/2.3.0/extensions/x86_64-linux/2.3.0/nio4r-1.2.1/mkmf.
386
-
387
- log
388
-
389
-
390
-
391
- Text file busy @ unlink_internal - ./siteconf20161015-19733-12xqd6x.rb
392
-
393
-
394
-
395
- Gem files will remain installed in
396
-
397
- /vagrant/sample_app/path/ruby/2.3.0/gems/nio4r-1.2.1 for inspection.
398
-
399
- Results logged to
400
-
401
- /vagrant/sample_app/path/ruby/2.3.0/extensions/x86_64-linux/2.3.0/nio4r-1.2.1/gem_m
402
-
403
- ake.out
404
-
405
-
406
-
407
- An error occurred while installing nio4r (1.2.1), and Bundler cannot
408
-
409
- continue.
410
-
411
- Make sure that `gem install nio4r -v '1.2.1'` succeeds before bundling.
412
-
413
139
  ```
414
140
 
415
141
 

1

誤字

2016/10/15 12:30

投稿

mokekepiropiro
mokekepiropiro

スコア12

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  また、関係あるかどうかわかりませんが
14
14
 
15
- プロジェクトディレクトリ内で``` Rails -v``` を実行するとエラーが表示されます。
15
+ プロジェクトディレクトリ内で```rails -v``` を実行するとエラーが表示されます。
16
16
 
17
17
  ```
18
18