質問編集履歴

4

解決したので解決までのルートを記載

2020/09/19 21:58

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -207,3 +207,35 @@
207
207
  Bundler version 1.17.2
208
208
 
209
209
  ここからどうすれば良いか申し訳ありませんがご教授お願いいたします。
210
+
211
+
212
+
213
+ 追加
214
+
215
+ 解決した方法
216
+
217
+
218
+
219
+ gem updateを実行
220
+
221
+
222
+
223
+ xcodeをインストール(インストール済みでした)
224
+
225
+
226
+
227
+ bundle installを実行 サクセス!
228
+
229
+
230
+
231
+ rails sを実行すると 何やらwarning: already initialized constant Forwardable::VERSION〜〜〜〜〜〜〜とか出てきたが https://qiita.com/zQmjRAb73seN5RM/items/ecb9e19ee8f3e9af6018 
232
+
233
+ を参考にし解決
234
+
235
+
236
+
237
+ 再び rails sを実行すると JavaScriptの何かでエラーが出たためnode.jsをインストール
238
+
239
+
240
+
241
+ rails s 成功 localhost:3000で 起動確認 でした!!ありがとうございます!!

3

Bundler version 1.17.2を追記しました

2020/09/19 21:58

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -204,4 +204,6 @@
204
204
 
205
205
  SQLite3 3.28.0
206
206
 
207
+ Bundler version 1.17.2
208
+
207
209
  ここからどうすれば良いか申し訳ありませんがご教授お願いいたします。

2

bundle install実行時のエラーを記載しました

2020/09/19 20:23

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -44,6 +44,158 @@
44
44
 
45
45
 
46
46
 
47
+ 下記bundle install実行時のエラーです
48
+
49
+
50
+
51
+ ```
52
+
53
+ current directory:
54
+
55
+ /private/var/folders/_f/__tph5z51ksdz6gc_jkvmq5c0000gn/T/bundler20200920-73331-awoxiynokogiri-1.10.10/gems/nokogiri-1.10.10/ext/nokogiri
56
+
57
+ /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I
58
+
59
+ /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r
60
+
61
+ ./siteconf20200920-73331-12opd1p.rb extconf.rb --use-system-libraries
62
+
63
+ checking if the C compiler accepts -I
64
+
65
+ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2... ***
66
+
67
+ extconf.rb failed ***
68
+
69
+ Could not create Makefile due to some reason, probably lack of necessary
70
+
71
+ libraries and/or headers. Check the mkmf.log file for more details. You may
72
+
73
+ need configuration options.
74
+
75
+
76
+
77
+ Provided configuration options:
78
+
79
+ --with-opt-dir
80
+
81
+ --without-opt-dir
82
+
83
+ --with-opt-include
84
+
85
+ --without-opt-include=${opt-dir}/include
86
+
87
+ --with-opt-lib
88
+
89
+ --without-opt-lib=${opt-dir}/lib
90
+
91
+ --with-make-prog
92
+
93
+ --without-make-prog
94
+
95
+ --srcdir=.
96
+
97
+ --curdir
98
+
99
+ --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBY_BASE_NAME)
100
+
101
+ --help
102
+
103
+ --clean
104
+
105
+ /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in
106
+
107
+ `try_do': The compiler failed to generate an executable file. (RuntimeError)
108
+
109
+ You have to install development tools first.
110
+
111
+ from
112
+
113
+ /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in
114
+
115
+ `block in try_compile'
116
+
117
+ from
118
+
119
+ /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:532:in
120
+
121
+ `with_werror'
122
+
123
+ from
124
+
125
+ /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in
126
+
127
+ `try_compile'
128
+
129
+ from extconf.rb:138:in `nokogiri_try_compile'
130
+
131
+ from extconf.rb:162:in `block in add_cflags'
132
+
133
+ from
134
+
135
+ /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:643:in
136
+
137
+ `with_cflags'
138
+
139
+ from extconf.rb:161:in `add_cflags'
140
+
141
+ from extconf.rb:416:in `<main>'
142
+
143
+
144
+
145
+ To see why this extension failed to compile, please check the mkmf.log which can
146
+
147
+ be found here:
148
+
149
+
150
+
151
+ /var/folders/_f/__tph5z51ksdz6gc_jkvmq5c0000gn/T/bundler20200920-73331-awoxiynokogiri-1.10.10/extensions/universal-darwin-19/2.6.0/nokogiri-1.10.10/mkmf.log
152
+
153
+
154
+
155
+ extconf failed, exit code 1
156
+
157
+
158
+
159
+ Gem files will remain installed in
160
+
161
+ /var/folders/_f/__tph5z51ksdz6gc_jkvmq5c0000gn/T/bundler20200920-73331-awoxiynokogiri-1.10.10/gems/nokogiri-1.10.10
162
+
163
+ for inspection.
164
+
165
+ Results logged to
166
+
167
+ /var/folders/_f/__tph5z51ksdz6gc_jkvmq5c0000gn/T/bundler20200920-73331-awoxiynokogiri-1.10.10/extensions/universal-darwin-19/2.6.0/nokogiri-1.10.10/gem_make.out
168
+
169
+
170
+
171
+ An error occurred while installing nokogiri (1.10.10), and Bundler
172
+
173
+ cannot continue.
174
+
175
+ Make sure that `gem install nokogiri -v '1.10.10' --source
176
+
177
+ 'https://rubygems.org/'` succeeds before bundling.
178
+
179
+
180
+
181
+ In Gemfile:
182
+
183
+ rails was resolved to 5.1.7, which depends on
184
+
185
+ actioncable was resolved to 5.1.7, which depends on
186
+
187
+ actionpack was resolved to 5.1.7, which depends on
188
+
189
+ actionview was resolved to 5.1.7, which depends on
190
+
191
+ rails-dom-testing was resolved to 2.0.3, which depends on
192
+
193
+ nokogiri
194
+
195
+
196
+
197
+ ```
198
+
47
199
  各バージョンは以下の通りです。
48
200
 
49
201
  rubyはruby 2.6.3

1

SQLite3のバージョンを記入しました

2020/09/19 20:20

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -50,6 +50,6 @@
50
50
 
51
51
  rails はRails 5.1.3
52
52
 
53
-
53
+ SQLite3 3.28.0
54
54
 
55
55
  ここからどうすれば良いか申し訳ありませんがご教授お願いいたします。