LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-13-2003, 08:08 PM   #1
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Rep: Reputation: 30
An error when decompressing .tar.bz2 file


lfs@localhost src]$ tar -jxvf binutils-2.13.2.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 exit delayed from previous errors
[lfs@localhost src]$



can anyone help
 
Old 08-13-2003, 08:30 PM   #2
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
did you try using bzip first, like bzip2 -d name of file to uncompress to tar format first. is bzip2 installed on your system?
 
Old 08-13-2003, 09:21 PM   #3
contrasutra
Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
Try:
Code:
file binutils-2.13.2.tar.bz2
and see if its actually a tar.bz2
 
Old 08-13-2003, 09:35 PM   #4
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
[safrout@localhost Desktop]$ file binutils-2.13.2.tar.bz2
binutils-2.13.2.tar.bz2: bzip2 compressed data, block size = 900k
[safrout@localhost Desktop]$
 
Old 08-14-2003, 05:21 PM   #5
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
did you try bzip2 -d to decompress the file first? then the tar command after that.
 
Old 08-14-2003, 08:02 PM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
You're in two different directories in the two examples.

In the first, you're in a "src" directory. In the second, you're in a "Desktop" directory.

Does the binutils file exist in both directories? If not, you need to provide the full path to the file to untar it in your first example. Something like:

[lfs@localhost src]$ tar xvjf /your/path/here/Desktop/binutils-2.13.2.tar.bz2
 
Old 08-15-2003, 04:49 PM   #7
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
yes it was in the src dir then i copied it to the desktop dir

and i figured out that the probelm that bzip2 was not installed correctly so i managed to reinstall it agian and it is now working perfectly
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening of a tar.bz2 file Gins Linux - General 8 04-08-2005 04:42 PM
how to make a tar.bz2 file bruse Linux - Newbie 5 03-30-2005 02:42 AM
Unpacking a .tar.bz2 file njschroe Linux - Software 1 01-31-2005 04:25 PM
how to compile a file of .tar.bz2 zameer_india Linux - Software 7 12-21-2004 01:15 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration