我面對這個問題波紋管,當我嘗試安裝Rdmtx寶石的問題:與寶石Rdmtx
$ gem install Rdmtx
Building native extensions. This could take a while...
ERROR: Error installing Rdmtx:
ERROR: Failed to build gem native extension.
/Users/alberto/.rbenv/versions/2.2.5/bin/ruby -r ./siteconf20170508-97735-7c5328.rb extconf.rb
checking for main() in -ldmtx... no
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling Rdmtx.c
Rdmtx.c:26:10: fatal error: 'dmtx.h' file not found
#include <dmtx.h>
^
1 error generated.
make: *** [Rdmtx.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/alberto/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/Rdmtx-0.3.1 for inspection.
Results logged to /Users/alberto/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-16/2.2.0-static/Rdmtx-0.3.1/gem_make.out
我已經通過BREW安裝libdmtx但問題remais。
有人可以幫助我嗎?
你需要安裝的文件是'dmtx.h' –
我可以在'/ usr/local/Cellar/libdmtx/0.7.4/include/dmtx.h'找到'dmtx.h',在/ usr /本地/包括/ dmtx.h'。但不知何故寶石安裝不是。 – betogrun