我正试图在我的马氏10.7.4上安装克伦coder宝石,用于铁路项目上的红宝石。
当我尝试宝石安装 qrencoder 在这里,我得到的是:
ERROR: Error installing qrencoder:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for qrencode.h... yes
checking for QRinput_new() in -lqrencode... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
The mkmf.log file does not say anything other than the above. I have qrencode-3.3.0 installed ok with brew but the gem install fails: any idea ?
当我输入 qrencode, 这就是我得到的:
"dyld: Library not loaded: /usr/local/lib/libqrencode.3.dylib Referenced from: /usr/local/bin/qrencode Reason: Incompatible library version: qrencode requires version 7.0.0 or later, but libqrencode.3.dylib provides version 5.0.0 Trace/BPT trap: 5"