LinuxQuestions.org
Visit Jeremy's Blog.
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 01-28-2010, 11:01 PM   #1
Nemesissparadise
Member
 
Registered: Nov 2007
Location: North Pole Alaska
Distribution: Fedora
Posts: 127

Rep: Reputation: 15
Installing a program from a tar.bz2


OK I know there is lots of documentation out there for installing tar balls but I can't make it work I am trying to work with this file sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2 in file:///home/Nemesis/Downloads/sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2

I am running Fedora 12
the gnome desktop if the desktop matters any help would be appreciated

I have been running Fedora almost elusively for 2 years and off n on before that but in my many attempts at trying to Install a TARBALL I have always failed hard
 
Old 01-28-2010, 11:29 PM   #2
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Rep: Reputation: 16
Are you getting an error on the configure, make, or make install?
 
Old 01-29-2010, 12:02 AM   #3
kforbus
Member
 
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

Rep: Reputation: 29
Quote:
Originally Posted by OzzyBlood View Post
Are you getting an error on the configure, make, or make install?
@Nemesissparadise:

Yes, knowing the command you are trying will help us identify what the trouble is. I also had the thought that maybe you are having problems extracting the file?
Code:
tar -xvjf sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2
should do it for you. Then as stated above you'll need to change into the extracted directory and go through the configure, make, and make install procedures.
 
Old 01-29-2010, 12:09 AM   #4
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
first you have to extact to bzip


command is :
bunzip2 filename.bz2

then use tar command
 
Old 01-29-2010, 12:19 AM   #5
kforbus
Member
 
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

Rep: Reputation: 29
Quote:
Originally Posted by sohail0399 View Post
first you have to extact to bzip
I usually pref the tar -xvjf method as it saves you the extra step since most tar.bz2 files will extract to their own directory in the current directory.

This is one of the reasons I love linux...always multiple ways to do things, so you can choose the one you like best
 
Old 01-29-2010, 12:20 AM   #6
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
agree,

bunzip2 the file first, then do tar -xf.

Looking at your options:
-x extracts a .tar
-v verbose
-j run tar through bzip. This is only used when creating a tarball.
-f force

if bunzip 2 the file first you will be left with a .tar. Then you can run tar -xf on the file and be good to go.
 
Old 01-29-2010, 12:24 AM   #7
kforbus
Member
 
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

Rep: Reputation: 29
Quote:
Originally Posted by worm5252 View Post
agree,
-j run tar through bzip. This is only used when creating a tarball.

Either way will work. Just have to disagree with the -j option. Just checked the man page for tar:

-j, --bzip2
filter archive through bzip2,
use to decompress .bz2 files

You're definitely right about using the -f option though. Even though I'm pretty sure the -j option isn't just for creating the file, if you use only extract with force even directly on the tar.bz2 file, it should extract just fine.

Last edited by kforbus; 01-29-2010 at 12:38 AM.
 
Old 01-29-2010, 12:35 AM   #8
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
I have seen Tar do some wierd things when you use -v option. Not sure why but I have seen it error out when it is used and work perfect when you run the same command without it. maybe that is what is going on.

The last time I saw this is when I created a tarball with tar -pcvjf. It failed but tar -pcjf works just fine.
 
Old 01-29-2010, 04:35 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
The ' tar ' flags changed five years ago ...

From /usr/doc/tar-1.15.1/NEWS , slack 10.2
Quote:
version 1.15 - Sergey Poznyakoff, 2004-12-20

