Find the answer to your Linux question:
Results 1 to 7 of 7
i cant untar any files. I have the files on my desktop i open a terminal and i tried 2 ways but this is what i get. # tar xvf ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! MonkeySniper>'s Avatar
    Join Date
    Dec 2005
    Location
    Texas
    Posts
    24

    Cant untar


    i cant untar any files. I have the files on my desktop i open a terminal and i tried 2 ways but this is what i get.

    # tar xvf unrar_2.71.tar.gz
    tar: unrar_2.71.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now


    and this one too

    tar -zxvpf unrar_2.71.tar.gz
    tar: unrar_2.71.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors

    i looked on sites and this is what they say to do to untar but nothing i keep getting errors in Mandriva 06 to untar a file.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Have you tried:

    # tar -xvf unrar_2.71.tar.gz

    I added the -

    <edit> you could also try # tar -xvfz unrar_2.71.tar.gz
    Last edited by oz; 02-12-2006 at 09:54 PM.
    oz

  3. #3
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    when you execute those commands, the command need to be done in the same directory where the file is present, or you need to specify the location of the file.

    in 1st case, do:
    Code:
    cd /home/user_name/Desktop
    tar xzvf whatever
    in 2nd case, do
    Code:
    tar xzvf /home/user_name/Desktop/whatever
    Life is complex, it has a real part and an imaginary part.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! MonkeySniper>'s Avatar
    Join Date
    Dec 2005
    Location
    Texas
    Posts
    24
    wow ok that one with /home/marcos/Desktop/unrar-2.71.tar.gz/ it worked i guess it gave me this

    unrar-2.71/
    unrar-2.71/block.c
    unrar-2.71/comment.c
    unrar-2.71/compr.c
    unrar-2.71/compress.h
    unrar-2.71/const.h
    unrar-2.71/crccrypt.c
    unrar-2.71/extract.c
    unrar-2.71/getargs.c
    unrar-2.71/getopt.c
    unrar-2.71/global.c
    unrar-2.71/license.txt
    unrar-2.71/list.c
    unrar-2.71/lochead.eng
    unrar-2.71/loctoup.eng
    unrar-2.71/os.c
    unrar-2.71/os.h
    unrar-2.71/others.c
    unrar-2.71/rdwrfn.c
    unrar-2.71/readme.txt
    unrar-2.71/smallfn.c
    unrar-2.71/somefn.c
    unrar-2.71/unpack.c
    unrar-2.71/unpold.c
    unrar-2.71/unrar.c
    unrar-2.71/Makefile
    but now what do i do ?

  6. #5
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    take a look at the readme file, i.e. cat readme.txt (remember you need to supply the path to readme.txt file).
    Life is complex, it has a real part and an imaginary part.

  7. #6
    Just Joined! MonkeySniper>'s Avatar
    Join Date
    Dec 2005
    Location
    Texas
    Posts
    24
    is says all i have to do is complie UNRAR.C only whcih i dont know how o do this at all.

  8. #7
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    hmm, ok,
    There is a Makefile in that directory, it should cntain the commands to be used to compile the program, what you should do is this:
    Code:
    cd /home/user_name/Desktop/unrar-2.71/
    make
    If it returns make not found, use urpmi to install make, and perhaps gcc as well. i.e urpmi make and then urpmi gcc.
    Life is complex, it has a real part and an imaginary part.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •