kaldi 记录:移动 kaldi根目录之后的报错——libkaldi-util.so: cannot open shared object file: No such file or directo

kaldi在ubuntu下32位的静态库和动态库的编译(以kaldi-5.2版本为例) kaldi的默认编译方式为64位,一般训练模型安装64位的好。本人因需要kaldi里32位的.a和.so的库,所以将源码以32位的方式编译了一遍,具体步骤如下: 1,源码下载,在github上,https://github.com/kaldi-asr/kaldi/tree/5.2 2,安装32位的Atlas,如果你事先安装了64位的kaldi,那么在你的系统里一定存在/usr/lib/atla... 阅读详情

1. 问题:移动kaldi根目录导致运行报错

由于各种原因,移动了kaldi 的根目录(实际上是删除了原kaldi,使用的备份版本),在使用 extract_xvectors.sh 做测试时候发现出问题了:

run.pl: 10 / 10 failed, log is in exp/make_mfcc_test/make_mfcc_data_test.*.log

然后使用cat查看:
其中,最关键的是类似这样的问题 xxx: cannot open shared object file: No such file or directory,如

copy-feats: error while loading shared libraries: libkaldi-util.so: cannot open shared object file: No such file or directory

2. 解决:将缺少的库名移动到/usr/lib/

  • 首先,在kaldi安装的主文件夹里查找缺少的库所在的位置:find . -name xxx
  • 然后,将其复制到系统的/usr/lib/下面:cp xxx /usr/lib/
  • 再去尝试运行代码,如果还是出错,反复执行这个操作即可!

在这里插入图片描述
后面的很多都是缺少的库文件,我这里直接进行cp复制了。

3. 后续

应该是有其他办法,比如设置PATH相关的方法,这里并没有深入了解。

参考:

  1. kaldi-error while loading shared libraries解决方法
  2. 【kaldi】报错:fstarcsort: error while loading shared libraries: libfstscript.so.10:
  3. error while loading shared libraries: libkaldi-base.so: cannot open shared object file: No such file or directory
【GCC编译】运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file 运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory   运行编译后的程序报错 error while loading shared libraries: lib*.s... 阅读详情

相关推荐

利用AI辅助工具Codex在30分钟内高效生成发明专利说明书草案

Codex 是什么?简单说,它是 OpenAI 推出的一个高级 AI 工作平台,最初定位是软件开发辅助工具,但现在它的能力边界已经远远超出了写代码。根据 OpenAI 官方信息,每周有超过 500 万人使用 Codex,其中 40% 的新用户是非开发者,包括分析师、营销人员、研究人员等。这意味着 Codex 正在从一个程序员专属工具,演变为一个面向广泛知识工作者的生产力中枢。 那么,它和我们今天要谈的“写发明专利”有什么关系?核心在于 Codex 的“角色专属插件”和“上下文构建”能力。它不再只是根据零散的

weixin_29053067的博客 320

已解决:动态库加载失败:cannot open shared object file: No such file or directory

1. 问题描述 使用动态库编译链接main.c后,得到名为main的可执行程序。但是在运行main可执行程序时,程序报错: ./main: error while loading shared libraries: libcalc.so: cannot open shared object file: No such file or directory 如下图所示: 2. 问题出现的原因 可执行程序在加载libxxx.so库时,找不到该库。至于找不到的情况分为两种:系统里根本不存在libxxx.so库;l

sally的jerry 5万+

不止于HTTPS请求:用VS2022编译的libcurl玩转文件上传和代理设置

本文详细介绍了如何使用VS2022编译的libcurl库实现文件上传和高级代理配置。通过实战代码示例,展示了多部分表单上传、二进制数据上传以及各种代理设置技巧,帮助C++开发者提升网络编程能力。

weixin_28595749的博客 206

# kaldi error

kaldi error /kaldi/src/lib/libkaldi-base.so(kaldi::MessageLogger::LogMessage() const+0x82c) [0x7fba5c11f29a] fstdeterminizestar(kaldi::MessageLogger::LogAndThrow::operator=(kaldi::MessageLogger const&)+0x21) [0x424391] /kaldi/src/lib/libkaldi-fstext.so

