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

質問編集履歴

2

追加

2016/11/26 18:52

投稿

tomato0
tomato0

スコア13

title CHANGED
File without changes
body CHANGED
@@ -72,4 +72,60 @@
72
72
 
73
73
  ###発生している問題・エラーメッセージ2
74
74
  ```
75
+ Building native extensions. This could take a while...
76
+ ERROR: Error installing sqlite3:
77
+ ERROR: Failed to build gem native extension.
78
+
79
+ current directory: /Users/Takahiro/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3
80
+ /Users/Takahiro/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20161127-41731-1pc2nfg.rb extconf.rb
81
+ checking for sqlite3.h... yes
82
+ checking for sqlite3_libversion_number() in -lsqlite3... yes
83
+ checking for rb_proc_arity()... yes
84
+ checking for sqlite3_initialize()... yes
85
+ checking for sqlite3_backup_init()... yes
86
+ checking for sqlite3_column_database_name()... no
87
+ checking for sqlite3_enable_load_extension()... no
88
+ checking for sqlite3_load_extension()... no
89
+ checking for sqlite3_open_v2()... yes
90
+ checking for sqlite3_prepare_v2()... yes
91
+ checking for sqlite3_int64 in sqlite3.h... yes
92
+ checking for sqlite3_uint64 in sqlite3.h... yes
93
+ creating Makefile
94
+
95
+ To see why this extension failed to compile, please check the mkmf.log which can be found here:
96
+
97
+ /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
98
+
99
+ current directory: /Users/Takahiro/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3
100
+ make "DESTDIR=" clean
101
+
102
+ current directory: /Users/Takahiro/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3
103
+ make "DESTDIR="
104
+ compiling backup.c
105
+ compiling database.c
106
+ compiling exception.c
107
+ compiling sqlite3.c
108
+ compiling statement.c
109
+ statement.c:261:11: warning: implicit declaration of function 'RBIGNUM' is invalid in C99 [-Wimplicit-function-declaration]
110
+ if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
111
+ ^
112
+ ./sqlite3_ruby.h:16:24: note: expanded from macro 'RBIGNUM_LEN'
113
+ #define RBIGNUM_LEN(x) RBIGNUM(x)->len
114
+ ^
115
+ statement.c:261:11: error: member reference type 'int' is not a pointer
116
+ if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
117
+ ^~~~~~~~~~~~~~~~~~
118
+ ./sqlite3_ruby.h:16:36: note: expanded from macro 'RBIGNUM_LEN'
119
+ #define RBIGNUM_LEN(x) RBIGNUM(x)->len
120
+ ~~~~~~~~~~ ^
121
+ statement.c:261:32: error: use of undeclared identifier 'SIZEOF_BDIGITS'
122
+ if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
123
+ ^
124
+ 1 warning and 2 errors generated.
125
+ make: *** [statement.o] Error 1
126
+
127
+ make failed, exit code 2
128
+
129
+ 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.
130
+ 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
75
131
  ```

1

追加

2016/11/26 18:52

投稿

tomato0
tomato0

スコア13

title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,8 @@
1
- 与えられたGemfileからbundle installをしたところ以下のエラーメッセージが発生しました。
1
+ 与えられたGemfileからbundle installをしたところ以下のエラーメッセージ1が発生しました。
2
+ エラーメッセージ1からgem install sqlite3 -v '1.3.8'するよう書いてあるためgem install sqlite3 -v '1.3.8'を行ったところエラーメッセージ2になりました。
2
3
  知識不足で申し訳ないのですが、解決策をお教えいただければ幸いです。
3
4
 
4
- ###発生している問題・エラーメッセージ
5
+ ###発生している問題・エラーメッセージ1
5
6
 
6
7
  ```
7
8
  Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
@@ -67,4 +68,8 @@
67
68
 
68
69
  An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue.
69
70
  Make sure that `gem install sqlite3 -v '1.3.8'` succeeds before bundling.
71
+ ```
72
+
73
+ ###発生している問題・エラーメッセージ2
74
+ ```
70
75
  ```