由brew安装的RoR ffmpeg

时间:2012-07-21 19:36:36

标签: ruby-on-rails ffmpeg carrierwave homebrew

我正在开发一个需要ffmpeg的Ruby on Rails应用程序来处理我拥有的文件。

但是,在尝试使用ffmpeg时,我收到此错误

Failed encoding. Errors: no output file created. Full output: dyld: Library not loaded: /usr/local/lib/libogg.0.dylib
Referenced from: /usr/local/bin/ffmpeg
Reason: Incompatible library version: ffmpeg requires version 9.0.0 or later, but libogg.0.dylib provides version 6.0.0

这是一个基本上是CarrierWave的项目,可以在这里看到:http://www.freezzo.com/2010/12/23/create-ffmpeg-processor-for-carrierwave-in-rails-3/

1 个答案:

答案 0 :(得分:4)

您似乎有一个过时的libogg版本,您应该尝试

brew update && brew upgrade libogg

$ otool -L /usr/local/lib/libogg.0.dylib
/usr/local/lib/libogg.0.dylib:
    /usr/local/lib/libogg.0.dylib (compatibility version 9.0.0, current version 9.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)