I am running Enthought Python 2.7
as well as default Python 2.7
, Xcode 4.5.1
in Mac OS 10.8.2
. I am trying to develop a speech to text converter in Python
. I use Enthought Python
as it allows me to record in 16000Hz, 1 Channel
using pyaudio
, which is needed for pocketsphinx
to work.
我正在运行Enthought Python 2.7以及默认的Python 2.7, Xcode 4.5.1在Mac OS 10.8.2中。我正在尝试在Python中开发一个对文本转换器的演讲。我使用Enthought Python,因为它允许我在16000Hz、1通道使用pyaudio进行记录,这是pocketsphinx工作所需要的。
I am trying to setup pocketsphinx
using brew install pocketsphinx
.
我正在尝试用brew安装pocketsphinx来安装pocketsphinx。
I get the following errors
我有以下错误。
Even manual installation using make
and using default python
results in same errors
甚至手动安装使用make和使用默认python也会导致相同的错误。
Using brew doctor, I get
我用brew医生。
How do I successfully install pocketsphinx
?
如何成功安装pocketsphinx?
Here is my config.log
这是我config.log
Homebrew logs pocketsphinx, sphinxbase
家酿日志pocketsphinx sphinxbase
1 个解决方案
#1
1
According to the log you have outdated version of the libsndfile installed. You have a header sndfile.h, but not sndfile.pc pkg-config file:
根据日志,您已经安装了libsndfile的过时版本。你有一个标题sndfile。h,但不是sndfile。pc pkg-config文件:
configure:14532: checking for SNDFILE
configure:14540: $PKG_CONFIG --exists --print-errors "sndfile"
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
configure:14543: $? = 1
configure:14558: $PKG_CONFIG --exists --print-errors "sndfile"
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
configure:14561: $? = 1
No package 'sndfile' found
configure:14589: result: no
configure:14603: checking sndfile.h usability
configure:14603: gcc -std=gnu99 -c -g -O2 -Wall -
I/Library/Frameworks/Python.framework/Versions/7.3/include/python2.7 -
I/Library/Frameworks/Python.framework/Versions/7.3/include/python2.7 conftest.c >&5
configure:14603: $? = 0
configure:14603: result: yes
To solve this problem either remove the header to not confuse the configure or install newer sndfile with pkg-config support.
要解决这个问题,可以删除头,不要混淆配置或安装新的sndfile和pkg-config支持。
Actually that should be fixed in sphinxbase as well, a bug report would be welcome.
实际上,这也应该在sphinxbase中修复,bug报告是受欢迎的。
#1
1
According to the log you have outdated version of the libsndfile installed. You have a header sndfile.h, but not sndfile.pc pkg-config file:
根据日志,您已经安装了libsndfile的过时版本。你有一个标题sndfile。h,但不是sndfile。pc pkg-config文件:
configure:14532: checking for SNDFILE
configure:14540: $PKG_CONFIG --exists --print-errors "sndfile"
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
configure:14543: $? = 1
configure:14558: $PKG_CONFIG --exists --print-errors "sndfile"
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
configure:14561: $? = 1
No package 'sndfile' found
configure:14589: result: no
configure:14603: checking sndfile.h usability
configure:14603: gcc -std=gnu99 -c -g -O2 -Wall -
I/Library/Frameworks/Python.framework/Versions/7.3/include/python2.7 -
I/Library/Frameworks/Python.framework/Versions/7.3/include/python2.7 conftest.c >&5
configure:14603: $? = 0
configure:14603: result: yes
To solve this problem either remove the header to not confuse the configure or install newer sndfile with pkg-config support.
要解决这个问题,可以删除头,不要混淆配置或安装新的sndfile和pkg-config支持。
Actually that should be fixed in sphinxbase as well, a bug report would be welcome.
实际上,这也应该在sphinxbase中修复,bug报告是受欢迎的。