LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-10-2005, 05:36 PM   #1
112358fibonacci
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
How do you compile tar.gz's....please help


Hi,
i am experimenting linux currently, and experimenting with xandros 2.0 (open circulation).
i was unzipping the tar.gz file for the UT:GOTY(the original one) demo and then it just became a folder. the file name is utdemo-x86-438something something.
i dont think the file name matters (i will just drag the folder into the command window.
anyway, when i type install in the command thing, then the folder name, it sais too few arguments. when i say make, it sais nothing can be done to the file.
ARGH! i just cant figure it out on my own!
so anyway, how do i install it?

p.s. i am a newb windows user who is used to double-clicking on .exe files. please be detailed
 
Old 05-10-2005, 05:42 PM   #2
taxtropel
Member
 
Registered: Mar 2005
Location: Cascade Mountains WA USA
Distribution: Linux From Scratch (LFS)
Posts: 149

Rep: Reputation: 16
read everything here www.tldp.org
then to extract a gz or tgz file you do
tar -zxvf filename.tar.gz
for a bzip2 file (.bz2)
tar -jxvf filename.tar.bz

to complie the software inside
go into the folder that's made and run
./configure
then
make
then as root
make install
sometimes the above is changed to (so you don't have to login as root)
su -c 'make install' which will then prompt you for the root password.

don't forget to read the README and INSTALL files included in the package.

if it's a binary file then the file name *should* have i386 or similar in it
example-i386.tar.gz
 
Old 05-10-2005, 06:21 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by taxtropel
read everything here www.tldp.org
then to extract a gz or tgz file you do
tar -zxvf filename.tar.gz
for a bzip2 file (.bz2)
tar -jxvf filename.tar.bz

to complie the software inside
go into the folder that's made and run
./configure
then
make
then as root
make install
sometimes the above is changed to (so you don't have to login as root)
su -c 'make install' which will then prompt you for the root password.

don't forget to read the README and INSTALL files included in the package.

if it's a binary file then the file name *should* have i386 or similar in it
example-i386.tar.gz
UT doesn't need compiling.

Untar the tarball (as per the first part of tax's reply), then run the file inside the folder it created (I think the file ends in .run, but your details were so vague it could be anything: garbage in = garbage out) by first making it executable:
chmod +x filename
and then doing:
./filename

obviously replacing filename with the name of the file. Assuming you're using the same version of UT that I installed ages ago then you'll need to do that as root to get it to install globally.
 
Old 05-10-2005, 09:47 PM   #4
112358fibonacci
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
ya, you see, there are many folders, system, maps and so on. do i just have to be in the main folder to use the ./configure command?
 
Old 05-10-2005, 10:08 PM   #5
arcturus
Member
 
Registered: Oct 2002
Posts: 37

Rep: Reputation: 15
UT2004 Installation Guide for Linux:

http://www.mepisguides.com/ut2k4/ut2k4.html

Last edited by arcturus; 05-11-2005 at 12:52 AM.
 
Old 05-11-2005, 10:01 AM   #6
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Rep: Reputation: 30
Thumbs down My Mistake

I thought this thread would help me to understand what a tar file is and how to install from it.

Last edited by AndeAnderson; 05-11-2005 at 12:40 PM.
 
Old 05-11-2005, 11:42 AM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by 112358fibonacci
ya, you see, there are many folders, system, maps and so on. do i just have to be in the main folder to use the ./configure command?
Did you ignore everything I just said? I said it doesn't need compiling
 
Old 05-11-2005, 03:58 PM   #8
112358fibonacci
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
actually i read it, but i did what you said, i searched the folder. all of the files look the same......
anyway, on xandros 2.0 ./configure isnt a command
 
Old 05-11-2005, 04:01 PM   #9
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by 112358fibonacci
actually i read it, but i did what you said, i searched the folder. all of the files look the same......
anyway, on xandros 2.0 ./configure isnt a command
That's because it's a script included with (most) files that need to be compiled. It's not a system command. If the files look the same then there must be some instructions included for installation. I can't imagine they'd just expect you to guess at it.
 
Old 05-11-2005, 04:11 PM   #10
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Start here:
READ: "Installing Applications"
http://www.tldp.org/HOWTO/HOWTO-INDE...ml#APPSINSTALL


Then maybe here:
"Before you Compile Anything HOWTO"
http://forums.xandros.com/viewtopic.php?t=7166

"Xandros And Compiling KDE or Qt applications"
http://www.archlug.org/kwiki/Xandros...QtApplications
 
Old 05-12-2005, 02:01 AM   #11
bnj
Member
 
Registered: Apr 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 70

Rep: Reputation: 16
Re: My Mistake

Quote:
Originally posted by AndeAnderson
I thought this thread would help me to understand what a tar file is and how to install from it.

As written by others before me in this thread, if you have a file called myfile.tar.gz, do

gunzip myfile.tar.gz

After that, or if you have from the beginning a file called myfile.tar, do

tar -xvf myfile.tar

then there will be a directory called myfile

cd myfile
ls

There should be files called INSTALL or README, or something like this. Read them carefully and you will get all instructions on how to install the thing you are trying to install.
 
  


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
dwnloader insists on unpacking tar.gz's on FC1 farpoint Linux - General 2 06-03-2005 03:38 PM
how to compile a file of .tar.bz2 zameer_india Linux - Software 7 12-21-2004 12:15 AM
Need Help with: SSH.tar.gz Compile singhjih Linux - Newbie 1 06-18-2004 03:13 PM
Lost in installation of tar.gz's... or1onas Linux - Newbie 10 04-14-2004 01:40 PM
rpms's and tar.gz's? please help! toolbx12 Linux - Software 4 02-12-2004 03:20 PM

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

All times are GMT -5. The time now is 10:25 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