安装juicer
由于我第一次安装 JUICER时遇到了很多问题,现在把这些问题都记录下来,给同样第一次安装使用的同学一点借鉴。
前面已经安装了Torch3和Tracter,这都是为安装Juicer做的准备,现在安装Juicer也容易了。
1,下载源码
wget http://juicer.amiproject.org/juicer/sources/juicer-1.0.tar.gz
2,编译准备
首次编译结果
- -- checking for module 'tracter'
- -- found tracter, version 1.0
- -- checking for module 'torch'
- -- package 'torch' not found
- -- HTK not found
- -- libresample not found
- -- RtAudio not found
- -- Found SPTK: /usr/lib/libSPTK.a
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /juicer/dep/juicer-1.0/build
修改FindTorch3.cmake文件,操作如下:
- set(TORCH3_DIR "/juicer/dep/Torch3")
修改FindHTK.cmake文件,操作如下:
- set(HTK_DIR "/juicer/dep/htk/")
修改FindLibResample.cmake文件,操作如下:
- set(LIBRESAMPLE_DIR "/usr")
- ....
- set(LIBRESAMPLE_LIBRARIES
- ${LIBRESAMPLE_DIR}/lib64/libresample.so
- )
修改FindRtAudio.cmake文件,操作如下:
- set(RTAUDIO_DIR "/juicer/dep/rtaudio-4.0.11/")
如果不这么修改的话,就设置环境变量,效果是一样的。
3,编译
- cmake -D CMAKE_INSTALL_PREFIX=/usr/local/juicer/ ../
结果如下:
- [root@localhost build]# cmake -D CMAKE_INSTALL_PREFIX=/usr/local/juicer/ ../
- -- checking for module 'torch'
- -- package 'torch' not found
- -- Using HTK dir: /juicer/dep/htk/
- -- Using libresample dir: /usr
- -- Using RtAudio dir: /juicer/dep/rtaudio-4.0.11/
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /juicer/dep/juicer-1.0/build
- [root@localhost build]#
torch没有关系,这是因为没有使用torch.pc的原因,我们指定了静态库文件。就是libtorch.a
继续。。。
- [root@localhost build]# make
- [ 2%] Generating htkparse.y.h, htkparse.y.cpp
- /bin/sh: bison: command not found
- make[2]: *** [src/htkparse.y.h] Error 127
- make[1]: *** [src/CMakeFiles/static-lib.dir/all] Error 2
- make: *** [all] Error 2
- [root@localhost build]#
这个小问题,yum install bison
继续。。。
- [root@localhost build]# make
- [ 2%] Generating htkparse.y.h, htkparse.y.cpp
- [ 5%] Generating htkparse.l.cpp
- /bin/sh: flex: command not found
- make[2]: *** [src/htkparse.l.cpp] Error 127
- make[1]: *** [src/CMakeFiles/static-lib.dir/all] Error 2
- make: *** [all] Error 2
这也是小问题,yum install flex
然后就很顺利了,几个主要的命令行都生成了,如下:
- [root@localhost juicer]# cd bin/
- [root@localhost bin]# ls
- aux2eps.pl cdgen gramgen map-labels.pl
- build-wfst do-star-closure.pl juicer untieModels.sh
- build-wfst-mit fstRemoveAux.pl lexgen
- build-wfst-openfst genwfstseqs logical2physical.pl
安装juicer的更多相关文章
- Jade学习(一)之特性、安装
前言 流行的模板 PHP:Smarty SimpleTemplate Xtemplate Savant Java:Velocity FreeMarker Jbyte C#:Dotiquid Sharp ...
- RabbitMQ安装、集群搭建、概念解析
RabbitMQ安装.集群搭建.概念解析 基本概念 为什么会产生MQ 1.解耦:采用异步方式实现业务需求达到解耦的目的. 2.缓冲流量,削峰填谷: 问:为什么会有流量冲击? 答:采用"直接调 ...
- docker——容器安装tomcat
写在前面: 继续docker的学习,学习了docker的基本常用命令之后,我在docker上安装jdk,tomcat两个基本的java web工具,这里对操作流程记录一下. 软件准备: 1.jdk-7 ...
- 网络原因导致 npm 软件包 node-sass / gulp-sass 安装失败的处理办法
如果你正在构建一个基于 gulp 的前端自动化开发环境,那么极有可能会用到 gulp-sass ,由于网络原因你可能会安装失败,因为安装过程中部分细节会到亚马逊云服务器上获取文件.本文主要讨论在不变更 ...
- Sublime Text3安装JsHint
介绍 Sublime Text3使用jshint依赖Nodejs,SublimeLinter和Sublimelinter-jshint. NodeJs的安装省略. 安装SublimeLinter Su ...
- Fabio 安装和简单使用
Fabio(Go 语言):https://github.com/eBay/fabio Fabio 是一个快速.现代.zero-conf 负载均衡 HTTP(S) 路由器,用于部署 Consul 管理的 ...
- gentoo 安装
加载完光驱后 1进行ping命令查看网络是否通畅 2设置硬盘的标识为GPT(主要用于64位且启动模式为UEFI,还有一个是MBR,主要用于32位且启动模式为bois) parted -a optima ...
- Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part3:db安装和升级
Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part3:db安装和升级 环境:OEL 5.7 + Oracle 10.2.0.5 RAC 5.安装Database软件 5. ...
- Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part1:准备工作
Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part1:准备工作 环境:OEL 5.7 + Oracle 10.2.0.5 RAC 1.实施前准备工作 1.1 服务器安装操 ...
随机推荐
- java——平衡二叉树 AVLTree、AVLMap、AVLSet
平衡二叉树:对于任意一个节点,左子树和右子树的高度差不能超过1 package Date_pacage; import java.util.ArrayList; public class AVLTre ...
- java——arr == null || arr.length == 0
这两者是不同的: arr == null; int[] arr = null; arr.length == 0; int[] arr =new int[0];
- my.宝石 --- --- ZC 收集
1. DT PT 头盔 太阳石 物理伤害+8 √ 月亮石 物理防御+12 √ 武器 太阳石 物理伤害+8 √ 舍利子 法术伤害+6 ...
- Unity Screen Screen.currentResolution 当前分辨率
The current screen resolution (Read Only). 当前屏幕的分辨率.(只读) If the player is running in window mode, th ...
- DP:凑零钱问题/最长非降子序列(C++)
你给出一定数额的钱 i 元给我,我利用手中的硬币(m元, j元, k元...)兑换等值的钱给你,要求硬币数最少. 举例:给出1-11的钱,手中硬币有1元,3元,5元. 重点是找到状态和状态转移方程. ...
- linux内核态和用户态小结
一 内核态和用户态的区别 当进程执行系统调用而陷入内核代码中执行时,我们就称进程处于内核状态.此时处理器处于特权级最高的(0级)内核代码.当进程处于内核态时,执行的内核代码会使用当前的内核栈.每个进程 ...
- 关于docker remote api未授权访问漏洞的学习与研究
漏洞介绍: 该未授权访问漏洞是因为docker remote api可以执行docker命令,从官方文档可以看出,该接口是目的是取代docker 命令界面,通过url操作docker. docker ...
- vlh 标签详解
1.vlh:root root标签做为所有vlh标签的根标签. 1)value 在给定的范围内,包含在ValueList或list的变量名. List的实例自动被DefaultListBacke ...
- jwt-simple过期时间不对问题
今天用node写后台,登录认证使用了token,然后就使用了简单的jwt-simple,但是发现设置的过期时间不对,一直没有提示过期,但是明明是已经过期了的时间,于是检查了下jwt-simple的源代 ...
- [转]QT 4.8 静态库编译方法
最最初踏上QT之路是受到了XiaomaGee的指点,相比于常规的窗口程序开发,QT有着以下特点: 1. 优良的跨平台特性(支持Win.Linux.Mac 不同的平台下只需重新编译即可使用) 2. 面向 ...