回答編集履歴

3

追記

2016/10/15 15:17

投稿

tkmtmkt
tkmtmkt

スコア1800

test CHANGED
@@ -126,6 +126,8 @@
126
126
 
127
127
 
128
128
 
129
+ * [[小ネタ][Ruby on Rails]bundle install時にText file busy エラー | Developers.IO](http://dev.classmethod.jp/server-side/ruby-on-rails/tips_ruby-on-railsbundle-install_text-file-busy-error/)
130
+
129
- [RailsのプロジェクトをVMで共有した際にbundle installでこける問題 - Qiita](http://qiita.com/Yoruno/items/0eb3c8a8622242b0e6ff)
131
+ * [RailsのプロジェクトをVMで共有した際にbundle installでこける問題 - Qiita](http://qiita.com/Yoruno/items/0eb3c8a8622242b0e6ff)
130
132
 
131
133
 

2

内容修正

2016/10/15 15:17

投稿

tkmtmkt
tkmtmkt

スコア1800

test CHANGED
@@ -72,68 +72,60 @@
72
72
 
73
73
 
74
74
 
75
- 以下の通り、nio4rはactioncable、railsの依存ライブラリであるため、railsインストール時にインストール済みのはずです
75
+ gem_make.out の内容は以下の通り。
76
76
 
77
77
 
78
78
 
79
79
  ```sh
80
80
 
81
- $ gem uninstall nio4r
81
+ $ head -n 20 gem_make.out
82
+
83
+ current directory: $HOME/.rvm/gems/ruby-2.3.0/gems/nio4r-1.2.1/ext/nio4r
84
+
85
+ $HOME/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20161015-26705-1jnhbkz.rb extconf.rb
86
+
87
+ checking for unistd.h... yes
88
+
89
+ checking for rb_thread_blocking_region()... no
90
+
91
+ checking for rb_thread_call_without_gvl()... yes
92
+
93
+ checking for sys/select.h... yes
94
+
95
+ checking for poll.h... yes
96
+
97
+ checking for sys/epoll.h... yes
98
+
99
+ checking for sys/event.h... no
100
+
101
+ checking for port.h... no
102
+
103
+ checking for sys/resource.h... yes
104
+
105
+ creating Makefile
82
106
 
83
107
 
84
108
 
85
- You have requested to uninstall the gem:
109
+ To see why this extension failed to compile, please check the mkmf.log which can be found here:
86
-
87
- nio4r-1.2.1
88
110
 
89
111
 
90
112
 
91
- actioncable-5.0.0.1 depends on nio4r (~> 1.2)
92
-
93
- actioncable-5.0.0 depends on nio4r (~> 1.2)
94
-
95
- If you remove this gem, these dependencies will not be met.
113
+ $HOME/.rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/nio4r-1.2.1/mkmf.log
96
-
97
- Continue with Uninstall? [yN] n
98
-
99
- ```
100
-
101
- ```sh
102
-
103
- $ gem uninstall actioncable
104
114
 
105
115
 
106
116
 
107
- Select gem to uninstall:
117
+ current directory: $HOME/.rvm/gems/ruby-2.3.0/gems/nio4r-1.2.1/ext/nio4r
108
118
 
109
- 1. actioncable-5.0.0
110
-
111
- 2. actioncable-5.0.0.1
112
-
113
- 3. All versions
114
-
115
- > 3
116
-
117
-
118
-
119
- You have requested to uninstall the gem:
119
+ make "DESTDIR=" clean
120
-
121
- actioncable-5.0.0
122
-
123
-
124
-
125
- rails-5.0.0 depends on actioncable (= 5.0.0)
126
-
127
- If you remove this gem, these dependencies will not be met.
128
-
129
- Continue with Uninstall? [yN] n
130
120
 
131
121
  ```
132
122
 
133
123
 
134
124
 
135
- ここで最初の「`rails -v`を実行するとエラー表示されます。」が気になりま
125
+ 違いとして`Text file busy @ unlink_internal`が気になったのでググってみたら、以下のような情報がありました
136
126
 
137
127
 
138
128
 
139
- `gem env`と`gem list`はどのようになっていでしょうか?
129
+ [RailsのプロジェクトをVMで共有した際にbundle installでこけ問題 - Qiita](http://qiita.com/Yoruno/items/0eb3c8a8622242b0e6ff)
130
+
131
+

1

コピペミス

2016/10/15 15:15

投稿

tkmtmkt
tkmtmkt

スコア1800

test CHANGED
@@ -23,6 +23,26 @@
23
23
  - RUBYGEMS VERSION: 2.5.1
24
24
 
25
25
  - RUBY VERSION: 2.3.0 (2015-12-25 patchlevel 0) [x86_64-linux]
26
+
27
+ - INSTALLATION DIRECTORY: $HOME/.rvm/gems/ruby-2.3.0
28
+
29
+ - USER INSTALLATION DIRECTORY: $HOME/.gem/ruby/2.3.0
30
+
31
+ - RUBY EXECUTABLE: $HOME/.rvm/rubies/ruby-2.3.0/bin/ruby
32
+
33
+ - EXECUTABLE DIRECTORY: $HOME/.rvm/gems/ruby-2.3.0/bin
34
+
35
+ - SPEC CACHE DIRECTORY: $HOME/.gem/specs
36
+
37
+ - SYSTEM CONFIGURATION DIRECTORY: /etc
38
+
39
+ - RUBYGEMS PLATFORMS:
40
+
41
+ - ruby
42
+
43
+ - x86_64-linux
44
+
45
+ - GEM PATHS:
26
46
 
27
47
  - $HOME/.rvm/gems/ruby-2.3.0
28
48