bzip2: Cannot exec: No such file or directory
While creating a tarball with bzip2, you may run into this error: "bzip2: Cannot exec: No such file or directory"
bzip2 cannot exec
[root@gnuadmin ~]# tar -cjf bzip2.tar.gz data_file last.log system_logs
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
You must install "bzip2" package to your system in order to resolve this issue.
You can use these commands under;
Debian based distros:
apt-get install bzip2
Red Hat based distros (RPM):
yum install bzip2