[[+content_image]]
Z
Z
zzmaster2018-02-12 15:10:09
CentOS
zzmaster, 2018-02-12 15:10:09

Why can't tar see the file?

I install PhantomJS according to this manual https://www.bonusbits.com/wiki/HowTo:Install_Phant...
I downloaded the archive to the current folder

[[email protected] ~]# pwd
/root

2018-02-12 14:51:30 (497 KB/s) - ‘phantomjs-1.9.8-linux-x86_64.tar.bz2’ saved [13163325/13163325]

mkdir -p /opt/phantomjs- folder created
file in place:
[[email protected] ~]# ls -lh phantomjs-1.9.8-linux-x86_64.tar.bz2
-rw-r--r-- 1 root root 13M Oct 25  2014 phantomjs-1.9.8-linux-x86_64.tar.bz2

but tar does not see it:
[[email protected] ~]# tar -xjvf ./phantomjs-1.9.8-linux-x86_64.tar.bz2 --strip-components 1 /opt/phantomjs/
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

without ./ - the same .. clingy tenderness.
I do not know what to do...

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
S
Saboteur, 2018-02-12
@zzmaster

Tar sees everything. Tar sees that the file is packed with bzip2 and cannot find a bzip2 to decompress.
By itself, tar does not know how, it needs bzip2 - install it on the system and everything will be fine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question