質問編集履歴
4
解決したので解決までのルートを記載
title
CHANGED
File without changes
|
body
CHANGED
@@ -102,4 +102,20 @@
|
|
102
102
|
rails はRails 5.1.3
|
103
103
|
SQLite3 3.28.0
|
104
104
|
Bundler version 1.17.2
|
105
|
-
ここからどうすれば良いか申し訳ありませんがご教授お願いいたします。
|
105
|
+
ここからどうすれば良いか申し訳ありませんがご教授お願いいたします。
|
106
|
+
|
107
|
+
追加
|
108
|
+
解決した方法
|
109
|
+
|
110
|
+
gem updateを実行
|
111
|
+
↓
|
112
|
+
xcodeをインストール(インストール済みでした)
|
113
|
+
↓
|
114
|
+
bundle installを実行 サクセス!
|
115
|
+
↓
|
116
|
+
rails sを実行すると 何やらwarning: already initialized constant Forwardable::VERSION〜〜〜〜〜〜〜とか出てきたが https://qiita.com/zQmjRAb73seN5RM/items/ecb9e19ee8f3e9af6018
|
117
|
+
を参考にし解決
|
118
|
+
↓
|
119
|
+
再び rails sを実行すると JavaScriptの何かでエラーが出たためnode.jsをインストール
|
120
|
+
↓
|
121
|
+
rails s 成功 localhost:3000で 起動確認 でした!!ありがとうございます!!
|
3
Bundler version 1.17.2を追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -101,4 +101,5 @@
|
|
101
101
|
rubyはruby 2.6.3
|
102
102
|
rails はRails 5.1.3
|
103
103
|
SQLite3 3.28.0
|
104
|
+
Bundler version 1.17.2
|
104
105
|
ここからどうすれば良いか申し訳ありませんがご教授お願いいたします。
|
2
bundle install実行時のエラーを記載しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -21,6 +21,82 @@
|
|
21
21
|
1 gem installed
|
22
22
|
とノコギリがインストールできたっぽいので再度bundle installをしてみるとまた上記の※2と同じエラーが出てグルグルしています。
|
23
23
|
|
24
|
+
下記bundle install実行時のエラーです
|
25
|
+
|
26
|
+
```
|
27
|
+
current directory:
|
28
|
+
/private/var/folders/_f/__tph5z51ksdz6gc_jkvmq5c0000gn/T/bundler20200920-73331-awoxiynokogiri-1.10.10/gems/nokogiri-1.10.10/ext/nokogiri
|
29
|
+
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I
|
30
|
+
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r
|
31
|
+
./siteconf20200920-73331-12opd1p.rb extconf.rb --use-system-libraries
|
32
|
+
checking if the C compiler accepts -I
|
33
|
+
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2... ***
|
34
|
+
extconf.rb failed ***
|
35
|
+
Could not create Makefile due to some reason, probably lack of necessary
|
36
|
+
libraries and/or headers. Check the mkmf.log file for more details. You may
|
37
|
+
need configuration options.
|
38
|
+
|
39
|
+
Provided configuration options:
|
40
|
+
--with-opt-dir
|
41
|
+
--without-opt-dir
|
42
|
+
--with-opt-include
|
43
|
+
--without-opt-include=${opt-dir}/include
|
44
|
+
--with-opt-lib
|
45
|
+
--without-opt-lib=${opt-dir}/lib
|
46
|
+
--with-make-prog
|
47
|
+
--without-make-prog
|
48
|
+
--srcdir=.
|
49
|
+
--curdir
|
50
|
+
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBY_BASE_NAME)
|
51
|
+
--help
|
52
|
+
--clean
|
53
|
+
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in
|
54
|
+
`try_do': The compiler failed to generate an executable file. (RuntimeError)
|
55
|
+
You have to install development tools first.
|
56
|
+
from
|
57
|
+
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in
|
58
|
+
`block in try_compile'
|
59
|
+
from
|
60
|
+
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:532:in
|
61
|
+
`with_werror'
|
62
|
+
from
|
63
|
+
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in
|
64
|
+
`try_compile'
|
65
|
+
from extconf.rb:138:in `nokogiri_try_compile'
|
66
|
+
from extconf.rb:162:in `block in add_cflags'
|
67
|
+
from
|
68
|
+
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:643:in
|
69
|
+
`with_cflags'
|
70
|
+
from extconf.rb:161:in `add_cflags'
|
71
|
+
from extconf.rb:416:in `<main>'
|
72
|
+
|
73
|
+
To see why this extension failed to compile, please check the mkmf.log which can
|
74
|
+
be found here:
|
75
|
+
|
76
|
+
/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
|
77
|
+
|
78
|
+
extconf failed, exit code 1
|
79
|
+
|
80
|
+
Gem files will remain installed in
|
81
|
+
/var/folders/_f/__tph5z51ksdz6gc_jkvmq5c0000gn/T/bundler20200920-73331-awoxiynokogiri-1.10.10/gems/nokogiri-1.10.10
|
82
|
+
for inspection.
|
83
|
+
Results logged to
|
84
|
+
/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
|
85
|
+
|
86
|
+
An error occurred while installing nokogiri (1.10.10), and Bundler
|
87
|
+
cannot continue.
|
88
|
+
Make sure that `gem install nokogiri -v '1.10.10' --source
|
89
|
+
'https://rubygems.org/'` succeeds before bundling.
|
90
|
+
|
91
|
+
In Gemfile:
|
92
|
+
rails was resolved to 5.1.7, which depends on
|
93
|
+
actioncable was resolved to 5.1.7, which depends on
|
94
|
+
actionpack was resolved to 5.1.7, which depends on
|
95
|
+
actionview was resolved to 5.1.7, which depends on
|
96
|
+
rails-dom-testing was resolved to 2.0.3, which depends on
|
97
|
+
nokogiri
|
98
|
+
|
99
|
+
```
|
24
100
|
各バージョンは以下の通りです。
|
25
101
|
rubyはruby 2.6.3
|
26
102
|
rails はRails 5.1.3
|
1
SQLite3のバージョンを記入しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -24,5 +24,5 @@
|
|
24
24
|
各バージョンは以下の通りです。
|
25
25
|
rubyはruby 2.6.3
|
26
26
|
rails はRails 5.1.3
|
27
|
-
|
27
|
+
SQLite3 3.28.0
|
28
28
|
ここからどうすれば良いか申し訳ありませんがご教授お願いいたします。
|