* Compressed archives are recognised automatically, it is no longer
necessary to specify -Z, -z, or -j options to read them. Thus, you can
now run `tar tf archive.tar.gz'.
So now you can just do : 'tar xvf <archive>' with tar.gz and tar.bz2 .

No more jxvf or zxvf is required . !
.....
 
Old 01-29-2010, 06:40 AM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
just double click on it in gnome
file-roller will open it.
then read the README and INSTALL files for instructions on building the source code.


http://sauerbraten.org/README.html

this might also be in the fedora repos - rpmfusion

as i recall cube is in there

--
i just downloaded it and this one is a "Makefile" package
edit it for your system and run make.
 
Old 01-29-2010, 10:11 AM   #11
kforbus
Member
 
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

Rep: Reputation: 29
Quote:
Originally Posted by knudfl View Post
The ' tar ' flags changed five years ago ...

From /usr/doc/tar-1.15.1/NEWS , slack 10.2

So now you can just do : 'tar xvf <archive>' with tar.gz and tar.bz2 .

No more jxvf or zxvf is required . !
.....
You're absolutely right, so I stand corrected. After years of including the z and j options, it's gonna be a hard habit to break. On the up side, at least it doesn't really hurt anything to include them.
 
Old 01-29-2010, 01:24 PM   #12
Nemesissparadise
Member
 
Registered: Nov 2007
Location: North Pole Alaska
Distribution: Fedora
Posts: 127

Original Poster
Rep: Reputation: 15
ok I did the command tar -xvjf sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2 I believe that went fine. Then I cd but I did something wrong after that because nothing worked after that.

here is my terminal output after the cd command


[Nemesis@Nemesiss-paradise ~]$ cd '/home/Nemesis/XYZ/sauerbraten'
[Nemesis@Nemesiss-paradise sauerbraten]$ ./configure
bash: ./configure: No such file or directory
[Nemesis@Nemesiss-paradise sauerbraten]$ make
make: *** No targets specified and no makefile found. Stop.
[Nemesis@Nemesiss-paradise sauerbraten]$ make install
make: *** No rule to make target `install'. Stop.
[Nemesis@Nemesiss-paradise sauerbraten]$
 
Old 01-29-2010, 01:52 PM   #13
kforbus
Member
 
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

Rep: Reputation: 29
Quote:
Originally Posted by Nemesissparadise View Post
ok I did the command tar -xvjf sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2 I believe that went fine. Then I cd but I did something wrong after that because nothing worked after that.

here is my terminal output after the cd command


