Pocketsphinx 安装失败?树莓派零 (Raspbian Jessie) [英] Pocketsphinx install fail? Raspberry Pi Zero (Raspbian Jessie)

查看:179
本文介绍了Pocketsphinx 安装失败?树莓派零 (Raspbian Jessie)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能会被标记为重复,但我运气不好,所以我们开始吧.

This will probably get tagged as a duplicate, but I haven't had any luck, so here we go.

我正在尝试开发一个Jarvis"就像使用 Python2.7 设置一样.我',希望使用 Pocketsphinx 作为其中的一部分.我尝试在我的 Windows 10 机器上执行此操作,但 Pocketsphinx 需要 Swig,而在 Windows 10 机器上完全失败(我仍在努力.)所以,我转移到我的 Raspberry Pi Zero,因为那是无论如何,我将寻求实现实际程序.

I'm trying to develop a "Jarvis" like setup with Python2.7. I', looking to use Pocketsphinx as part of that. I tried to do this on my Windows 10 machine, but Pocketsphinx requires Swig, and that utterly failed on the Windows 10 machine (I'm still working on that.) So, I moved over to my Raspberry Pi Zero, since that is where I will be looking to impliment the actual program anyways.

我让 Swig 安装得很好.Windows 10 没有任何问题.然后我尝试安装 Pocketsphinx 并且东西掉进了马桶.安装失败了一点点.我读到我需要下载 2.7 的 python developer.完成了这项工作,事情似乎进展顺利.我在屏幕上滚动了一堆东西,看起来它可能会起作用.不.那是我得到这个的时候:

I got Swig to install just fine. None of the problems that Windows 10 had. Then I tried to install Pocketsphinx and things went down the toilet. Install failed after just a little bit. I read that I needed to download python developer for 2.7. Got that accomplished and things seemed to be going well. I got a bunch of stuff rolling accross the screen and it looked like it might just work. Nope. That's when I got this:

deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30:致命错误:pulse/pulseaudio.h:没有那个文件或目录

deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30: fatal error: pulse/pulseaudio.h: No such file or directory

编译终止.

错误:命令arm-linux-gnueabihf-gcc"失败,退出状态为 1

error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

清理... 命令/usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-Wt0cIJ/pocketsphinx/setup.py';exec(compile(getattr(tokenize), 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))"install --record/tmp/pip-UOA_Nf-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in/tmp/pip-build-Wt0cIJ/pocketsphinx Traceback(最近最后调用):文件/usr/bin/pip",第 9 行,在 load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() 文件/usr/lib/python2.7/dist-packages/pip/init.py",第 248 行,在主要返回 command.main(cmd_args) 文件/usr/lib/python2.7/dist-packages/pip/basecommand.py",第 161 行, 在正文中 = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 51: ordinal not in range(128)

Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-Wt0cIJ/pocketsphinx/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-UOA_Nf-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-Wt0cIJ/pocketsphinx Traceback (most recent call last): File "/usr/bin/pip", line 9, in load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() File "/usr/lib/python2.7/dist-packages/pip/init.py", line 248, in main return command.main(cmd_args) File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 51: ordinal not in range(128)

我有点厌烦今天看到错误.有人给我一个线索吗?我承认我在编程世界中仍然刚刚起步,但这让我的大脑开始嘶嘶作响.

I'm getting kinda sick of looking at errors for today. Anybody got a clue for me? I'll admit that I am still just getting started in the programming world, but this is making my brain start to sizzle.

推荐答案

正如 Peter Brittain 所说,在机器上安装 libpulse-dev.我可以确认这对我有用:

As mentioned by Peter Brittain, install libpulse-dev on the machine. I can confirm this worked for me:

sudo apt-get install libpulse-dev

这篇关于Pocketsphinx 安装失败?树莓派零 (Raspbian Jessie)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