今天用tar命令解压文件的时候出错了,信息如下:
[root@localhost ~]# tar xf php-5.6.8.tar.bz2
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
然后经过测试:
[root@localhost ~]# tar xf php-5.6.8.tar.bz2
发现解压成功!!!