我最近将我的 OSX 版本更新到 10.9.2。 ruby-audio gem 失败并出现以下警告和错误。我该怎么做才能找到 libFLAC.8.dylib?
gem install ruby-audio -v '1.6.1'
31 warnings generated.
compiling ra_soundinfo.c
compiling rubyaudio_ext.c
linking shared-object rubyaudio_ext.bundle
ld: file not found: /usr/local/lib/libFLAC.8.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [rubyaudio_ext.bundle] Error 1
最佳答案
原来 flac 和 libogg 之前是由 brew 安装的,但是由于操作系统更新,usr/local/lib 中的链接丢失了,所以我不得不重新安装它。我做了以下并成功安装了 ruby-audio。
brew remove flac
brew install flac
brew remove libogg
brew install libogg
关于ruby-on-rails - 无法在 OSX-10.9.2 Mavericks 上安装 ruby-audio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22445860/