weixin_45341031的博客 647

STM32F105双路CAN通讯无法进入接收中断问题及解决方法

STM32F105RBT6双路CAN通讯无法进入接收中断问题及解决方法

m0_62383223的博客 3442

QMT量化交易实战:如何用通达信预警数据自动买卖股票(附完整Python代码)

本文详细介绍了如何利用QMT平台结合通达信预警数据实现股票自动化交易,提供完整的Python代码实现。通过实时监控通达信预警板块文件,系统自动执行买卖操作,提升交易效率。文章涵盖系统架构设计、数据对接、信号处理、订单执行等核心模块,适合量化交易初学者和通达信用户参考实践。

weixin_29251567的博客 678

Linux动态库常见问题之-“cannot open shared object file No such file or directory“的解决办法

Linux编写程序时,会经常的接触动态库,而在程序运行时可能会遇到类似于:libxxx.so cannot open shared object file No such file or directory的问题,这个代表什么含义,该怎么解决呢? 含义 这个问题代表的含义是,可执行程序在加载libxxx.so库时,找不到该库。至于找不到的情况分为两种:系统里根本不存在libxxx.so库;libx...

飞翔de刺猬 11万+

深入Android构建系统:一次修改ro.vendor.build.fingerprint失败的排查与解决记录

本文深入探讨了Android构建系统中修改ro.vendor.build.fingerprint的完整解决方案。通过分析vendor分区的特殊地位和构建指纹的生成路径,提供了三种实战修改方法,并揭示了指纹修改可能遇到的陷阱与对策,帮助开发者彻底解决这一常见问题。

weixin_30621711的博客 141

cannot open shared object file: No such file or directory 加载库失败的原因及解决

假如是我们自己写的动态库,其实还有一种情况也会导致报“cannot open shared object file”, 那就是库本身有问题,这种问题一般是库的某个“symbol” 即符号没找到

holidayi的博客 3万+

【GameFramework框架内置模块】10、本地化(Localization)

本地化(Localization),也就是我们所说的不同地区的语言适配,比如说中文版“你好”,英文版是“Hello”。GameFramework在本地化方面,不仅支持文本的本地化,还支持任意资源的本地化,比如说游戏中释放烟花的特效也可以做出不同地区的版本,使得中文版烟花里面的“新年好”字样的特效,在英文版里面是“Happy New Year”字样的特效。

优快云博客专家,Unity3D高级软件工程师,《Unity 3D从入门到实战》作者。 2301

固定效应模型-以stata为工具

固定效应模型(Fixed Effects Model)是一种面板数据分析方法,通过引入个体固定效应来控制个体间的异质性,并更准确地估计解释变量对因变量的影响。它在许多经济、社会科学和健康研究中被广泛应用。

侯小啾技术博客 2839

缺少共享库:ImportError: libxx: cannot open shared object file: No such file or directory

import cv2出现这类错误:ImportError: libSM.so.6: cannot open shared object file: No such file or directoryImportError: libXext.so.6: cannot open shared object file: No such file or directory这是由于缺少共享库centos 6...

hanzhangliu_lkzy的博客 1万+

Android影像系统架构专家面试指南

传音控股招聘影像系统架构专家,要求8年以上开发经验,5年架构设计经验,精通Android Camera开发及性能优化。该职位需负责手机影像软件架构设计、技术选型及跨平台适配,重点解决"快稳省"体验优化。面试评估聚焦三大维度:技术方面考察HAL层架构设计、多帧合成优化等能力;系统开发关注低光降噪等场景的算力平衡;团队管理侧重跨部门协作与项目交付。候选人需展现对CamX-CHI等架构的深入理解,具备量化分析性能指标的能力,并能主导旗舰机影像项目全周期落地。

郑伟强dev的专栏 943

解决ImportError:lib***.so--cannot open shared object file: No such...(pycharm/clion报错但shell不报错)

