'seewave'安装错误"'找不到'sndfile.h'文件"(对于OSX Yosemite下的R 3.2.0)

Pis*_*a46 4 r libsndfile osx-yosemite

更新到R 3.2.0时,我不得不重新安装seewave.

我设法安装所需的软件包fftw,tuneR,rgl,和rpanel.

但是,在尝试编译时,seewave我收到了消息:

stft.c:3:11: fatal error: 'sndfile.h' file not found
Run Code Online (Sandbox Code Playgroud)

小智 18

在linux上安装libsndfile库就足够了,例如

sudo apt-get install libsndfile1-dev
Run Code Online (Sandbox Code Playgroud)

在OS X上只需:

brew install libsndfile
Run Code Online (Sandbox Code Playgroud)

  • 感谢user44509,由于OSX不包括Aptitude,我搜索了类似的东西并安装了Homebrew和"brew install libsndfile"完成了这项工作. (3认同)