質問編集履歴
3
考えられる原因をさらに考えてみました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,160 +36,7 @@
|
|
36
36
|
need configuration options.
|
37
37
|
|
38
38
|
Provided configuration options:
|
39
|
-
--with-opt-dir
|
40
|
-
--without-opt-dir
|
41
|
-
--with-opt-include
|
42
|
-
--without-opt-include=${opt-dir}/include
|
43
|
-
--with-opt-lib
|
44
|
-
--without-opt-lib=${opt-dir}/lib
|
45
|
-
--with-make-prog
|
46
|
-
--without-make-prog
|
47
|
-
--srcdir=.
|
48
|
-
|
39
|
+
~~~略~~~
|
49
|
-
--ruby=/Users/****/.rbenv/versions/2.6.5/bin/$(RUBY_BASE_NAME)
|
50
|
-
--enable-shared
|
51
|
-
--with-tk-old-extconf
|
52
|
-
--without-tk-old-extconf
|
53
|
-
--with-tk-old-extconf
|
54
|
-
--without-tk-old-extconf
|
55
|
-
--with-ActiveTcl
|
56
|
-
--without-ActiveTcl
|
57
|
-
--with-tk-shlib-search-path
|
58
|
-
--without-tk-shlib-search-path
|
59
|
-
--with-tcltkversion
|
60
|
-
--without-tcltkversion
|
61
|
-
--with-tcl-build-dir
|
62
|
-
--without-tcl-build-dir
|
63
|
-
--with-tk-build-dir
|
64
|
-
--without-tk-build-dir
|
65
|
-
--with-tcl-config
|
66
|
-
--without-tcl-config
|
67
|
-
--with-tk-config
|
68
|
-
--without-tk-config
|
69
|
-
--with-tclConfig-dir
|
70
|
-
--without-tclConfig-dir
|
71
|
-
--with-tkConfig-dir
|
72
|
-
--without-tkConfig-dir
|
73
|
-
--with-tclConfig-file
|
74
|
-
--without-tclConfig-file
|
75
|
-
--with-tkConfig-file
|
76
|
-
--without-tkConfig-file
|
77
|
-
--with-tcllib
|
78
|
-
--without-tcllib
|
79
|
-
--with-tklib
|
80
|
-
--without-tklib
|
81
|
-
--with-tcl-dir
|
82
|
-
--without-tcl-dir
|
83
|
-
--with-tk-dir
|
84
|
-
--without-tk-dir
|
85
|
-
--with-tcl-include
|
86
|
-
--without-tcl-include
|
87
|
-
--with-tk-include
|
88
|
-
--without-tk-include
|
89
|
-
--with-tcl-lib
|
90
|
-
--without-tcl-lib
|
91
|
-
--with-tk-lib
|
92
|
-
--without-tk-lib
|
93
|
-
--with-tcltk-framework
|
94
|
-
--without-tcltk-framework
|
95
|
-
--with-tcl-framework-dir
|
96
|
-
--without-tcl-framework-dir
|
97
|
-
--with-tk-framework-dir
|
98
|
-
--without-tk-framework-dir
|
99
|
-
--with-tcl-framework-header
|
100
|
-
--without-tcl-framework-header
|
101
|
-
--with-tk-framework-header
|
102
|
-
--without-tk-framework-header
|
103
|
-
--with-X11
|
104
|
-
--without-X11
|
105
|
-
--with-X11-dir
|
106
|
-
--without-X11-dir
|
107
|
-
--with-X11-include
|
108
|
-
--without-X11-include
|
109
|
-
--with-X11-lib
|
110
|
-
--without-X11-lib
|
111
|
-
--enable-tcltk-stubs
|
112
|
-
--disable-tcltk-stubs
|
113
|
-
--enable-tcl-h-ver-check
|
114
|
-
--disable-tcl-h-ver-check
|
115
|
-
--enable-tk-h-ver-check
|
116
|
-
--disable-tk-h-ver-check
|
117
|
-
--enable-mac-tcltk-framework
|
118
|
-
--disable-mac-tcltk-framework
|
119
|
-
--enable-tcltk-framework
|
120
|
-
--disable-tcltk-framework
|
121
|
-
--enable-pthread
|
122
|
-
--disable-pthread
|
123
|
-
--enable-tcl-thread
|
124
|
-
--disable-tcl-thread
|
125
|
-
--enable-space-on-tk-libpath
|
126
|
-
--disable-space-on-tk-libpath
|
127
|
-
--with-nsllib
|
128
|
-
--without-nsllib
|
129
|
-
--with-socketlib
|
130
|
-
--without-socketlib
|
131
|
-
--with-dllib
|
132
|
-
--without-dllib
|
133
|
-
--with-mlib
|
134
|
-
--without-mlib
|
135
|
-
--with-tcl-build-dir
|
136
|
-
--without-tcl-build-dir
|
137
|
-
--with-tk-build-dir
|
138
|
-
--without-tk-build-dir
|
139
|
-
--with-tcltkversion
|
140
|
-
--without-tcltkversion
|
141
|
-
--with-ActiveTcl
|
142
|
-
--without-ActiveTcl
|
143
|
-
--enable-space-on-tk-libpath
|
144
|
-
--disable-space-on-tk-libpath
|
145
|
-
--enable-tcltk-stubs
|
146
|
-
--disable-tcltk-stubs
|
147
|
-
--with-tcltk-stubs
|
148
|
-
--without-tcltk-stubs
|
149
|
-
--with-tcl-dir
|
150
|
-
--without-tcl-dir
|
151
|
-
--with-tcl-include
|
152
|
-
--without-tcl-include=${tcl-dir}/include
|
153
|
-
--with-tcl-lib
|
154
|
-
--without-tcl-lib=${tcl-dir}/lib
|
155
|
-
--with-tk-dir
|
156
|
-
--without-tk-dir
|
157
|
-
--with-tk-include
|
158
|
-
--without-tk-include=${tk-dir}/include
|
159
|
-
--with-tk-lib
|
160
|
-
--without-tk-lib=${tk-dir}/lib
|
161
|
-
--with-tclConfig-file
|
162
|
-
--without-tclConfig-file
|
163
|
-
--with-tkConfig-file
|
164
|
-
--without-tkConfig-file
|
165
|
-
--with-tclConfig-dir
|
166
|
-
--without-tclConfig-dir
|
167
|
-
--with-tkConfig-dir
|
168
|
-
--without-tkConfig-dir
|
169
|
-
--with-tcltk-framework
|
170
|
-
--without-tcltk-framework
|
171
|
-
--enable-tcltk-framework
|
172
|
-
--disable-tcltk-framework
|
173
|
-
--enable-tcltk-framework
|
174
|
-
--disable-tcltk-framework
|
175
|
-
--with-tk-shlib-search-path
|
176
|
-
--without-tk-shlib-search-path
|
177
|
-
--with-tklib
|
178
|
-
--without-tklib
|
179
|
-
--with-tcllib
|
180
|
-
--without-tcllib
|
181
|
-
--with-X11
|
182
|
-
--without-X11
|
183
|
-
--with-X11-dir
|
184
|
-
--without-X11-dir
|
185
|
-
--with-X11-include
|
186
|
-
--without-X11-include=${X11-dir}/include
|
187
|
-
--with-X11-lib
|
188
|
-
--without-X11-lib=${X11-dir}/lib
|
189
|
-
--with-X11-lib
|
190
|
-
--without-X11-lib
|
191
|
-
--with-X11lib
|
192
|
-
--without-X11lib
|
193
40
|
|
194
41
|
Warning:: cannot find X11 library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options. If your Tcl/Tk don't require X11, please try --without-X11.
|
195
42
|
Can't find X11 libraries.
|
@@ -208,20 +55,31 @@
|
|
208
55
|
### 試したこと
|
209
56
|
|
210
57
|
mdfindでtclConfig.sh, tkConfig.shを探しましたが存在しました。
|
58
|
+
|
211
59
|
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/tkConfig.sh
|
212
60
|
|
213
61
|
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/tclConfig.sh
|
214
62
|
|
63
|
+
また、以下のURLを参考に、以下のように実行し、再度インストールしたら、エラーが変わりました。
|
64
|
+
tk/tclライブラリが見つからないようですが、適切なライブラリがどこにあるのか、わかりません。。
|
65
|
+
|
66
|
+
https://qiita.com/ftakao2007/items/230050be7351db49383d
|
67
|
+
https://github.com/ruby/tk/blob/master/README.tcltklib
|
215
|
-
|
68
|
+
http://www.mit.edu/afs.new/sipb/service/restore/ruby-lang/src/ruby-1.8.4/ext/tk/README.tcltklib
|
69
|
+
|
216
70
|
```
|
217
|
-
$ RUBY_CONFIGURE_OPTS="--
|
71
|
+
$ RUBY_CONFIGURE_OPTS="--with-tcltkversion=8.5 \
|
72
|
+
--with-tcl-lib=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5 \
|
73
|
+
--with-tk-lib=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5 \
|
74
|
+
--enable-pthread --enable-shared" rbenv install 2.6.5
|
75
|
+
|
218
76
|
$ gem install tk
|
219
77
|
Building native extensions. This could take a while...
|
220
78
|
ERROR: Error installing tk:
|
221
79
|
ERROR: Failed to build gem native extension.
|
222
80
|
|
223
81
|
current directory: /Users/****/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tk-0.3.0/ext/tk
|
224
|
-
/Users/****/.rbenv/versions/2.6.5/bin/ruby -I /Users/****/.rbenv/versions/2.6.5/lib/ruby/2.6.0 -r ./siteconf20201215-
|
82
|
+
/Users/****/.rbenv/versions/2.6.5/bin/ruby -I /Users/****/.rbenv/versions/2.6.5/lib/ruby/2.6.0 -r ./siteconf20201215-15693-14ro7nf.rb extconf.rb
|
225
83
|
Configure options for Ruby/Tk may be updated.
|
226
84
|
So, delete files which depend on old configs.
|
227
85
|
check functions.checking for ruby_native_thread_p() in ruby.h... yes
|
@@ -236,24 +94,28 @@
|
|
236
94
|
checking for socket() in -lsocket... no
|
237
95
|
checking for dlopen() in -ldl... yes
|
238
96
|
checking for log() in -lm... yes
|
97
|
+
Specified Tcl/Tk version is ["8.5", "8.5"]
|
239
98
|
Use ActiveTcl libraries (if available).
|
240
99
|
Search tclConfig.sh and tkConfig.sh.
|
241
100
|
Fail to find [tclConfig.sh, tkConfig.sh]
|
242
101
|
Search tcl.h
|
243
102
|
checking for tcl.h... yes
|
244
103
|
Search tk.h
|
245
|
-
checking for tk.h...
|
104
|
+
checking for tk.h... yes
|
246
|
-
Search Tcl library.
|
105
|
+
Search Tcl library.checking for Tcl_FindExecutable() in -ltclstub8.5... no
|
106
|
+
.checking for Tcl_FindExecutable() in -ltclstub8.5... no
|
107
|
+
.checking for Tcl_FindExecutable() in -ltclstub8.5... no
|
108
|
+
.checking for Tcl_FindExecutable() in -ltclstub8.5... no
|
109
|
+
*** extconf.rb failed ***
|
247
110
|
Could not create Makefile due to some reason, probably lack of necessary
|
248
111
|
libraries and/or headers. Check the mkmf.log file for more details. You may
|
249
112
|
need configuration options.
|
250
113
|
|
251
114
|
Provided configuration options:
|
252
|
-
|
115
|
+
~~~略~~~
|
253
|
-
略
|
254
|
-
〜〜〜〜〜〜
|
255
|
-
Warning:: cannot find Tk library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options.
|
256
116
|
|
117
|
+
Warning:: cannot find Tcl library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options.
|
118
|
+
|
257
119
|
Can't find proper Tcl/Tk libraries. So, can't make tcltklib.so which is required by Ruby/Tk.
|
258
120
|
If you have Tcl/Tk libraries on your environment, you may be able to use them with configure options (see ext/tk/README.tcltklib).
|
259
121
|
At present, Tcl/Tk8.6 is not supported. Although you can try to use Tcl/Tk8.6 with configure options, it will not work correctly. I recommend you to use Tcl/Tk8.5 or 8.4.
|
2
configuretionを変更しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -212,6 +212,63 @@
|
|
212
212
|
|
213
213
|
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/tclConfig.sh
|
214
214
|
|
215
|
+
また、`Please check configure options. If your Tcl/Tk don't require X11, please try --without-X11.`とあったので、以下のように実行し、再度インストールしたら、エラーが変わりました。
|
216
|
+
```
|
217
|
+
$ RUBY_CONFIGURE_OPTS="--without-X11" rbenv install 2.6.5
|
218
|
+
$ gem install tk
|
219
|
+
Building native extensions. This could take a while...
|
220
|
+
ERROR: Error installing tk:
|
221
|
+
ERROR: Failed to build gem native extension.
|
222
|
+
|
223
|
+
current directory: /Users/****/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tk-0.3.0/ext/tk
|
224
|
+
/Users/****/.rbenv/versions/2.6.5/bin/ruby -I /Users/****/.rbenv/versions/2.6.5/lib/ruby/2.6.0 -r ./siteconf20201215-34542-jc7u8a.rb extconf.rb
|
225
|
+
Configure options for Ruby/Tk may be updated.
|
226
|
+
So, delete files which depend on old configs.
|
227
|
+
check functions.checking for ruby_native_thread_p() in ruby.h... yes
|
228
|
+
checking for rb_errinfo() in ruby.h... yes
|
229
|
+
checking for rb_hash_lookup() in ruby.h... yes
|
230
|
+
checking for rb_proc_new() in ruby.h... yes
|
231
|
+
checking for rb_sourcefile() in ruby.h... yes
|
232
|
+
checking for rb_thread_alive_p() in ruby.h... no
|
233
|
+
checking for rb_thread_check_trap_pending() in ruby.h... yes
|
234
|
+
checking for ruby_enc_find_basename() in ruby.h... yes
|
235
|
+
check libraries.checking for t_open() in -lnsl... no
|
236
|
+
checking for socket() in -lsocket... no
|
237
|
+
checking for dlopen() in -ldl... yes
|
238
|
+
checking for log() in -lm... yes
|
239
|
+
Use ActiveTcl libraries (if available).
|
240
|
+
Search tclConfig.sh and tkConfig.sh.
|
241
|
+
Fail to find [tclConfig.sh, tkConfig.sh]
|
242
|
+
Search tcl.h
|
243
|
+
checking for tcl.h... yes
|
244
|
+
Search tk.h
|
245
|
+
checking for tk.h... no
|
246
|
+
Search Tcl library...Search Tk library.............*** extconf.rb failed ***
|
247
|
+
Could not create Makefile due to some reason, probably lack of necessary
|
248
|
+
libraries and/or headers. Check the mkmf.log file for more details. You may
|
249
|
+
need configuration options.
|
250
|
+
|
251
|
+
Provided configuration options:
|
252
|
+
〜〜〜〜〜〜
|
253
|
+
略
|
254
|
+
〜〜〜〜〜〜
|
255
|
+
Warning:: cannot find Tk library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options.
|
256
|
+
|
257
|
+
Can't find proper Tcl/Tk libraries. So, can't make tcltklib.so which is required by Ruby/Tk.
|
258
|
+
If you have Tcl/Tk libraries on your environment, you may be able to use them with configure options (see ext/tk/README.tcltklib).
|
259
|
+
At present, Tcl/Tk8.6 is not supported. Although you can try to use Tcl/Tk8.6 with configure options, it will not work correctly. I recommend you to use Tcl/Tk8.5 or 8.4.
|
260
|
+
|
261
|
+
To see why this extension failed to compile, please check the mkmf.log which can be found here:
|
262
|
+
|
263
|
+
/Users/****/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-19/2.6.0/tk-0.3.0/mkmf.log
|
264
|
+
|
265
|
+
extconf failed, exit code 1
|
266
|
+
|
267
|
+
Gem files will remain installed in /Users/****/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tk-0.3.0 for inspection.
|
268
|
+
Results logged to /Users/****/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-19/2.6.0/tk-0.3.0/gem_make.out
|
269
|
+
|
270
|
+
```
|
271
|
+
|
215
272
|
### 補足情報(FW/ツールのバージョンなど)
|
216
273
|
Ruby 2.6.5
|
217
274
|
MacOS Catalina10.15.7
|
1
tclConfig.sh, tkConfig.shを探しましたが存在しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -207,8 +207,11 @@
|
|
207
207
|
|
208
208
|
### 試したこと
|
209
209
|
|
210
|
-
mdfindでtclConfig.sh, tkConfig.shを探しましたが
|
210
|
+
mdfindでtclConfig.sh, tkConfig.shを探しましたが存在しました。
|
211
|
+
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/tkConfig.sh
|
211
212
|
|
213
|
+
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/tclConfig.sh
|
214
|
+
|
212
215
|
### 補足情報(FW/ツールのバージョンなど)
|
213
216
|
Ruby 2.6.5
|
214
217
|
MacOS Catalina10.15.7
|