在sbox中编译 pulseaudio,需要libsndfile,于是下载 libsndfile-1.0.21,编译并默认安装(/usr/local/)
但是 pulseaudio, configure 仍然报错,
configure: error: Package requirements ( sndfile >= 1.0.20 ) were not met:
问题比较容易找到:
configure 脚本执行 pkg-config --exists --print-errors " sndfile >= 1.0.20 "
找不到 sndfile.pc,
因为它到 /usr/lib/pkgconfig 找,当然找不到
如果 cp /usr/local/lib/pkgconfig/sndfile.pc 到 /usr/lib/pkgconfig/
问题可以解决。
但是
pkg-config --exists --print-errors " sndfile >= 1.0.20 "
### error msg
Package sndfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `sndfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sndfile' found
###
的错误提示,似乎提示修改环境变量 PKG_CONFIG_PATH 可以帮助找到 pc 文件
这个连接 http://blog.csdn.net/bloghome/archive/2008/04/21/2312873.aspx 也是这么说的
但是,实际在sbox里面无效,./configure的时候,还是错误
唉,先不管了, cp /usr/local/lib/pkgconfig/sndfile.pc /usr/lib/pkgconfig/ 通过再说。