tar (child): bzip2: Cannot exec: No such file or directory 错误的解决方法

今天在安装PJSIP文件包的时候,使用tar 命令,对bz2文件进行解压,执行命令

tar -jxvf pjproject-2.3.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

这里其实就是少了解压bzip2的程序,yum安装一下就可以了

yum -y install bzip2

安装成功,重新执行tar -jxvf pjproject-2.3.tar.bz2 文件正常解压

你可能感兴趣的:(asteirsk)