LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2004, 08:23 PM   #1
klfreese
Member
 
Registered: Jul 2003
Distribution: Suse 10
Posts: 55

Rep: Reputation: 15
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
 
Old 06-30-2004, 08:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 06-30-2004, 08:34 PM   #3
klfreese
Member
 
Registered: Jul 2003
Distribution: Suse 10
Posts: 55

Original Poster
Rep: Reputation: 15
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 #
 
Old 06-30-2004, 08:36 PM   #4
klfreese
Member
 
Registered: Jul 2003
Distribution: Suse 10
Posts: 55

Original Poster
Rep: Reputation: 15
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 #
 
Old 06-30-2004, 08:44 PM   #5
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
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
 
Old 06-30-2004, 08:57 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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).

Last edited by jschiwal; 06-30-2004 at 09:02 PM.
 
Old 06-30-2004, 09:03 PM   #7
klfreese
Member
 
Registered: Jul 2003
Distribution: Suse 10
Posts: 55

Original Poster
Rep: Reputation: 15
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
 
Old 06-30-2004, 09:21 PM   #8
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
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
 
Old 06-30-2004, 09:23 PM   #9
klfreese
Member
 
Registered: Jul 2003
Distribution: Suse 10
Posts: 55

Original Poster
Rep: Reputation: 15
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:~>
 
Old 06-30-2004, 09:23 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,821

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
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.

Last edited by michaelk; 06-30-2004 at 09:25 PM.
 
Old 06-30-2004, 09:24 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,821

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Check your current working directory to see if you still have a bz2 file.
 
Old 06-30-2004, 09:24 PM   #12
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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
 
Old 06-30-2004, 09:49 PM   #13
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
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.
 
Old 07-02-2004, 10:27 PM   #14
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost panel in Gnome -- now I'm completely lost! webwench Linux - Newbie 3 04-30-2005 01:38 AM
Lost mouse after reboot+lost modem BACTRATE Mandriva 3 04-07-2005 06:45 AM
power lost from cable modem, interface lost a10392 Linux - Networking 4 11-16-2004 09:01 AM
C++ templates + linked lists... lost.. very lost.. exodist Programming 2 05-12-2004 11:04 PM
I am Lost RUN Linux - General 7 07-13-2002 12:02 PM


All times are GMT -5. The time now is 12:36 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration