本文介绍了[解决]宝石安装红宝石音频1.6.1错误(使用Mac OS 10.9 /自制)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试过其他的技巧,但没有奏效。(见下面的链接请)结果
恩。结果
结果
ruby-audio 1.6.1安装错误(安装Libsndfile 1.0.25)结果
这将是非常美联社preciated如果你给我一些这方面的反馈...
$宝石安装红宝石音频< BR>
构建本机扩展。这可能需要一段时间...< BR>
错误:错误安装Ruby音频:其中; BR>
错误:无法建立宝石原生扩展< BR方式> /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
< BR>
**为sndfile.h检查在/ opt /本地/包括在/ usr /本地/包括C:/ Program Files文件(86)/兆书呆子/ libsndfile /包括C:/ Program Files文件/兆书呆子/ libsndfile /有...是< BR>
在-lsndfile-1检查sf_open()...没有< BR>
检查中-lsndfile sf_open()...没有< BR> ** LT; BR>
*** extconf.rb失败*** LT; BR>
无法创建生成文件因某种原因,可能是缺乏的必要
库和/或标题。检查mkmf.log文件的更多细节。你可以
需要配置选项< BR>
< BR>
提供的配置选项:< BR>
--with-OPT-DIR< BR>
--without-OPT-DIR< BR>
--with-OPT-包括< BR>
--without-OPT-包括= $ {选择-DIR} /包括< BR>
--with-OPT-LIB< BR>
--without-OPT-LIB = $ {选择-DIR} / lib目录下&; BR>
--with-使-PROG< BR>
--without-MAKE-PROG< BR>
--srcdir =< BR>
--curdir< BR>
--ruby = /系统/库/框架/ Ruby.framework /版本/ 2.0的/ usr / bin中/红宝石< BR>
--with-sndfile-DIR< BR>
--without-sndfile-DIR< BR>
--with-sndfile,包括< BR>
--without-sndfile-包括= $ {sndfile-DIR} /包括< BR>
--with-sndfile-LIB< BR>
--without-sndfile-LIB = $ {sndfile-DIR} /< BR>
--with-sndfile-1lib< BR>
--without-sndfile-1lib< BR>
--with-sndfilelib< BR>
--without-sndfilelib< BR>< BR>
** extconf.rb:21:在`<主>':找不到libsndfile(http://www.mega-nerd.com/libsndfile/)(RuntimeError)** LT; BR>
< BR>
尝试通过--with-sndfile-DIR或--with-sndfile-lib和--with-sndfile,包括< BR>
选项extconf。如果有空间在Windows的路径,它可能无法正常工作< BR>
< BR>
< BR>
宝石文件仍将安装在/Library/Ruby/Gems/2.0.0/gems/ruby-audio-1.6.1检查和LT; BR>
结果记录到/Library/Ruby/Gems/2.0.0/gems/ruby-audio-1.6.1/ext/rubyaudio_ext/gem_make.out
解决方案
您可能需要安装libsndfile作为通用库 - 默认情况下它不会编译的32位片,这是需要兼容系统红宝石
BREW卸载libsndfile
BREW安装libsndfile --universal
sudo的创业板安装红宝石音频
I tried other tips but didn't work.(see link below please)
ex.
Gem installation ruby-audio failing
ruby-audio 1.6.1 install error( with installed Libsndfile 1.0.25 )
It would be really appreciated if you give me some feedback on this ...
$ gem install ruby-audio<br>
Building native extensions. This could take a while...<br>
ERROR: Error installing ruby-audio:<br>
ERROR: Failed to build gem native extension.<br>
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
<br>
**checking for sndfile.h in /opt/local/include,/usr/local/include,C:/Program Files (x86)/Mega-Nerd/libsndfile/include,C:/Program Files/Mega-Nerd/libsndfile/include... yes<br>
checking for sf_open() in -lsndfile-1... no<br>
checking for sf_open() in -lsndfile... no<br>**<br>
*** extconf.rb failed ***<br>
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.<br>
<br>
Provided configuration options:<br>
--with-opt-dir<br>
--without-opt-dir<br>
--with-opt-include<br>
--without-opt-include=${opt-dir}/include<br>
--with-opt-lib<br>
--without-opt-lib=${opt-dir}/lib<br>
--with-make-prog<br>
--without-make-prog<br>
--srcdir=.<br>
--curdir<br>
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby<br>
--with-sndfile-dir<br>
--without-sndfile-dir<br>
--with-sndfile-include<br>
--without-sndfile-include=${sndfile-dir}/include<br>
--with-sndfile-lib<br>
--without-sndfile-lib=${sndfile-dir}/<br>
--with-sndfile-1lib<br>
--without-sndfile-1lib<br>
--with-sndfilelib<br>
--without-sndfilelib<br><br>
**extconf.rb:21:in `<main>': Can't find libsndfile (http://www.mega-nerd.com/libsndfile/) (RuntimeError)**<br>
<br>
Try passing --with-sndfile-dir or --with-sndfile-lib and --with-sndfile-include<br>
options to extconf. If there are spaces in the path on windows, it may not work.<br>
<br>
<br>
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ruby-audio-1.6.1 for inspection.<br>
Results logged to /Library/Ruby/Gems/2.0.0/gems/ruby-audio-1.6.1/ext/rubyaudio_ext/gem_make.out
解决方案
You probably need to install libsndfile as a universal library - by default it doesn't compile a 32-bit slice, which is required for compatibility with the system ruby.
brew uninstall libsndfile
brew install libsndfile --universal
sudo gem install ruby-audio
这篇关于[解决]宝石安装红宝石音频1.6.1错误(使用Mac OS 10.9 /自制)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!