LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-11-2006, 01:50 PM   #1
The Redneck
Member
 
Registered: Jul 2006
Location: Earth
Distribution: SuSE 9.2
Posts: 36

Rep: Reputation: 15
How to install BZ2 files


Hello,

I need to know how to install bz2 files. Is there a code to type? I'm using suse 9.2.

Thanks.

The Redneck
 
Old 10-11-2006, 02:03 PM   #2
veritas
Member
 
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241

Rep: Reputation: 30
Quote:
Originally Posted by The Redneck
Hello,

I need to know how to install bz2 files. Is there a code to type? I'm using suse 9.2.

Thanks.

The Redneck
You can type in tar xvjf filename.tar.bz2 to extract the files out of it. If its a program you downloaded, the bz2 most likely contains source code you will have to compile before installing.
 
Old 10-11-2006, 02:03 PM   #3
Infernox
LQ Newbie
 
Registered: Oct 2005
Posts: 21

Rep: Reputation: 15
Try with this:

tar xvjf file.bz2
cd file
./configure
make
su
make install
 
Old 10-11-2006, 11:24 PM   #4
The Redneck
Member
 
Registered: Jul 2006
Location: Earth
Distribution: SuSE 9.2
Posts: 36

Original Poster
Rep: Reputation: 15
compile?

(blank mind)
 
Old 10-11-2006, 11:53 PM   #5
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Rep: Reputation: 33
ok heres the simple route:

1 open a terminal

2.cd to your downloaded file. e.g. sleek@0[~]$ cd desktop/ (i'm assuming you downloaded to your desktop. not the ideal place to do this, but for now . . .)

3 unpack your downloded file by typing tar xvfj fluxbox-1.0rc2.tar.bz2 all that will change for you is the name of the package. To make matters easier, if you will type the first 2-3 letters of the name of your download, and then press "tab", your file should fill into place for you. In other words, I would type: tar xvfj flu . . . ."tab" and would get the end result above.

after you unpack, go to your "unpacked" package. Just type: cd name_of_package. (hint: remember the tab button!)

inside that package type: ./configure

after thats done type: make

and finally type: su -c "make install" This will ask you for your root password. Just enter it to continue.


Hope this works for you. It is much easier to use a package manager when at all possible to avoid dependencies. I believe Suse uses Yast.
 
Old 10-13-2006, 01:18 PM   #6
The Redneck
Member
 
Registered: Jul 2006
Location: Earth
Distribution: SuSE 9.2
Posts: 36

Original Poster
Rep: Reputation: 15
What do you mean when you say: "CD to the file"
 
Old 10-13-2006, 01:26 PM   #7
Infernox
LQ Newbie
 
Registered: Oct 2005
Posts: 21

Rep: Reputation: 15
tar xvjf file.bz2
cd name_of_the_file/
./configure
make
su
make install

You have a file named xxx.bz2 and then a folder named xxx/
 
Old 10-13-2006, 01:30 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by The Redneck
What do you mean when you say: "CD to the file"
cd means "change directory"

Note: not everything that comes tarred and compressed will need to be compiled---inside might simply be an .rpm, .deb, or some other package.

first you have to extract the archive, then look in the folder. What happens next depends on what you find.
 
Old 10-13-2006, 01:34 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
PS:
If the file is simply something.bz2 then I don't think you use tar. Would it not simply be bzip2 or one of its cousins?? (man bzip2 for details)
 
Old 10-13-2006, 02:08 PM   #10
RedNovember
Member
 
Registered: Oct 2005
Distribution: Debian etch
Posts: 103

Rep: Reputation: 15
tar will do bz2 files. That's the -j option (or --bzip2).
 
Old 10-14-2006, 01:59 PM   #11
The Redneck
Member
 
Registered: Jul 2006
Location: Earth
Distribution: SuSE 9.2
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks fo all y'alls help!
 
Old 10-15-2006, 11:15 PM   #12
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by RedNovember
tar will do bz2 files. That's the -j option (or --bzip2).
Fair enough, but does this work?
"tar xvjf file.bz2" (It's not a .tar file)

I would have thought that would work only if the file was:
"file.tar.bz2"
 
Old 09-20-2007, 06:22 AM   #13
fedix
Member
 
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104

Rep: Reputation: 17
Question How do I fix install error?

I've followed your description above but recieved an error message.

How do I fix this error?

Code:
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Regards
 
Old 05-26-2008, 10:57 AM   #14
firefoxkatan
LQ Newbie
 
Registered: May 2008
Location: St. Pete, FL
Distribution: Slack 12
Posts: 1

Rep: Reputation: 0
I'm not sure if it's because I'm running Slack 12 and not Suse, but I get this error when I try tar xvfj whateverfile.tar.bz2 (and if I try tar -xvfj whateverfile.tar.bz2 or tar -xvfj whateverfile.tar.bz2 gzip)
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors
Thanks if anyone can help.
 
Old 05-26-2008, 12:18 PM   #15
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by firefoxkatan View Post
I'm not sure if it's because I'm running Slack 12 and not Suse
No, it shouldn't make a difference.

Quote:
but I get this error when I try tar xvfj whateverfile.tar.bz2 (and if I try tar -xvfj whateverfile.tar.bz2 or tar -xvfj whateverfile.tar.bz2 gzip)
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors
Thanks if anyone can help.
What is the exact name of the file you're using? Also, where did you get it?
 
  


Reply

Tags
install



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
how do i install .tar.bz2 files on ubuntu? kriogenic Linux - Newbie 11 02-14-2006 10:26 AM
.bz2 files Mr. Hill Linux - Newbie 4 03-13-2005 04:19 AM
how do you install tar.bz2 files? Pbguru Linux - Newbie 1 07-25-2004 04:45 PM
How can konqueror view html files in .gz & .bz2 files directly? ailinzhe Linux - Software 5 05-24-2004 08:36 AM
unzipping files using bz2 bruce64 Linux - Software 6 07-17-2003 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:52 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
Open Source Consulting | Domain Registration