Linux安装Ekho失败

l1813779684 2014-12-05 04:48:04
最近做一个项目需要用到语音播报,本来是WIndows平台,现在要转Linux平台,在网上找了半天貌似只看到Ekho支持TTS中文。根据Ekho官网描述进行安装,总是失败,具体步骤如下:
如果你使用的是Ubuntu Linux 8.04,你可以通过下面的指令获取deb包并执行以下命令:

$ sudo dpkg -i ekho_x.y-zzz.i386.deb
你也可以通过下面的指令从源代码编译:

$ tar xjvf ekho-xxx.tar.bz2
$ cd ekho-xxx
$ ./configure
$ make
$ sudo make install
$ ekho "hello"
如果上面的命令安装不成功,通常是因为缺少libsndfile、libportaudio、libvorbis-dev和liblame-dev的软件包。请阅读数据包里的INSTALL说明文件。

关于余音的用法,请通过以下命令获取:

$ ekho -h
最后在网上翻墙下载了上面的依赖包:

安装依赖包之后还是不行,报错:
./config的时候报错:
configure: error: in `/usr/ekho-5.7':
configure: error: sndfile test failed
请教什么原因?
...全文
1022 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
l1813779684 2014-12-12
  • 打赏
  • 举报
回复
引用
It appears you are missing libcap-dev. make sure you have this package installed and try again
通过apt-get install libcap-dev安装了该包,make的时候还是出现那个错误!如下: root@parker-X550CC:/usr/ekho-5.7/pulseaudio-4.0# apt-get install libcap-dev 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 libcap-dev 已经是最新的版本了。 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 333 个软件包未被升级。
  • 打赏
  • 举报
回复
引用 9 楼 l1813779684 的回复:
[quote=引用 8 楼 micropentium6 的回复:] [quote=引用 7 楼 l1813779684 的回复:] [quote=引用 5 楼 micropentium6 的回复:] if you are sure libsndfile has been installed, where is the so file? post ./configure --help for ekho here then
这个只是看命令参数,sudo tar zxvf libsndfile -1.0.25.tar.gz安装了libsndfile[/quote] that's not installation at all. It simply extracts files from tar.gz Even it contains the binary that fits ur OS. You will still have to put at a location that OS could recognize and pick it up. No offense, is this the first time you work on Linux?[/quote] 谢谢!部分安装好了!除了pulseaudio之外libsndfile/lame/libvorbis都能安装了! ./configure的时候没报错,但是出了warning: ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have D-Bus support enabled. It is strongly recommended that you enable D-Bus support if your platform supports it. Many parts of PulseAudio use D-Bus, from ConsoleKit interaction to the Device Reservation Protocol to speak to JACK, Bluetooth support and even a native control protocol for communicating and controling the PulseAudio daemon itself. ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have udev support enabled. It is strongly recommended that you enable udev support if your platform supports it as it is the primary method used to detect hardware audio devices (on Linux) and is thus a critical part of PulseAudio on that platform. ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have speex support enabled. It is strongly recommended that you enable speex support if your platform supports it as it is the primary method used for audio resampling and is thus a critical part of PulseAudio on that platform. ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== 然后make的时候出错: daemon/caps.c: In function ‘pa_drop_caps’: daemon/caps.c:83:5: error: unknown type name ‘cap_t’ cap_t caps; ^ daemon/caps.c:84:5: warning: implicit declaration of function ‘cap_init’ [-Wimplicit-function-declaration] pa_assert_se(caps = cap_init()); ^ daemon/caps.c:85:5: warning: implicit declaration of function ‘cap_clear’ [-Wimplicit-function-declaration] pa_assert_se(cap_clear(caps) == 0); ^ daemon/caps.c:86:5: warning: implicit declaration of function ‘cap_set_proc’ [-Wimplicit-function-declaration] pa_assert_se(cap_set_proc(caps) == 0); ^ daemon/caps.c:87:5: warning: implicit declaration of function ‘cap_free’ [-Wimplicit-function-declaration] pa_assert_se(cap_free(caps) == 0); ^ make[3]: *** [pulseaudio-caps.o] 错误 1 make[3]:正在离开目录 `/usr/ekho-5.7/pulseaudio-4.0/src' make[2]: *** [all] 错误 2 make[2]:正在离开目录 `/usr/ekho-5.7/pulseaudio-4.0/src' make[1]: *** [all-recursive] 错误 1 make[1]:正在离开目录 `/usr/ekho-5.7/pulseaudio-4.0' make: *** [all] 错误 2 [/quote] It appears you are missing libcap-dev. make sure you have this package installed and try again
zhxianbin 2014-12-11
  • 打赏
  • 举报
回复
看看 pulseaudio 是不是还依赖其他的库
l1813779684 2014-12-11
  • 打赏
  • 举报
回复
引用 4 楼 zhxianbin 的回复:
[quote=引用 3 楼 l1813779684 的回复:] [quote=引用 2 楼 zhxianbin 的回复:] libsndfile 正常安装了吗?
libsndfile就是上面那个,怎么看正常安装了没?上面截图文件都是安装了的。是版本的问题么?[/quote] make make install 没有错误就是正常安装了[/quote] 谢谢!部分安装好了!除了pulseaudio之外libsndfile/lame/libvorbis都能安装了! 安装pulseaudio的时候,出问题: ./configure的时候没报错,但是出了warning: ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have D-Bus support enabled. It is strongly recommended that you enable D-Bus support if your platform supports it. Many parts of PulseAudio use D-Bus, from ConsoleKit interaction to the Device Reservation Protocol to speak to JACK, Bluetooth support and even a native control protocol for communicating and controling the PulseAudio daemon itself. ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have udev support enabled. It is strongly recommended that you enable udev support if your platform supports it as it is the primary method used to detect hardware audio devices (on Linux) and is thus a critical part of PulseAudio on that platform. ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have speex support enabled. It is strongly recommended that you enable speex support if your platform supports it as it is the primary method used for audio resampling and is thus a critical part of PulseAudio on that platform. ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== 然后make的时候出错: daemon/caps.c: In function ‘pa_drop_caps’: daemon/caps.c:83:5: error: unknown type name ‘cap_t’ cap_t caps; ^ daemon/caps.c:84:5: warning: implicit declaration of function ‘cap_init’ [-Wimplicit-function-declaration] pa_assert_se(caps = cap_init()); ^ daemon/caps.c:85:5: warning: implicit declaration of function ‘cap_clear’ [-Wimplicit-function-declaration] pa_assert_se(cap_clear(caps) == 0); ^ daemon/caps.c:86:5: warning: implicit declaration of function ‘cap_set_proc’ [-Wimplicit-function-declaration] pa_assert_se(cap_set_proc(caps) == 0); ^ daemon/caps.c:87:5: warning: implicit declaration of function ‘cap_free’ [-Wimplicit-function-declaration] pa_assert_se(cap_free(caps) == 0); ^ make[3]: *** [pulseaudio-caps.o] 错误 1 make[3]:正在离开目录 `/usr/ekho-5.7/pulseaudio-4.0/src' make[2]: *** [all] 错误 2 make[2]:正在离开目录 `/usr/ekho-5.7/pulseaudio-4.0/src' make[1]: *** [all-recursive] 错误 1 make[1]:正在离开目录 `/usr/ekho-5.7/pulseaudio-4.0' make: *** [all] 错误 2
l1813779684 2014-12-11
  • 打赏
  • 举报
回复
引用 8 楼 micropentium6 的回复:
[quote=引用 7 楼 l1813779684 的回复:] [quote=引用 5 楼 micropentium6 的回复:] if you are sure libsndfile has been installed, where is the so file? post ./configure --help for ekho here then
这个只是看命令参数,sudo tar zxvf libsndfile -1.0.25.tar.gz安装了libsndfile[/quote] that's not installation at all. It simply extracts files from tar.gz Even it contains the binary that fits ur OS. You will still have to put at a location that OS could recognize and pick it up. No offense, is this the first time you work on Linux?[/quote] 谢谢!部分安装好了!除了pulseaudio之外libsndfile/lame/libvorbis都能安装了! ./configure的时候没报错,但是出了warning: ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have D-Bus support enabled. It is strongly recommended that you enable D-Bus support if your platform supports it. Many parts of PulseAudio use D-Bus, from ConsoleKit interaction to the Device Reservation Protocol to speak to JACK, Bluetooth support and even a native control protocol for communicating and controling the PulseAudio daemon itself. ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have udev support enabled. It is strongly recommended that you enable udev support if your platform supports it as it is the primary method used to detect hardware audio devices (on Linux) and is thus a critical part of PulseAudio on that platform. ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have speex support enabled. It is strongly recommended that you enable speex support if your platform supports it as it is the primary method used for audio resampling and is thus a critical part of PulseAudio on that platform. ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== 然后make的时候出错: daemon/caps.c: In function ‘pa_drop_caps’: daemon/caps.c:83:5: error: unknown type name ‘cap_t’ cap_t caps; ^ daemon/caps.c:84:5: warning: implicit declaration of function ‘cap_init’ [-Wimplicit-function-declaration] pa_assert_se(caps = cap_init()); ^ daemon/caps.c:85:5: warning: implicit declaration of function ‘cap_clear’ [-Wimplicit-function-declaration] pa_assert_se(cap_clear(caps) == 0); ^ daemon/caps.c:86:5: warning: implicit declaration of function ‘cap_set_proc’ [-Wimplicit-function-declaration] pa_assert_se(cap_set_proc(caps) == 0); ^ daemon/caps.c:87:5: warning: implicit declaration of function ‘cap_free’ [-Wimplicit-function-declaration] pa_assert_se(cap_free(caps) == 0); ^ make[3]: *** [pulseaudio-caps.o] 错误 1 make[3]:正在离开目录 `/usr/ekho-5.7/pulseaudio-4.0/src' make[2]: *** [all] 错误 2 make[2]:正在离开目录 `/usr/ekho-5.7/pulseaudio-4.0/src' make[1]: *** [all-recursive] 错误 1 make[1]:正在离开目录 `/usr/ekho-5.7/pulseaudio-4.0' make: *** [all] 错误 2
  • 打赏
  • 举报
回复
引用 7 楼 l1813779684 的回复:
[quote=引用 5 楼 micropentium6 的回复:] if you are sure libsndfile has been installed, where is the so file? post ./configure --help for ekho here then
这个只是看命令参数,sudo tar zxvf libsndfile -1.0.25.tar.gz安装了libsndfile[/quote] that's not installation at all. It simply extracts files from tar.gz Even it contains the binary that fits ur OS. You will still have to put at a location that OS could recognize and pick it up. No offense, is this the first time you work on Linux?
l1813779684 2014-12-09
  • 打赏
  • 举报
回复
引用 5 楼 micropentium6 的回复:
if you are sure libsndfile has been installed, where is the so file? post ./configure --help for ekho here then
这个只是看命令参数,sudo tar zxvf libsndfile -1.0.25.tar.gz安装了libsndfile
l1813779684 2014-12-09
  • 打赏
  • 举报
回复
引用 3 楼 l1813779684 的回复:
[quote=引用 2 楼 zhxianbin 的回复:] libsndfile 正常安装了吗?
libsndfile就是上面那个,怎么看正常安装了没?上面截图文件都是安装了的。是版本的问题么?[/quote] 我是这样安装的:sudo tar zxvf libsndfile -1.0.25.tar.gz。这样安装有什么问题?
  • 打赏
  • 举报
回复
if you are sure libsndfile has been installed, where is the so file? post ./configure --help for ekho here then
zhxianbin 2014-12-08
  • 打赏
  • 举报
回复
引用 3 楼 l1813779684 的回复:
[quote=引用 2 楼 zhxianbin 的回复:] libsndfile 正常安装了吗?
libsndfile就是上面那个,怎么看正常安装了没?上面截图文件都是安装了的。是版本的问题么?[/quote] make make install 没有错误就是正常安装了
l1813779684 2014-12-08
  • 打赏
  • 举报
回复
引用 2 楼 zhxianbin 的回复:
libsndfile 正常安装了吗?
libsndfile就是上面那个,怎么看正常安装了没?上面截图文件都是安装了的。是版本的问题么?
zhxianbin 2014-12-05
  • 打赏
  • 举报
回复
libsndfile 正常安装了吗?
l1813779684 2014-12-05
  • 打赏
  • 举报
回复

18,773

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