質問編集履歴
1
補足情報を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -61,3 +61,129 @@
|
|
61
61
|
何も表示されないので、パスを通す必要があるのかと思っているのですが、
|
62
62
|
|
63
63
|
どこにパスを通すべきなのか、わかりません。
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
### 補足情報
|
68
|
+
|
69
|
+
gem install ruby-opencv ができていません。
|
70
|
+
|
71
|
+
with でディレクトリを指定しても同様のエラーが出ます。
|
72
|
+
|
73
|
+
```
|
74
|
+
|
75
|
+
$ gem install ruby-opencv
|
76
|
+
|
77
|
+
uilding native extensions. This could take a while...
|
78
|
+
|
79
|
+
ERROR: Error installing ruby-opencv:
|
80
|
+
|
81
|
+
ERROR: Failed to build gem native extension.
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
current directory: /usr/local/lib/ruby/gems/2.4.0/gems/ruby-opencv-0.0.18/ext/opencv
|
86
|
+
|
87
|
+
/usr/local/opt/ruby/bin/ruby -r ./siteconf20180204-3252-17f30oh.rb extconf.rb
|
88
|
+
|
89
|
+
>> Check the required libraries...
|
90
|
+
|
91
|
+
checking for -lstdc++... yes
|
92
|
+
|
93
|
+
checking for -lopencv_calib3d... yes
|
94
|
+
|
95
|
+
checking for -lopencv_contrib... no
|
96
|
+
|
97
|
+
*** extconf.rb failed ***
|
98
|
+
|
99
|
+
Could not create Makefile due to some reason, probably lack of necessary
|
100
|
+
|
101
|
+
libraries and/or headers. Check the mkmf.log file for more details. You may
|
102
|
+
|
103
|
+
need configuration options.
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
Provided configuration options:
|
108
|
+
|
109
|
+
--with-opt-dir
|
110
|
+
|
111
|
+
--with-opt-include
|
112
|
+
|
113
|
+
--without-opt-include=${opt-dir}/include
|
114
|
+
|
115
|
+
--with-opt-lib
|
116
|
+
|
117
|
+
--without-opt-lib=${opt-dir}/lib
|
118
|
+
|
119
|
+
--with-make-prog
|
120
|
+
|
121
|
+
--without-make-prog
|
122
|
+
|
123
|
+
--srcdir=.
|
124
|
+
|
125
|
+
--curdir
|
126
|
+
|
127
|
+
--ruby=/usr/local/Cellar/ruby/2.4.2_1/bin/$(RUBY_BASE_NAME)
|
128
|
+
|
129
|
+
--with-opencv-dir
|
130
|
+
|
131
|
+
--without-opencv-dir
|
132
|
+
|
133
|
+
--with-opencv-include
|
134
|
+
|
135
|
+
--without-opencv-include=${opencv-dir}/include
|
136
|
+
|
137
|
+
--with-opencv-lib
|
138
|
+
|
139
|
+
--without-opencv-lib=${opencv-dir}/lib
|
140
|
+
|
141
|
+
--with-libxml2-dir
|
142
|
+
|
143
|
+
--without-libxml2-dir
|
144
|
+
|
145
|
+
--with-libxml2-include
|
146
|
+
|
147
|
+
--without-libxml2-include=${libxml2-dir}/include
|
148
|
+
|
149
|
+
--with-libxml2-lib
|
150
|
+
|
151
|
+
--without-libxml2-lib=${libxml2-dir}/lib
|
152
|
+
|
153
|
+
--with-stdc++lib
|
154
|
+
|
155
|
+
--without-stdc++lib
|
156
|
+
|
157
|
+
--with-opencv_calib3dlib
|
158
|
+
|
159
|
+
--without-opencv_calib3dlib
|
160
|
+
|
161
|
+
--with-opencv_contriblib
|
162
|
+
|
163
|
+
--without-opencv_contriblib
|
164
|
+
|
165
|
+
extconf.rb:58:in `block in <main>': opencv_contrib not found. (RuntimeError)
|
166
|
+
|
167
|
+
from extconf.rb:58:in `each'
|
168
|
+
|
169
|
+
from extconf.rb:58:in `<main>'
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
To see why this extension failed to compile, please check the mkmf.log which can be found here:
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
/usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0/ruby-opencv-0.0.18/mkmf.log
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
extconf failed, exit code 1
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
Gem files will remain installed in /usr/local/lib/ruby/gems/2.4.0/gems/ruby-opencv-0.0.18 for inspection.
|
186
|
+
|
187
|
+
Results logged to /usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0/ruby-opencv-0.0.18/gem_make.out
|
188
|
+
|
189
|
+
```
|