LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 04-04-2008, 06: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, 06:36 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: back to Arch
Posts: 16,673

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
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, 07: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, 10: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, 11:03 AM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,068
Blog Entries: 4

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
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, 03:59 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: back to Arch
Posts: 16,673

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 10 02-23-2008 05:40 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 01:54 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 08:09 PM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration