teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

解決したのでエラーコードの削除

2017/08/17 07:36

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -2,190 +2,8 @@
2
2
  [参考にしたサイトはここです](http://qiita.com/emadurandal/items/e43c4896be1df60caef0)
3
3
 
4
4
  それで、bundlerのインストールの際errorがでました。
5
- ```ここに言語を入力
5
+ `
6
- Fetching gem metadata from https://rubygems.org/..........
7
- Fetching version metadata from https://rubygems.org/..
8
- Fetching dependency metadata from https://rubygems.org/.
9
- Resolving dependencies...
10
- Using rake 12.0.0
11
- Using concurrent-ruby 1.0.5
12
- Using i18n 0.8.6
13
- Using minitest 5.10.3
14
- Using thread_safe 0.3.6
15
- Using builder 3.2.3
16
- Fetching erubis 2.7.0
17
- Installing erubis 2.7.0
18
- Using mini_portile2 2.2.0
19
- Using rack 2.0.3
20
- Using nio4r 2.1.0
21
- Using websocket-extensions 0.1.2
22
- Using mime-types-data 3.2016.0521
23
- Fetching arel 7.1.4
24
- Installing arel 7.1.4
25
- Using bundler 1.15.3
26
- Using method_source 0.8.2
27
- Using thor 0.19.4
28
- Using tzinfo 1.2.3
29
- Fetching nokogiri 1.8.0
30
- Installing nokogiri 1.8.0 with native extensions
31
- Using rack-test 0.6.3
32
- Using sprockets 3.7.1
33
- Using websocket-driver 0.6.5
34
- Using mime-types 3.1
35
- Fetching activesupport 5.0.4
36
- Installing activesupport 5.0.4
37
- Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
38
6
 
39
- current directory:
40
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.0/ext/nokogiri
41
- /Users/minamigani/.rbenv/versions/2.4.0/bin/ruby -r ./siteconf20170816-66214-d2rl8l.rb extconf.rb
42
- checking if the C compiler accepts ... yes
43
- checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
44
- Building nokogiri using packaged libraries.
45
- Using mini_portile version 2.2.0
46
- checking for iconv.h... yes
47
- checking for gzdopen() in -lz... yes
48
- checking for iconv using --with-iconv-* flags... yes
49
- ************************************************************************
50
- IMPORTANT NOTICE:
51
-
52
- Building Nokogiri with a packaged version of libxml2-2.9.4
53
- with the following patches applied:
54
- - 0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch
55
- - 0002-Fix-XPointer-paths-beginning-with-range-to.patch
56
- - 0003-Disallow-namespace-nodes-in-XPointer-ranges.patch
57
-
58
- Team Nokogiri will keep on doing their best to provide security
59
- updates in a timely manner, but if this is a concern for you and want
60
- to use the system library instead; abort this installation process and
61
- reinstall nokogiri as follows:
62
-
63
- gem install nokogiri -- --use-system-libraries
64
- [--with-xml2-config=/path/to/xml2-config]
65
- [--with-xslt-config=/path/to/xslt-config]
66
-
67
- If you are using Bundler, tell it to use the option:
68
-
69
- bundle config build.nokogiri --use-system-libraries
70
- bundle install
71
-
72
- Note, however, that nokogiri is not fully compatible with arbitrary
73
- versions of libxml2 provided by OS/package vendors.
74
- ************************************************************************
75
- Extracting libxml2-2.9.4.tar.gz into tmp/x86_64-apple-darwin16.6.0/ports/libxml2/2.9.4... OK
76
- Running git apply with
77
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.0/patches/libxml2/0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch...
78
- OK
79
- Running git apply with
80
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.0/patches/libxml2/0002-Fix-XPointer-paths-beginning-with-range-to.patch...
81
- OK
82
- Running git apply with
83
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.0/patches/libxml2/0003-Disallow-namespace-nodes-in-XPointer-ranges.patch...
84
- OK
85
- Running 'configure' for libxml2 2.9.4... OK
86
- Running 'compile' for libxml2 2.9.4... OK
87
- Running 'install' for libxml2 2.9.4... OK
88
- Activating libxml2 2.9.4 (from
89
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.0/ports/x86_64-apple-darwin16.6.0/libxml2/2.9.4)...
90
- ************************************************************************
91
- IMPORTANT NOTICE:
92
-
93
- Building Nokogiri with a packaged version of libxslt-1.1.29
94
- with the following patches applied:
95
- - 0001-Fix-heap-overread-in-xsltFormatNumberConversion.patch
96
- - 0002-Check-for-integer-overflow-in-xsltAddTextString.patch
97
-
98
- Team Nokogiri will keep on doing their best to provide security
99
- updates in a timely manner, but if this is a concern for you and want
100
- to use the system library instead; abort this installation process and
101
- reinstall nokogiri as follows:
102
-
103
- gem install nokogiri -- --use-system-libraries
104
- [--with-xml2-config=/path/to/xml2-config]
105
- [--with-xslt-config=/path/to/xslt-config]
106
-
107
- If you are using Bundler, tell it to use the option:
108
-
109
- bundle config build.nokogiri --use-system-libraries
110
- bundle install
111
- ************************************************************************
112
- Extracting libxslt-1.1.29.tar.gz into tmp/x86_64-apple-darwin16.6.0/ports/libxslt/1.1.29... OK
113
- Running git apply with
114
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.0/patches/libxslt/0001-Fix-heap-overread-in-xsltFormatNumberConversion.patch...
115
- OK
116
- Running git apply with
117
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.0/patches/libxslt/0002-Check-for-integer-overflow-in-xsltAddTextString.patch...
118
- OK
119
- Running 'configure' for libxslt 1.1.29... OK
120
- Running 'compile' for libxslt 1.1.29... OK
121
- Running 'install' for libxslt 1.1.29... OK
122
- Activating libxslt 1.1.29 (from
123
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.0/ports/x86_64-apple-darwin16.6.0/libxslt/1.1.29)...
124
- checking for -llzma... yes
125
- checking for xmlParseDoc() in libxml/parser.h... no
126
- checking for xmlParseDoc() in -lxml2... no
127
- checking for xmlParseDoc() in -llibxml2... no
128
- -----
129
- libxml2 is missing. Please locate mkmf.log to investigate how it is failing.
130
- -----
131
- *** extconf.rb failed ***
132
- Could not create Makefile due to some reason, probably lack of necessary
133
- libraries and/or headers. Check the mkmf.log file for more details. You may
134
- need configuration options.
135
-
136
- Provided configuration options:
137
- --with-opt-dir
138
- --without-opt-dir
139
- --with-opt-include
140
- --without-opt-include=${opt-dir}/include
141
- --with-opt-lib
142
- --without-opt-lib=${opt-dir}/lib
143
- --with-make-prog
144
- --without-make-prog
145
- --srcdir=.
146
- --curdir
147
- --ruby=/Users/minamigani/.rbenv/versions/2.4.0/bin/$(RUBY_BASE_NAME)
148
- --help
149
- --clean
150
- --use-system-libraries
151
- --enable-static
152
- --disable-static
153
- --with-zlib-dir
154
- --without-zlib-dir
155
- --with-zlib-include
156
- --without-zlib-include=${zlib-dir}/include
157
- --with-zlib-lib
158
- --without-zlib-lib=${zlib-dir}/lib
159
- --enable-cross-build
160
- --disable-cross-build
161
- --with-xml2lib
162
- --without-xml2lib
163
- --with-libxml2lib
164
- --without-libxml2lib
165
-
166
- To see why this extension failed to compile, please check the mkmf.log which can be found here:
167
-
168
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/extensions/x86_64-darwin-16/2.4.0-static/nokogiri-1.8.0/mkmf.log
169
-
170
- extconf failed, exit code 1
171
-
172
- Gem files will remain installed in
173
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.0 for inspection.
174
- Results logged to
175
- /Users/minamigani/workspace/rails-projects/vendor/bundle/ruby/2.4.0/extensions/x86_64-darwin-16/2.4.0-static/nokogiri-1.8.0/gem_make.out
176
-
177
- An error occurred while installing nokogiri (1.8.0), and Bundler cannot continue.
178
- Make sure that `gem install nokogiri -v '1.8.0'` succeeds before bundling.
179
-
180
- In Gemfile:
181
- rails was resolved to 5.0.4, which depends on
182
- actioncable was resolved to 5.0.4, which depends on
183
- actionpack was resolved to 5.0.4, which depends on
184
- actionview was resolved to 5.0.4, which depends on
185
- rails-dom-testing was resolved to 2.0.3, which depends on
186
- nokogiri
187
- ```
188
-
189
7
  解決策を教えてください
190
8
 
191
9
  gem install nokogiri -v '1.8.0'