‘seewave' install error “'sndfile.h' file not found” (for R 3.2.0 under OSX Yosemite)

只愿长相守 提交于 2019-12-10 14:32:40

问题


When updating to R 3.2.0 I had to reinstall seewave.

I managed to install the required packages fftw, tuneR, rgl, and rpanel.

But, when trying to compile seewave I got the message:

stft.c:3:11: fatal error: 'sndfile.h' file not found

回答1:


On linux it is sufficient to install libsndfile library, for example with

sudo apt-get install libsndfile1-dev

On OS X just do:

brew install libsndfile



回答2:


Pisca46 - Installing via 'brew install libsndfile' helped.




回答3:


On CentOS, the package has a different name :

sudo yum install libsndfile-devel

I also had to install the fftw-devel yum package



来源:https://stackoverflow.com/questions/30219360/seewave-install-error-sndfile-h-file-not-found-for-r-3-2-0-under-osx-yose

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!