当前位置: 首页 > 工具软件 > Lbzip2 > 使用案例 >

tar (child): lbzip2: Cannot exec: No such file or directory 解决方法

仇航
2023-12-01

tar (child): lbzip2: Cannot exec: No such file or directory 解决方法

今天用tar命令解压文件的时候出错了,信息如下:

tar (child): lbzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

解决方法很简单,只要安装bzip2就行了,yum安装的命令如下:

yum -y install bzip2

如果虚拟机无法联网,也可以源码安装,下载:bzip2-1.0.6.tar,安装过程如下:

tar zxvf bzip2-1.0.6.tar.gz
cd bzip2-1.0.6/
#为编译做准备,创建libbz2.so动态链接库(这一步很重要,安装python的时候如果没有这一步,python安装不上bz2模块):
make -f Makefile-libbz2_so
make && make install

 类似资料: