kalai 安装之:make 命令kaldi make[1]: Entering directory '/home/liuzc/zcliu/kaldi/src/base' cp: cannot create regular file 'version.h': Permission denied

问题:

进入kaldi工具包的src目录下,执行

make

命令进行编译,结果报错。

liuzc@DESKTOP-4V8EUH7:~/zcliu/kaldi/src$ make
The version of configure script matches kaldi.mk version. Good.
mkdir /home/liuzc/zcliu/kaldi/src/lib
make -C base
make[1]: Entering directory '/home/liuzc/zcliu/kaldi/src/base'
cp: cannot create regular file 'version.h': Permission denied
Makefile:11: *** .  Stop.
make[1]: Leaving directory '/home/liuzc/zcliu/kaldi/src/base'
Makefile:164: recipe for target 'base' failed
make: *** [base] Error 2

解决:

先看是否为 root 权限

Check if you are really superuser with:

whoami

若不是:

su -

进入root 权限,然后进行 file 所在的目录,重新执行命令

posted @ 2023-01-12 15:19  谦曰盛  阅读(367)  评论(0编辑  收藏  举报