tar解压bz2文件报错

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

tar -jvxf jemalloc-3.6.0.tar.bz2 ./nginx/

tar (child): bzip2: 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

服务器不能联网,把压缩包传上去

tar zxvf bzip2-****.tar.gz
cd bzip2-*****
make && make install

原文地址:https://www.cnblogs.com/timor19/p/12165883.html

时间: 2024-07-30 09:10:16

tar解压bz2文件报错的相关文章

dbeaver解压后启动报错Could not resolve module: org.eclipse.compare

dbeaver工具对很多数据库都支持,但目前对oracle支持的不是特别好,mysql还行吧,其他的还没怎么使用.下载dbeaver解压版后,点击dbeaver.exe刚开始是会报错误的 在对应的目录下查看日志文件中有 !MESSAGE FrameworkEvent ERROR !STACK 0 org.osgi.framework.BundleException: Could not resolve module: org.eclipse.compare [17] Unresolved req

如何解压.bz2文件包

.bz2  解压1:bzip2 -d FileName.bz2  解压2:bunzip2 FileName.bz2  压缩: bzip2 -z FileName  .tar.bz2  解压:tar jxvf FileName.tar.bz2        或tar --bzip xvf FileName.tar.bz2  压缩:tar jcvf FileName.tar.bz2 DirName

python程序解压rar压缩包报错

运行如下python程序报错Couldn't find path to unrar library的解决办法: #!/usr/bin/python #-*- coding:utf-8 -*- from unrar import rarfile file = rarfile.RarFile('/root/ssl.rar') file.extractall('/tmp') 备注:rarfile已经通过pip3 install rarfile安装,但是unrar用pip3虽然提示成功但是有问题,所以手

解压bzi2文件出错,分析和处理

在使用tar 解压bz2文件时报错 tar jxf x.tar.bz2 tar (child): bzip2: 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 对于习惯了伸手就来的我来说,想都没想直接复制报错网上开始搜了起来

linux系统unzip文件报错的解决方案

data.zip文件有4G多,解压的时候出问题了. Archive:  data.zip End-of-central-directorysignature not found.  Either thisfile is not a zipfile, or itconstitutes one disk of a multi-partarchive.  In the latter case the centraldirectory and zipfile comment will be found

hadoop平台读取文件报错

背景: 生产环境有个脚本执行读取st层表数据时出现IO错误,查看表目录下的文件,都是压缩后的文件.详细信息如下: Task with the most failures(4): ----- Task ID: task_201408301703_172845_m_003505 URL: http://master:50030/taskdetails.jsp?jobid=job_201408301703_172845&tipid=task_201408301703_172845_m_003505 -

解压tar.gz文件报错gzip: stdin: not in gzip format解决方法

解压tar.gz文件报错gzip: stdin: not in gzip format解决方法 在解压tar.gz文件的时候报错 1 2 3 4 5 [[email protected] Downloads]$ tar -zxvf clion-141.351.4.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now 原来原因是这个

tar 解压某个指定的文件或者文件夹

1. 先查看压缩文档中有那些文件,如果都不清楚文件内容,然后就直接解压,这个是不可能的 使用#tar -tf 压缩包名称,可以查看压缩包内容 2.压缩某个文件 tar -zxvf zabbix.tar.gz  zabbix-2.4.7/upgrades/dbpatches/2.2/README 看格式是解压的命令,然后加上需要解压的文件路径,就可以了. 3. 解压某个指定的文件夹 tar -zxvf 欲解压的tar文件  欲解压的文件夹路径 看完是不是非常简单,其实就是加上你需要解压的文件夹或者

[Linux] 解压tar.gz文件,解压部分文件

遇到数据库无法查找问题原因,只能找日志,查找日志的时候发现老的日志都被压缩了,只能尝试解压了   数据量比较大,只能在生产解压了,再进行查找 文件名为*.tar.gz,自己博客以前记录过解压方法: http://www.cnblogs.com/garinzhang/archive/2013/04/23/3037147.html 使用tar –zxvf *.tar.gz无法解压,明明好好的tar.gz文件能这样解压的,为什么不能解压?   后来想了想,是不是先要解压*.gz文件,使用gunzip