CentOS 安装 xunsearch 出错 tar (child): bzip2: Cannot exec
下载 xunsearch 代码
cd /opt
wget http://www.xunsearch.com/download/xunsearch-full-latest.tar.bz2
解压到当前目录
tar xjf xunsearch-full-latest.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
错误原因是阿里云 CentOS 7 默认没有安装 bzip2 解压工具,直接使用 yum 安装即可。
yum install bzip2 -y