LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to install BZ2 files (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-bz2-files-491508/)

The Redneck 10-11-2006 01:50 PM

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

veritas 10-11-2006 02:03 PM

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.

Infernox 10-11-2006 02:03 PM

Try with this:

tar xvjf file.bz2
cd file
./configure
make
su
make install

The Redneck 10-11-2006 11:24 PM

compile?

(blank mind)

sleekmason 10-11-2006 11:53 PM

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.

The Redneck 10-13-2006 01:18 PM

What do you mean when you say: "CD to the file"

Infernox 10-13-2006 01:26 PM

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/

pixellany 10-13-2006 01:30 PM

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.

pixellany 10-13-2006 01:34 PM

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)

RedNovember 10-13-2006 02:08 PM

tar will do bz2 files. That's the -j option (or --bzip2).

The Redneck 10-14-2006 01:59 PM

Thanks fo all y'alls help!

pixellany 10-15-2006 11:15 PM

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"

fedix 09-20-2007 06:22 AM

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

firefoxkatan 05-26-2008 10:57 AM

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.

Nylex 05-26-2008 12:18 PM

Quote:

Originally Posted by firefoxkatan (Post 3165066)
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?


All times are GMT -5. The time now is 10:50 AM.