[Nemesis@Nemesiss-paradise ~]$ cd '/home/Nemesis/XYZ/sauerbraten'
[Nemesis@Nemesiss-paradise sauerbraten]$ ./configure
bash: ./configure: No such file or directory
[Nemesis@Nemesiss-paradise sauerbraten]$ make
make: *** No targets specified and no makefile found. Stop.
[Nemesis@Nemesiss-paradise sauerbraten]$ make install
make: *** No rule to make target `install'. Stop.
[Nemesis@Nemesiss-paradise sauerbraten]$
You should check if there is a README or INSTALL file in the extracted directory. Such a file should have installation instructions. Or check the game's website. I think they have a wiki with install details.
 
Old 01-29-2010, 03:00 PM   #14
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
I like sauerbraten myself, but I have not installed it since I rebuilt my system. I will download it and install it using the .tar.bz2 package from sauerbraten.org.

I will write up a step by step guide for you on how to do it. I will get back to you shortly. I am downloading the 344MB file now. Should take me about 10 minutes to download
 
Old 01-29-2010, 03:40 PM   #15
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
Installing Sauerbraten
first to install Sauerbraten you need the files to do so. Open up your favorite web browser and navigate to Sauerbraten.org. from there you can go to the Downloads page and Download the Linux Version. The file I downloaded is the most currenty and is titled sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2.

Once you have sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2 downloaded you can close your web browser. The next thing we want to do is to open a Command Line Interface (i.e. a command terminal).

Now that we have our command terminal open we want to find out where we are.
Code:
jared@Sarah:~$ pwd
/home/jared
jared@Sarah:~$
Now that we know where we are, we need to get to where we saved sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2. I saved mine in /home/jared/Downloads/.
Code:
jared@Sarah:~$ cd /home/jared/Downloads/
jared@Sarah:~$
The next thing we want to do is find the exact file so we know how to spell it correctly. I mean face it Sauerbraten is not the easiest thing to spell.
Code:
jared@Sarah:~/Downloads$ ls *.tar.bz2
sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2
Next lets extract it from a .bz2 format. To do this we will use bunzip2.
Code:
jared@Sarah:~/Downloads$ bunzip2 sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2
jared@Sarah:~/Downloads$
Lets see what we have left now.
Code:
jared@Sarah:~/Downloads$ ls *.tar*
sauerbraten_2009_05_04_trooper_edition_linux.tar
jared@Sarah:~/Downloads$
Now let's extract all those files from the tarball. To do this we will use this command
Code:
jared@Sarah:~/Downloads$ tar -xvf sauerbraten_2009_05_04_trooper_edition_linux.tar
The result of running this command will output every file that is extracted. There are a lot of them so your output should look something like this.
Code:
sauerbraten/docs/static_wiki/Scripting Menus.html
sauerbraten/docs/static_wiki/space.discussion.FAQ.html
sauerbraten/docs/static_wiki/Masks on Models.html
sauerbraten/docs/static_wiki/Importing md2 and md3 files.html
sauerbraten/docs/static_wiki/Performance Guide.html
sauerbraten/docs/static_wiki/Mapping and Editing.html
sauerbraten/docs/static_wiki/Script Demo - Map Menu.html
sauerbraten/docs/static_wiki/Multiplayer Guide.html
sauerbraten/docs/static_wiki/space.discussion.Install Guide.html
sauerbraten/docs/static_wiki/Cooperative Editing.html
sauerbraten/docs/static_wiki/Hudguns with Hands III.html
sauerbraten/docs/static_wiki/space.discussion.Beginners Guide.html
sauerbraten/docs/static_wiki/How to approach modding.html
sauerbraten/docs/static_wiki/Cubescript Tutorial Chapter 2.html
sauerbraten/docs/static_wiki/CubeScript in 21 days.html
sauerbraten/docs/static_wiki/Singleplayer Guide.html
sauerbraten/docs/static_wiki/Scripting Syntax.html
sauerbraten/docs/static_wiki/Install Guide.html
sauerbraten/docs/static_wiki/Map Screenshot.html
sauerbraten/docs/static_wiki/Edit WalkThrough.html
sauerbraten/docs/static_wiki/Videos.html
sauerbraten/docs/static_wiki/Wiki Refactor.html
sauerbraten/docs/static_wiki/space.discussion.Performance Guide.html
sauerbraten/docs/static_wiki/Cubescript Tutorial Chapter 1.html
sauerbraten/docs/static_wiki/space.discussion.Singleplayer Guide.html
sauerbraten/docs/static_wiki/Script Demo - Persona Menu.html
sauerbraten/docs/style.css
sauerbraten/docs/editing.html
sauerbraten/docs/favicon.ico
jared@Sarah:~/Downloads$
All of those files should have been extracted to a folder called sauerbraten. To verify this you can run ls
Code:
jared@Sarah:~/Downloads$ ls sauerbraten
bin_unix  docs      README.html       server-init.cfg
data      packages  sauerbraten_unix  src
jared@Sarah:~/Downloads$
Now we want to change directories and decend down in the sauerbraten directory
Code:
jared@Sarah:~/Downloads$ cd sauerbraten/
jared@Sarah:~/Downloads/sauerbraten$
It is always recommended to view the README file or the INSTALL file when installing a package. Sauerbraten does not include an INSTALL file but it does include README.html. Since this is an html file we will need to view it using our web browser. To do this you will need to know the absolute path to the README.html file. To get this you can use pwd
Code:
jared@Sarah:~/Downloads/sauerbraten$ pwd
/home/jared/Downloads/sauerbraten
jared@Sarah:~/Downloads/sauerbraten$
Now I know the location of README.html is /home/jared/Downloads/sauerbraten/README.html. Now I will openup my web browser and in the address bar I will enter file://localhost/ the location of the README.html file. In this case I entered file://localhost/home/jared/Downloads/sauerbraten/README.html

On the README.html page, under the Documentation section there is a link titled Configs. On the Configs page it says
Quote:
For Linux: Extract and then run ./sauerbraten_unix inside the sauerbraten directory. Needs a decent and compliant OpenGL implementation.
Since I run an amd64 system this version of Sauerbraten complains about SDL_mixer-1.2.so.0.

###############################################################
#____________________________________NOTES___________________________________#
###############################################################

However it appears if you want to actually install this package you wish to actually install sauerbraten you can descend into the src directory and run
Code:
jared@Sarah:~/Downloads/sauerbraten/src$ make
Code:
jared@Sarah:~/Downloads/sauerbraten/src$ make install
This obviously will not install on my system since I run an amd64 system and this was build for 32-bit systems only. For me I just installed sauerbraten via a package manager. In my case I used apt-get. It was in the repositories and installed just fine.

Last edited by worm5252; 01-29-2010 at 03:42 PM.
 
  


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
Installing any .tar .bz2 or .deb smcsw2000 Linux - Software 2 06-13-2007 07:52 AM
need help with installing *.tar.bz2 files YberDo Linux - Software 22 05-08-2007 05:46 PM
installing tar.bz2 files M O L8ingN2dust Mandriva 2 03-26-2005 04:46 AM
installing MPlayer-0.92.tar.bz2 zexter Linux - Software 4 11-18-2003 09:23 AM
installing a tar.bz2 zexter Linux - Software 3 11-02-2003 01:39 PM

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

All times are GMT -5. The time now is 03:08 PM.

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