質問編集履歴
3
syuusei
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,7 +60,9 @@
|
|
60
60
|
|
61
61
|
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r
|
62
62
|
|
63
|
-
./siteconf20180522-
|
63
|
+
./siteconf20180522-28434-1sm7ntj.rb extconf.rb --use-system-librariescurrent
|
64
|
+
|
65
|
+
directory:
|
64
66
|
|
65
67
|
checking if the C compiler accepts ... yes
|
66
68
|
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,29 +14,329 @@
|
|
14
14
|
|
15
15
|
### 発生している問題・エラーメッセージ
|
16
16
|
|
17
|
-
|
17
|
+
$bundle install
|
18
18
|
|
19
19
|
```ここに言語を入力
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
21
|
+
i$ bundle install
|
22
|
+
|
23
|
+
Fetching gem metadata from https://rubygems.org/..........
|
24
|
+
|
25
|
+
Fetching gem metadata from https://rubygems.org/.
|
26
|
+
|
27
|
+
Resolving dependencies...
|
28
|
+
|
29
|
+
Using rake 12.3.1
|
30
|
+
|
31
|
+
Using concurrent-ruby 1.0.5
|
32
|
+
|
33
|
+
Using i18n 1.0.1
|
34
|
+
|
35
|
+
Using minitest 5.11.3
|
36
|
+
|
37
|
+
Using thread_safe 0.3.6
|
38
|
+
|
39
|
+
Using tzinfo 1.2.5
|
40
|
+
|
41
|
+
Using activesupport 5.2.0
|
42
|
+
|
43
|
+
Using builder 3.2.3
|
44
|
+
|
45
|
+
Using erubi 1.7.1
|
46
|
+
|
47
|
+
Using mini_portile2 2.3.0
|
48
|
+
|
49
|
+
Fetching nokogiri 1.8.2
|
50
|
+
|
51
|
+
Installing nokogiri 1.8.2 with native extensions
|
52
|
+
|
53
|
+
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
current directory:
|
58
|
+
|
59
|
+
/Users/eri/MyVagrant/MyPro/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.8.2/ext/nokogiri
|
60
|
+
|
61
|
+
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r
|
62
|
+
|
63
|
+
./siteconf20180522-18137-1a51g1a.rb extconf.rb
|
64
|
+
|
65
|
+
checking if the C compiler accepts ... yes
|
66
|
+
|
67
|
+
checking if the C compiler accepts
|
68
|
+
|
69
|
+
-Wno-error=unused-command-line-argument-hard-error-in-future... no
|
70
|
+
|
71
|
+
Building nokogiri using packaged libraries.
|
72
|
+
|
73
|
+
Using mini_portile version 2.3.0
|
74
|
+
|
75
|
+
checking for iconv.h... yes
|
76
|
+
|
77
|
+
checking for gzdopen() in -lz... yes
|
78
|
+
|
79
|
+
checking for iconv... yes
|
80
|
+
|
81
|
+
************************************************************************
|
82
|
+
|
83
|
+
IMPORTANT NOTICE:
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
Building Nokogiri with a packaged version of libxml2-2.9.7.
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
Team Nokogiri will keep on doing their best to provide security
|
92
|
+
|
93
|
+
updates in a timely manner, but if this is a concern for you and want
|
94
|
+
|
95
|
+
to use the system library instead; abort this installation process and
|
96
|
+
|
97
|
+
reinstall nokogiri as follows:
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
gem install nokogiri -- --use-system-libraries
|
102
|
+
|
103
|
+
[--with-xml2-config=/path/to/xml2-config]
|
104
|
+
|
105
|
+
[--with-xslt-config=/path/to/xslt-config]
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
If you are using Bundler, tell it to use the option:
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
bundle config build.nokogiri --use-system-libraries
|
114
|
+
|
115
|
+
bundle install
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
Note, however, that nokogiri is not fully compatible with arbitrary
|
120
|
+
|
121
|
+
versions of libxml2 provided by OS/package vendors.
|
122
|
+
|
123
|
+
************************************************************************
|
124
|
+
|
125
|
+
Extracting libxml2-2.9.7.tar.gz into
|
126
|
+
|
127
|
+
tmp/x86_64-apple-darwin17/ports/libxml2/2.9.7... OK
|
128
|
+
|
129
|
+
Running 'configure' for libxml2 2.9.7... OK
|
130
|
+
|
131
|
+
Running 'compile' for libxml2 2.9.7... ERROR, review
|
132
|
+
|
133
|
+
'/Users/eri/MyVagrant/MyPro/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.8.2/ext/nokogiri/tmp/x86_64-apple-darwin17/ports/libxml2/2.9.7/compile.log'
|
134
|
+
|
135
|
+
to see what happened. Last lines are:
|
136
|
+
|
137
|
+
========================================================================
|
138
|
+
|
139
|
+
CCLD libxml2.la
|
140
|
+
|
141
|
+
CC testdso.lo
|
142
|
+
|
143
|
+
CCLD testdso.la
|
144
|
+
|
145
|
+
CC xmllint.o
|
146
|
+
|
147
|
+
CCLD xmllint
|
148
|
+
|
149
|
+
ld: warning: ignoring file /usr/local/Cellar/xz/5.2.3/lib/liblzma.dylib, file
|
150
|
+
|
151
|
+
was built for x86_64 which is not the architecture being linked (i386):
|
152
|
+
|
153
|
+
/usr/local/Cellar/xz/5.2.3/lib/liblzma.dylib
|
154
|
+
|
155
|
+
Undefined symbols for architecture i386:
|
156
|
+
|
157
|
+
"_lzma_auto_decoder", referenced from:
|
158
|
+
|
159
|
+
_xz_head in libxml2.a(xzlib.o)
|
160
|
+
|
161
|
+
"_lzma_code", referenced from:
|
162
|
+
|
163
|
+
_xz_decomp in libxml2.a(xzlib.o)
|
164
|
+
|
165
|
+
"_lzma_end", referenced from:
|
166
|
+
|
167
|
+
___libxml2_xzclose in libxml2.a(xzlib.o)
|
168
|
+
|
169
|
+
"_lzma_properties_decode", referenced from:
|
170
|
+
|
171
|
+
_is_format_lzma in libxml2.a(xzlib.o)
|
172
|
+
|
173
|
+
ld: symbol(s) not found for architecture i386
|
174
|
+
|
175
|
+
clang: error: linker command failed with exit code 1 (use -v to see invocation)
|
176
|
+
|
177
|
+
make[2]: *** [xmllint] Error 1
|
178
|
+
|
179
|
+
make[1]: *** [all-recursive] Error 1
|
180
|
+
|
181
|
+
make: *** [all] Error 2
|
182
|
+
|
183
|
+
========================================================================
|
184
|
+
|
185
|
+
*** extconf.rb failed ***
|
186
|
+
|
187
|
+
Could not create Makefile due to some reason, probably lack of necessary
|
188
|
+
|
189
|
+
libraries and/or headers. Check the mkmf.log file for more details. You may
|
190
|
+
|
191
|
+
need configuration options.
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
Provided configuration options:
|
196
|
+
|
197
|
+
--with-opt-dir
|
198
|
+
|
199
|
+
--without-opt-dir
|
200
|
+
|
201
|
+
--with-opt-include
|
202
|
+
|
203
|
+
--without-opt-include=${opt-dir}/include
|
204
|
+
|
205
|
+
--with-opt-lib
|
206
|
+
|
207
|
+
--without-opt-lib=${opt-dir}/lib
|
208
|
+
|
209
|
+
--with-make-prog
|
210
|
+
|
211
|
+
--without-make-prog
|
212
|
+
|
213
|
+
--srcdir=.
|
214
|
+
|
215
|
+
--curdir
|
216
|
+
|
217
|
+
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/$(RUBY_BASE_NAME)
|
218
|
+
|
219
|
+
--help
|
220
|
+
|
221
|
+
--clean
|
222
|
+
|
223
|
+
--use-system-libraries
|
224
|
+
|
225
|
+
--enable-static
|
226
|
+
|
227
|
+
--disable-static
|
228
|
+
|
229
|
+
--with-zlib-dir
|
230
|
+
|
231
|
+
--without-zlib-dir
|
232
|
+
|
233
|
+
--with-zlib-include
|
234
|
+
|
235
|
+
--without-zlib-include=${zlib-dir}/include
|
236
|
+
|
237
|
+
--with-zlib-lib
|
238
|
+
|
239
|
+
--without-zlib-lib=${zlib-dir}/lib
|
240
|
+
|
241
|
+
--enable-cross-build
|
242
|
+
|
243
|
+
--disable-cross-build
|
244
|
+
|
245
|
+
/Users/eri/MyVagrant/MyPro/vendor/bundle/ruby/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:402:in
|
246
|
+
|
247
|
+
`block in execute': Failed to complete compile task (RuntimeError)
|
248
|
+
|
249
|
+
from
|
250
|
+
|
251
|
+
/Users/eri/MyVagrant/MyPro/vendor/bundle/ruby/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:373:in
|
252
|
+
|
253
|
+
`chdir'
|
254
|
+
|
255
|
+
from
|
256
|
+
|
257
|
+
/Users/eri/MyVagrant/MyPro/vendor/bundle/ruby/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:373:in
|
258
|
+
|
259
|
+
`execute'
|
260
|
+
|
261
|
+
from
|
262
|
+
|
263
|
+
/Users/eri/MyVagrant/MyPro/vendor/bundle/ruby/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:115:in
|
264
|
+
|
265
|
+
`compile'
|
266
|
+
|
267
|
+
from
|
268
|
+
|
269
|
+
/Users/eri/MyVagrant/MyPro/vendor/bundle/ruby/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:154:in
|
270
|
+
|
271
|
+
`cook'
|
272
|
+
|
273
|
+
from extconf.rb:365:in `block (2 levels) in process_recipe'
|
274
|
+
|
275
|
+
from extconf.rb:257:in `block in chdir_for_build'
|
276
|
+
|
277
|
+
from extconf.rb:256:in `chdir'
|
278
|
+
|
279
|
+
from extconf.rb:256:in `chdir_for_build'
|
280
|
+
|
281
|
+
from extconf.rb:364:in `block in process_recipe'
|
282
|
+
|
283
|
+
from extconf.rb:262:in `tap'
|
284
|
+
|
285
|
+
from extconf.rb:262:in `process_recipe'
|
286
|
+
|
287
|
+
from extconf.rb:551:in `<main>'
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
To see why this extension failed to compile, please check the mkmf.log which can
|
292
|
+
|
293
|
+
be found here:
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
/Users/eri/MyVagrant/MyPro/vendor/bundle/ruby/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.2/mkmf.log
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
extconf failed, exit code 1
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
Gem files will remain installed in
|
306
|
+
|
307
|
+
/Users/eri/MyVagrant/MyPro/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.8.2 for
|
308
|
+
|
309
|
+
inspection.
|
310
|
+
|
311
|
+
Results logged to
|
312
|
+
|
313
|
+
/Users/eri/MyVagrant/MyPro/vendor/bundle/ruby/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.2/gem_make.out
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
An error occurred while installing nokogiri (1.8.2), and Bundler cannot
|
318
|
+
|
319
|
+
continue.
|
320
|
+
|
321
|
+
Make sure that `gem install nokogiri -v '1.8.2' --source
|
322
|
+
|
323
|
+
'https://rubygems.org/'` succeeds before bundling.
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
In Gemfile:
|
328
|
+
|
329
|
+
rails was resolved to 5.2.0, which depends on
|
330
|
+
|
331
|
+
actioncable was resolved to 5.2.0, which depends on
|
332
|
+
|
333
|
+
actionpack was resolved to 5.2.0, which depends on
|
334
|
+
|
335
|
+
actionview was resolved to 5.2.0, which depends on
|
336
|
+
|
337
|
+
rails-dom-testing was resolved to 2.0.3, which depends on
|
338
|
+
|
339
|
+
nokogiri
|
40
340
|
|
41
341
|
```
|
42
342
|
|
@@ -86,156 +386,6 @@
|
|
86
386
|
|
87
387
|
|
88
388
|
|
89
|
-
Vagrantfileの記述です。
|
90
|
-
|
91
|
-
```ここに言語を入力
|
92
|
-
|
93
|
-
# -*- mode: ruby -*-
|
94
|
-
|
95
|
-
# vi: set ft=ruby :
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
100
|
-
|
101
|
-
# configures the configuration version (we support older styles for
|
102
|
-
|
103
|
-
# backwards compatibility). Please don't change it unless you know what
|
104
|
-
|
105
|
-
# you're doing.
|
106
|
-
|
107
|
-
Vagrant.configure("2") do |config|
|
108
|
-
|
109
|
-
# The most common configuration options are documented and commented below.
|
110
|
-
|
111
|
-
# For a complete reference, please see the online documentation at
|
112
|
-
|
113
|
-
# https://docs.vagrantup.com.
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
# Every Vagrant development environment requires a box. You can search for
|
118
|
-
|
119
|
-
# boxes at https://vagrantcloud.com/search.
|
120
|
-
|
121
|
-
config.vm.box = "centos7.1"
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
# Disable automatic box update checking. If you disable this, then
|
128
|
-
|
129
|
-
# boxes will only be checked for updates when the user runs
|
130
|
-
|
131
|
-
# `vagrant box outdated`. This is not recommended.
|
132
|
-
|
133
|
-
# config.vm.box_check_update = false
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
# Create a forwarded port mapping which allows access to a specific port
|
138
|
-
|
139
|
-
# within the machine from a port on the host machine. In the example below,
|
140
|
-
|
141
|
-
# accessing "localhost:8080" will access port 80 on the guest machine.
|
142
|
-
|
143
|
-
# NOTE: This will enable public access to the opened port
|
144
|
-
|
145
|
-
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
146
|
-
|
147
|
-
config.vm.network :"forwarded_port", guest: 8000, host: 8000
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
# Create a forwarded port mapping which allows access to a specific port
|
152
|
-
|
153
|
-
# within the machine from a port on the host machine and only allow access
|
154
|
-
|
155
|
-
# via 127.0.0.1 to disable public access
|
156
|
-
|
157
|
-
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
# Create a private network, which allows host-only access to the machine
|
162
|
-
|
163
|
-
# using a specific IP.
|
164
|
-
|
165
|
-
# config.vm.network "private_network", ip: "192.168.33.11"
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
# Create a public network, which generally matched to bridged network.
|
170
|
-
|
171
|
-
# Bridged networks make the machine appear as another physical device on
|
172
|
-
|
173
|
-
# your network.
|
174
|
-
|
175
|
-
# config.vm.network "public_network"
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
# Share an additional folder to the guest VM. The first argument is
|
180
|
-
|
181
|
-
# the path on the host to the actual folder. The second argument is
|
182
|
-
|
183
|
-
# the path on the guest to mount the folder. And the optional third
|
184
|
-
|
185
|
-
# argument is a set of non-required options.
|
186
|
-
|
187
|
-
# config.vm.synced_folder "../data", "/vagrant_data"
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
# Provider-specific configuration so you can fine-tune various
|
192
|
-
|
193
|
-
# backing providers for Vagrant. These expose provider-specific options.
|
194
|
-
|
195
|
-
# Example for VirtualBox:
|
196
|
-
|
197
|
-
#
|
198
|
-
|
199
|
-
# config.vm.provider "virtualbox" do |vb|
|
200
|
-
|
201
|
-
# # Display the VirtualBox GUI when booting the machine
|
202
|
-
|
203
|
-
# vb.gui = true
|
204
|
-
|
205
|
-
#
|
206
|
-
|
207
|
-
# # Customize the amount of memory on the VM:
|
208
|
-
|
209
|
-
# vb.memory = "1024"
|
210
|
-
|
211
|
-
# end
|
212
|
-
|
213
|
-
#
|
214
|
-
|
215
|
-
# View the documentation for the provider you are using for more
|
216
|
-
|
217
|
-
# information on available options.
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
# Enable provisioning with a shell script. Additional provisioners such as
|
222
|
-
|
223
|
-
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
224
|
-
|
225
|
-
# documentation for more information about their specific syntax and use.
|
226
|
-
|
227
|
-
# config.vm.provision "shell", inline: <<-SHELL
|
228
|
-
|
229
|
-
# apt-get update
|
230
|
-
|
231
|
-
# apt-get install -y apache2
|
232
|
-
|
233
|
-
# SHELL
|
234
|
-
|
235
|
-
end
|
236
|
-
|
237
|
-
```
|
238
|
-
|
239
389
|
|
240
390
|
|
241
391
|
|
1
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -254,6 +254,8 @@
|
|
254
254
|
|
255
255
|
### 試したこと
|
256
256
|
|
257
|
+
$rails s -b 0.0.0.0
|
258
|
+
|
257
259
|
下記サイト様を参考
|
258
260
|
|
259
261
|
https://techacademy.jp/magazine/7197
|