1

で、デフォルトとEnthought Python 2.7同様に実行しています。で音声テキスト変換を開発しようとしています。仕事に必要なを使って録音できるので使っています。Python 2.7Xcode 4.5.1Mac OS 10.8.2PythonEnthought Python16000Hz, 1 Channelpyaudiopocketsphinx

pocketsphinxを使用してセットアップしようとしていますbrew install pocketsphinx

次のエラーが発生しますここに画像の説明を入力してください

makeデフォルトを使用して手動でインストールしてもpython、同じエラーが発生 しますここに画像の説明を入力してください

ブリュードクターを使って、ここに画像の説明を入力してください

どうすれば正常にインストールできpocketsphinxますか?

これが私のconfig.logです

自作ログpocketsphinxsphinxbase

Bash_Profile

4

1 に答える 1

1

ログによると、古いバージョンのlibsndfileがインストールされています。ヘッダーsndfile.hがありますが、sndfile.pcpkg-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

この問題を解決するには、configureを混同しないようにヘッダーを削除するか、pkg-configサポートを使用して新しいsndfileをインストールします。

実際、これはsphinxbaseでも修正されるはずですが、バグレポートを歓迎します。

于 2012-11-09T18:53:16.673 に答える