(Ubuntu)Clion报错无法找到.so共享库(但shell可正常执行)解决办法(pycharm出现类似报错同理)/home/luoxinhao/Desktop/mywork/bin/Infantry: error while loading shared libraries: libopencv_features2d.so.4.5: cannot open shared object file: No such file or directory

m0_58348465的博客 8882

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

kaldi : get_word_map.pl: No such file or directory

kaldi get_word_map.pl

qq_37198234的博客 244

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

解决ImportError:lib***.so--cannot open shared object file: No such file or directory

1-软链接方式 1.1 找到文件 find / -name lib**.so (缺失的动态链接库) 1.2 建立软链接 ln -s /path/to/lib**.so /usr/lib 1.3sudo ldconfig (后两种没有试过) 2-修改LD_LIBRARY_PATH exp...

hhhuua的博客 4万+

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

解决 ImportError: libcublas.so.10.0: cannot open shared object file: No such file

运行import tensorflow时报错: ImportError: libcublas.so.10.0: cannot open shared object file: No such file 原因: tensorflow版本与CUDA的版本不对应 Reference: 查看CUDA版本:https://blog.csdn.net/baidu_32936911/article/deta...

沙哈 4万+

解决 ImportError: libcublas.so.9.0: cannot open shared object file: No such file

本方法可以解决类似:ImportError: libcublas.so.【cuda版本】: cannot open shared object file: No such file问题 可能原因,CUDA版本不对 1、查看下版本信息 cat /usr/local/cuda/version.txt 2、根据CUDA和tensorflow版本对应的关系表,检查自己的版本是否匹配 3、如果不...

Lisen’s blog 4万+

ImportError: libghmm.so.1: cannot open shared object file: No such file or directory 解决方案

 安装了 GHMM 的 Python 模块之后, 一执行 “import ghmm”, 就直接报错。 ImportError: libghmm.so.1: cannot open shared object file: No such file or directory 终于,在网上找到了解决方案。http://hiankun.blogspot.com/

汤永康 de 研究笔记 5728

错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file

分析原因:ld提示找不到库文件,而库文件就在当前目录中。 链接器ld默认的目录是/lib和/usr/lib,如果放在其他路径也可以,需要让ld知道库文件在哪里。方法1: 编辑/etc/ld.so.conf文件,在新的一行中加入库文件所在目录;运行ldconfig,以更新/etc/ld.so.cache文件;方法2: 在/etc/ld.so.conf.d/目录下新建任何以.conf为后缀的文件,

alexander_phper的博客 5416

kaldi使用的相关问题和解决

一、编译相关 1.libcublas.so.7.5: cannot open shared object file: No such file or directory 原因:使用的kaldi是从GPU机器上面复制来 解决:需要将kaldi在CPU机器上面重新进行编译 2.GPU编译过的kaldi在CPU上面编译报错路径不对 cd tools rm -rf openfest

xmdxcsj的专栏 2294

OSError: [Errno 2] No such file or directory

问题:   File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child     raise child_exception OSError: [Errno 2] No such file or directory       跟JDK的PATH有关,在终端输入: java -version 如果出现以

3万+

Java JNI调用kaldi动态链接库(Linux版本)

最近项目要求需要重新写一个kaldi的新模块,并且要用java去调用kaldi的这个模块。因为之前没有接触过JNI以及对kaldi底层配置,编译原理不熟悉,导致自己吃了很多碰,浪费了好多时间,再外加上kaldi这块的资料是真的不太多,因此自己写一个博客,一方面作为备忘录,另一方面希望以后能帮到有些kaldi的学习和使用者。 这个过程中有两篇博客对我帮助很大,在这对这两位表示感谢,帮了很大的忙: ...

zhangming0411的博客 1435

kaldi中libcudart.so.10.0: cannot open shared object file: No such file or directory

重新编译kaldi,解决。

hdm314的博客 314
上一篇: linux:source 命令
下一篇: linux 相关:ubuntu 设置 .bashrc之后 重登不起作用
Robin_Pi
博客等级 码龄9年 2万+粉丝 632原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值