LinuxQuestions.org
Register a domain and help support LQ
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 04-04-2008, 07:19 AM   #1
kratosal
LQ Newbie
 
Registered: Mar 2008
Posts: 13

Rep: Reputation: 0
[HOW TO] Install Program from Source-tar.gz/tar.bz


i am using ubuntu gusty 7.10
 
Old 04-04-2008, 07:36 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
First, please give details on something like this. As a minimum, tell us what you are trying to install.

Always try your package manager first for installing new SW.

tar.gz and tar.bz are suffixes to describe files that have be archived and compressed. When they are unpacked, they may or may not contain source code. The first thing is to unpack and see what's there:

For tar.gz:
tar xzvf filename

For tar.bz:
tar xjvf filename

You will now have a folder with the same name as the original archive. Open this folder and see if there is a file named "Makefile". If so, you will then typically enter "make" and "make install". But first, look for a "README" with instructions.
 
Old 04-04-2008, 08:29 AM   #3
GardarS
Member
 
Registered: Jun 2005
Location: Reykjavik,Iceland
Distribution: Centos 5.6 and Arch
Posts: 64

Rep: Reputation: 17
Dont you have to do a ./confgure too ? or is that not important ? I've been using Linux for about two years now and I'm not very much into this installing from source
 
Old 04-04-2008, 11:44 AM   #4
nflenz
Member
 
Registered: Feb 2006
Distribution: CRUX 2.4
Posts: 96

Rep: Reputation: 18
There are several different methods for compiling source code. The most common is:

./configure
make
su root -c "make install"
 
Old 04-04-2008, 12:03 PM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
In the sticky at the top of this forum are two links to existing threads about this:
http://www.linuxquestions.org/questi...-forum-103564/
http://www.linuxquestions.org/questi...ograms.-45094/
 
Old 04-04-2008, 04:59 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by GardarS View Post
Dont you have to do a ./confgure too ? or is that not important ? I've been using Linux for about two years now and I'm not very much into this installing from source
You do not always need ./configure. It depends on the specific thing you are installing.
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 02:54 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 09:09 PM


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