LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Lost (https://www.linuxquestions.org/questions/linux-newbie-8/lost-199673/)

klfreese 06-30-2004 08:23 PM

Lost
 
I have read and read and tried and tried.
could someone give me complete step by step instructions from where to save the download to the unpacking commands compiling and installing of

gimp-print-5.0.0-beta1.tar.bz2

i have tried bzip2 -d gimp-print-5.0.0-beta1.tar.bz2

it says there is no file or directory

Tinkster 06-30-2004 08:29 PM

tar xvjf <packagename>


Btw, the title of your post is not a very wise choice,
people may think you're talking about chemical warfare :)

How to unpack a bz2 file would have been better.


Cheers,
Tink

klfreese 06-30-2004 08:34 PM

This is what i get


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
linux:/tmp #

klfreese 06-30-2004 08:36 PM

and if i use thiscommand i get this


linux:/tmp # bzip2 -d gimp-print-5.0.0-beta1.tar.bz2
bzip2: Can't open input file gimp-print-5.0.0-beta1.tar.bz2: No such file or directory.
linux:/tmp #

jrdioko 06-30-2004 08:44 PM

That "not in gzip format" is what you get when you use z instead of j with the tar command... maybe you mistyped it? Here's the steps:

1. Download to /usr/local/src (the normal place for putting the source code of programs, although it doesn't really matter)
2. tar jxvf gimp-print-5.0.0-beta1.tar.bz2 (j tells it to extract a bz2 file, x tells it to extract the tar file, v means "verbose" and will write out what is being unpacked to the screen, and f means the filename is coming up next)
3. cd gimp-print-5.0.0-beta1
4. Read any README or INSTALL files, as they will give you more information about how to install. If there aren't any special install instructions, it's usually:
5. ./configure
6. make
7. su (to switch to root, all the above commands should be typed as a user)
8. make install

jschiwal 06-30-2004 08:57 PM

Try bunzip2 gimp-print-5.0.0-beta1.tar.bz2

This will produce a gimp-print-5.0.0-beta1.tar file.

Then use: tar xvf gimp-print-5.0.0-beta1.tar
to unpack the tarball.

---

In the future, if you come across a file you don't know about, try using the file command.
file filename.extension

This command will dig into a file looking for tell-tale markers and will tell you what type of file it is.

---

When using the tar command, remember that the f option needs to be listed last (before the file name).

klfreese 06-30-2004 09:03 PM

This is what i get now

klfreese@linux:~> tar jxvf gimp-print-5.0.0-beta1.tar.bz2
tar: gimp-print-5.0.0-beta1.tar.bz2: 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

darthtux 06-30-2004 09:21 PM

You're not in the same directory as the file. You're now in your home directory. When you tried farther up the thread you were in /tmp

klfreese 06-30-2004 09:23 PM

and again


klfreese@linux:~> bunzip2 gimp-print-5.0.0-beta1.tar.bz2
bunzip2: Can't open input file gimp-print-5.0.0-beta1.tar.bz2: No such file or directory.
klfreese@linux:~>

michaelk 06-30-2004 09:23 PM

I downloaded the file and it uncompressed.
tar -jxvf gimp-print-5.0.0-beta1.tar.bz2

If you decompressed the file usin bzip2 or bunzip then the bz2 file is uncompressed to a tar and now you do not need the j option with tar.

michaelk 06-30-2004 09:24 PM

Check your current working directory to see if you still have a bz2 file.

IBall 06-30-2004 09:24 PM

1) Try typing the absolute path of the file:
Code:

tar -xjvf /usr/src/gimp-print-5.0.0-beta1.tar.bz2
2) Maybe the download is corrupt ? Try downloading a copy from another source

--Ian

darthtux 06-30-2004 09:49 PM

Quote:

Originally posted by klfreese
and again


klfreese@linux:~> bunzip2 gimp-print-5.0.0-beta1.tar.bz2
bunzip2: Can't open input file gimp-print-5.0.0-beta1.tar.bz2: No such file or directory.
klfreese@linux:~>

And your still in the wrong directory.

If it is in the /tmp directory.

bunzip2 /tmp/gimp-print-5.0.0-beta1.tar.bz2

you'll probably have to be root.

jschiwal 07-02-2004 10:27 PM

1. CD to the directory where the tarball is located.
2. get a directory listing to verify that the file is in the current directory. Use the -l option so you can check the length and permissions of the file.
3. use autocompletion. Type the command to extract the file, followed by the first few letters of the file and press the tab key. This will finish typing the rest of the filename for you, so there is less chance of typos.
4. use the man pages on the bunzip or tar commands so you can get the options correct.


All times are GMT -5. The time now is 09:48 PM.