質問編集履歴

2

追加

2016/11/26 18:52

投稿

tomato0
tomato0

スコア13

test CHANGED
File without changes
test CHANGED
@@ -146,4 +146,116 @@
146
146
 
147
147
  ```
148
148
 
149
+ Building native extensions. This could take a while...
150
+
151
+ ERROR: Error installing sqlite3:
152
+
153
+ ERROR: Failed to build gem native extension.
154
+
155
+
156
+
157
+ current directory: /Users/Takahiro/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3
158
+
159
+ /Users/Takahiro/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20161127-41731-1pc2nfg.rb extconf.rb
160
+
161
+ checking for sqlite3.h... yes
162
+
163
+ checking for sqlite3_libversion_number() in -lsqlite3... yes
164
+
165
+ checking for rb_proc_arity()... yes
166
+
167
+ checking for sqlite3_initialize()... yes
168
+
169
+ checking for sqlite3_backup_init()... yes
170
+
171
+ checking for sqlite3_column_database_name()... no
172
+
173
+ checking for sqlite3_enable_load_extension()... no
174
+
175
+ checking for sqlite3_load_extension()... no
176
+
177
+ checking for sqlite3_open_v2()... yes
178
+
179
+ checking for sqlite3_prepare_v2()... yes
180
+
181
+ checking for sqlite3_int64 in sqlite3.h... yes
182
+
183
+ checking for sqlite3_uint64 in sqlite3.h... yes
184
+
185
+ creating Makefile
186
+
187
+
188
+
189
+ To see why this extension failed to compile, please check the mkmf.log which can be found here:
190
+
191
+
192
+
193
+ /Users/Takahiro/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/sqlite3-1.3.8/mkmf.log
194
+
195
+
196
+
197
+ current directory: /Users/Takahiro/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3
198
+
199
+ make "DESTDIR=" clean
200
+
201
+
202
+
203
+ current directory: /Users/Takahiro/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3
204
+
205
+ make "DESTDIR="
206
+
207
+ compiling backup.c
208
+
209
+ compiling database.c
210
+
211
+ compiling exception.c
212
+
213
+ compiling sqlite3.c
214
+
215
+ compiling statement.c
216
+
217
+ statement.c:261:11: warning: implicit declaration of function 'RBIGNUM' is invalid in C99 [-Wimplicit-function-declaration]
218
+
219
+ if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
220
+
221
+ ^
222
+
223
+ ./sqlite3_ruby.h:16:24: note: expanded from macro 'RBIGNUM_LEN'
224
+
225
+ #define RBIGNUM_LEN(x) RBIGNUM(x)->len
226
+
227
+ ^
228
+
229
+ statement.c:261:11: error: member reference type 'int' is not a pointer
230
+
231
+ if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
232
+
233
+ ^~~~~~~~~~~~~~~~~~
234
+
235
+ ./sqlite3_ruby.h:16:36: note: expanded from macro 'RBIGNUM_LEN'
236
+
237
+ #define RBIGNUM_LEN(x) RBIGNUM(x)->len
238
+
239
+ ~~~~~~~~~~ ^
240
+
241
+ statement.c:261:32: error: use of undeclared identifier 'SIZEOF_BDIGITS'
242
+
243
+ if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
244
+
245
+ ^
246
+
247
+ 1 warning and 2 errors generated.
248
+
249
+ make: *** [statement.o] Error 1
250
+
251
+
252
+
253
+ make failed, exit code 2
254
+
255
+
256
+
257
+ Gem files will remain installed in /Users/Takahiro/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8 for inspection.
258
+
259
+ Results logged to /Users/Takahiro/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/sqlite3-1.3.8/gem_make.out
260
+
149
- ```
261
+ ```

1

追加

2016/11/26 18:52

投稿

tomato0
tomato0

スコア13

test CHANGED
File without changes
test CHANGED
@@ -1,10 +1,12 @@
1
- 与えられたGemfileからbundle installをしたところ以下のエラーメッセージが発生しました。
1
+ 与えられたGemfileからbundle installをしたところ以下のエラーメッセージ1が発生しました。
2
+
3
+ エラーメッセージ1からgem install sqlite3 -v '1.3.8'するよう書いてあるためgem install sqlite3 -v '1.3.8'を行ったところエラーメッセージ2になりました。
2
4
 
3
5
  知識不足で申し訳ないのですが、解決策をお教えいただければ幸いです。
4
6
 
5
7
 
6
8
 
7
- ###発生している問題・エラーメッセージ
9
+ ###発生している問題・エラーメッセージ1
8
10
 
9
11
 
10
12
 
@@ -137,3 +139,11 @@
137
139
  Make sure that `gem install sqlite3 -v '1.3.8'` succeeds before bundling.
138
140
 
139
141
  ```
142
+
143
+
144
+
145
+ ###発生している問題・エラーメッセージ2
146
+
147
+ ```
148
+
149
+ ```