我已经安装了ruby-audio-1.6.1 gem并且已经将它添加到我的Gemfile中以用于我的rails项目但是当我尝试启动服务器时我得到了:
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ruby-audio-1.6.1/lib/ruby-audio.rb:6:在
require': 126: The specified module could not be found. - C:/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0/ruby-audio-1.6.1/rubyaudio_ext.so (LoadError) from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ruby-audio-1.6.1/lib/ruby-audio.rb:6:in
抢救' 来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ruby-audio-1.6.1/lib/ruby-audio.rb:1:in<top (required)>' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.8/lib/bundler/runtime.rb:76:in
需要” 来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.8/lib/bundler/runtime.rb:76:inblock (2 levels) in require' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.8/lib/bundler/runtime.rb:72:in
每个” 来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.8/lib/bundler/runtime.rb:72:inblock in require' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.8/lib/bundler/runtime.rb:61:in
每个” 来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.8/lib/bundler/runtime.rb:61:inrequire' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.8/lib/bundler.rb:134:in
需要” 来自E:/Development/mixer/config/application.rb:7:in<top (required)>' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:79:in
require' 来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:79:inblock inserver' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in
点击” 来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:inserver' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in
run_command!” 来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands.rb:17:in<top (required)>' from bin/rails:4:in
需要” 来自bin / rails:4:在''
我一直在挖掘并且找不到多少,我已经确保正确安装libsndfile所以初始gem安装就好了,现在它只是出错了。我已经检查了该文件实际存在于该位置并且它确实存在一些我对可能出错的地方感到有点难过。
答案 0 :(得分:1)
在Gemfile中,尝试将其标记为require false:
gem 'ruby-audio', require: false
尝试启动服务器,并将结果发布到您的问题中。
您可能还想尝试更新的宝石,因为ruby-audio宝石已经很老了。
sndfile
gem类似且更新:https://github.com/ronen/sndfile