質問編集履歴
6
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,13 +34,17 @@
|
|
34
34
|
|
35
35
|
$ rails -v
|
36
36
|
|
37
|
-
rbenv: rails: command not found
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
Rails is not currently installed on this system. To get the latest version, simply type:
|
42
|
-
|
38
|
+
|
39
|
+
|
40
|
+
|
43
|
-
|
41
|
+
$ sudo gem install rails
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
You can then rerun your "rails" command.
|
46
|
+
|
47
|
+
|
44
48
|
|
45
49
|
```
|
46
50
|
|
5
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,10 +30,20 @@
|
|
30
30
|
|
31
31
|
と、バージョンアップもできていません。
|
32
32
|
|
33
|
+
|
34
|
+
|
35
|
+
$ rails -v
|
36
|
+
|
37
|
+
rbenv: rails: command not found
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
The `rails' command exists in these Ruby versions:
|
42
|
+
|
43
|
+
2.3.1
|
44
|
+
|
33
45
|
```
|
34
46
|
|
35
|
-
|
36
|
-
|
37
47
|
試したコマンドの1部
|
38
48
|
|
39
49
|
```lang
|
4
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,6 +16,24 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
+
**追記**
|
20
|
+
|
21
|
+
```lang
|
22
|
+
|
23
|
+
$rbenv install 2.4.1
|
24
|
+
|
25
|
+
と打ちましたが、
|
26
|
+
|
27
|
+
$ ruby -v
|
28
|
+
|
29
|
+
ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
|
30
|
+
|
31
|
+
と、バージョンアップもできていません。
|
32
|
+
|
33
|
+
```
|
34
|
+
|
35
|
+
|
36
|
+
|
19
37
|
試したコマンドの1部
|
20
38
|
|
21
39
|
```lang
|
3
マークアップ
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
試したコマンドの1部
|
20
20
|
|
21
|
-
|
21
|
+
```lang
|
22
22
|
|
23
23
|
My:.bundle fig$ bundle config
|
24
24
|
|
@@ -303,3 +303,5 @@
|
|
303
303
|
Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1 for inspection.
|
304
304
|
|
305
305
|
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.1/gem_make.out
|
306
|
+
|
307
|
+
```
|
2
ノコギリバージョン
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
railsを消した記憶もないのですが・・・OSのバージョンアップのせいなのかどうなのか・・・
|
6
6
|
|
7
|
+
nokogiriも入っているみたいですが、バージョンが1.5.1みたいです。
|
8
|
+
|
7
9
|
|
8
10
|
|
9
11
|
bundlerはuser/local/binに入っています。
|
1
sudoコマンド追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -71,3 +71,233 @@
|
|
71
71
|
from /Library/Ruby/Site/2.3.0/rubygems.rb:263:in `bin_path'
|
72
72
|
|
73
73
|
from /usr/local/bin/bundler:22:in `<main>'
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
My:spacemarket fig$ sudo gem install rails
|
78
|
+
|
79
|
+
Password:
|
80
|
+
|
81
|
+
Building native extensions. This could take a while...
|
82
|
+
|
83
|
+
ERROR: Error installing rails:
|
84
|
+
|
85
|
+
ERROR: Failed to build gem native extension.
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
current directory: /Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1/ext/nokogiri
|
90
|
+
|
91
|
+
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180116-32652-18sk4ej.rb extconf.rb
|
92
|
+
|
93
|
+
checking if the C compiler accepts ... yes
|
94
|
+
|
95
|
+
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
|
96
|
+
|
97
|
+
Building nokogiri using packaged libraries.
|
98
|
+
|
99
|
+
Using mini_portile version 2.3.0
|
100
|
+
|
101
|
+
checking for iconv.h... yes
|
102
|
+
|
103
|
+
checking for gzdopen() in -lz... yes
|
104
|
+
|
105
|
+
checking for iconv... yes
|
106
|
+
|
107
|
+
************************************************************************
|
108
|
+
|
109
|
+
IMPORTANT NOTICE:
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
Building Nokogiri with a packaged version of libxml2-2.9.5.
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
Team Nokogiri will keep on doing their best to provide security
|
118
|
+
|
119
|
+
updates in a timely manner, but if this is a concern for you and want
|
120
|
+
|
121
|
+
to use the system library instead; abort this installation process and
|
122
|
+
|
123
|
+
reinstall nokogiri as follows:
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
gem install nokogiri -- --use-system-libraries
|
128
|
+
|
129
|
+
[--with-xml2-config=/path/to/xml2-config]
|
130
|
+
|
131
|
+
[--with-xslt-config=/path/to/xslt-config]
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
If you are using Bundler, tell it to use the option:
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
bundle config build.nokogiri --use-system-libraries
|
140
|
+
|
141
|
+
bundle install
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
Note, however, that nokogiri is not fully compatible with arbitrary
|
146
|
+
|
147
|
+
versions of libxml2 provided by OS/package vendors.
|
148
|
+
|
149
|
+
************************************************************************
|
150
|
+
|
151
|
+
Extracting libxml2-2.9.5.tar.gz into tmp/x86_64-apple-darwin17/ports/libxml2/2.9.5... OK
|
152
|
+
|
153
|
+
Running 'configure' for libxml2 2.9.5... OK
|
154
|
+
|
155
|
+
Running 'compile' for libxml2 2.9.5... ERROR, review '/Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1/ext/nokogiri/tmp/x86_64-apple-darwin17/ports/libxml2/2.9.5/compile.log' to see what happened. Last lines are:
|
156
|
+
|
157
|
+
========================================================================
|
158
|
+
|
159
|
+
CCLD libxml2.la
|
160
|
+
|
161
|
+
CC testdso.lo
|
162
|
+
|
163
|
+
CCLD testdso.la
|
164
|
+
|
165
|
+
CC xmllint.o
|
166
|
+
|
167
|
+
CCLD xmllint
|
168
|
+
|
169
|
+
ld: warning: ignoring file /usr/local/Cellar/xz/5.2.3/lib/liblzma.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/xz/5.2.3/lib/liblzma.dylib
|
170
|
+
|
171
|
+
Undefined symbols for architecture i386:
|
172
|
+
|
173
|
+
"_lzma_auto_decoder", referenced from:
|
174
|
+
|
175
|
+
_xz_head in libxml2.a(xzlib.o)
|
176
|
+
|
177
|
+
"_lzma_code", referenced from:
|
178
|
+
|
179
|
+
_xz_decomp in libxml2.a(xzlib.o)
|
180
|
+
|
181
|
+
"_lzma_end", referenced from:
|
182
|
+
|
183
|
+
___libxml2_xzclose in libxml2.a(xzlib.o)
|
184
|
+
|
185
|
+
"_lzma_properties_decode", referenced from:
|
186
|
+
|
187
|
+
_is_format_lzma in libxml2.a(xzlib.o)
|
188
|
+
|
189
|
+
ld: symbol(s) not found for architecture i386
|
190
|
+
|
191
|
+
clang: error: linker command failed with exit code 1 (use -v to see invocation)
|
192
|
+
|
193
|
+
make[2]: *** [xmllint] Error 1
|
194
|
+
|
195
|
+
make[1]: *** [all-recursive] Error 1
|
196
|
+
|
197
|
+
make: *** [all] Error 2
|
198
|
+
|
199
|
+
========================================================================
|
200
|
+
|
201
|
+
*** extconf.rb failed ***
|
202
|
+
|
203
|
+
Could not create Makefile due to some reason, probably lack of necessary
|
204
|
+
|
205
|
+
libraries and/or headers. Check the mkmf.log file for more details. You may
|
206
|
+
|
207
|
+
need configuration options.
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
Provided configuration options:
|
212
|
+
|
213
|
+
--with-opt-dir
|
214
|
+
|
215
|
+
--without-opt-dir
|
216
|
+
|
217
|
+
--with-opt-include
|
218
|
+
|
219
|
+
--without-opt-include=${opt-dir}/include
|
220
|
+
|
221
|
+
--with-opt-lib
|
222
|
+
|
223
|
+
--without-opt-lib=${opt-dir}/lib
|
224
|
+
|
225
|
+
--with-make-prog
|
226
|
+
|
227
|
+
--without-make-prog
|
228
|
+
|
229
|
+
--srcdir=.
|
230
|
+
|
231
|
+
--curdir
|
232
|
+
|
233
|
+
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/$(RUBY_BASE_NAME)
|
234
|
+
|
235
|
+
--help
|
236
|
+
|
237
|
+
--clean
|
238
|
+
|
239
|
+
--use-system-libraries
|
240
|
+
|
241
|
+
--enable-static
|
242
|
+
|
243
|
+
--disable-static
|
244
|
+
|
245
|
+
--with-zlib-dir
|
246
|
+
|
247
|
+
--without-zlib-dir
|
248
|
+
|
249
|
+
--with-zlib-include
|
250
|
+
|
251
|
+
--without-zlib-include=${zlib-dir}/include
|
252
|
+
|
253
|
+
--with-zlib-lib
|
254
|
+
|
255
|
+
--without-zlib-lib=${zlib-dir}/lib
|
256
|
+
|
257
|
+
--enable-cross-build
|
258
|
+
|
259
|
+
--disable-cross-build
|
260
|
+
|
261
|
+
/Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:402:in `block in execute': Failed to complete compile task (RuntimeError)
|
262
|
+
|
263
|
+
from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:373:in `chdir'
|
264
|
+
|
265
|
+
from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:373:in `execute'
|
266
|
+
|
267
|
+
from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:115:in `compile'
|
268
|
+
|
269
|
+
from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:154:in `cook'
|
270
|
+
|
271
|
+
from extconf.rb:365:in `block (2 levels) in process_recipe'
|
272
|
+
|
273
|
+
from extconf.rb:257:in `block in chdir_for_build'
|
274
|
+
|
275
|
+
from extconf.rb:256:in `chdir'
|
276
|
+
|
277
|
+
from extconf.rb:256:in `chdir_for_build'
|
278
|
+
|
279
|
+
from extconf.rb:364:in `block in process_recipe'
|
280
|
+
|
281
|
+
from extconf.rb:262:in `tap'
|
282
|
+
|
283
|
+
from extconf.rb:262:in `process_recipe'
|
284
|
+
|
285
|
+
from extconf.rb:548:in `<main>'
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
To see why this extension failed to compile, please check the mkmf.log which can be found here:
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
/Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.1/mkmf.log
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
extconf failed, exit code 1
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1 for inspection.
|
302
|
+
|
303
|
+
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.1/gem_make.out
|