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 08-02-2011, 07:20 PM   #1
kenholtmeyer
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Rep: Reputation: Disabled
list the steps for installing a program from source code


list the steps for installing a program from source code
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-02-2011, 07:25 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
The answer is RTFM.

You open up the tarball containing the source code and you read the instructions inside. Generally, these have obvious names such as README and INSTALL. It's also a convention that the files containing these instructions are named with all-caps.

If the source code uses Automake (which is pretty common), then the steps are:

Code:
./configure
make
make install
Please be aware that most distributions have tools for building source tarballs into packages.

Last edited by dugan; 08-02-2011 at 09:50 PM.
 
2 members found this post helpful.
Old 08-02-2011, 07:37 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by kenholtmeyer View Post
list the steps for installing a program from source code
That's a really nice member introduction to LQ. If I was less awesome, I'd say that the OP is being lazy and rude.


Welcome to LQ - a friendly community focused entirely on helping people who suffer from googlephobia.
 
Old 08-02-2011, 07:45 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
His posting history (as a whole) is making me wonder if he's taking an exceptionally low-quality course.
 
Old 08-02-2011, 08:01 PM   #5
kenholtmeyer
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
I did not mean to be rude . Yes I am a little lazy aren't we all. This course is being taken at ITT Tech.
 
Old 08-02-2011, 08:12 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The usual ..

Possible commands and scripts to be run to start building Linux software :
'perl Makefile.PL', 'perl Build.PL', 'python setup.py build', #'python setup.py install',
'cmake ..' , qmake , 'make' , 'scons', './waf configure', 'jam' ,
'./install', './autogen.sh', autoreconf -f, './configure' (or 'sh configure'),
'libtoolize && aclocal && autoheader && automake --add-missing && autoconf',
.. .. etc.

..

Last edited by knudfl; 08-11-2011 at 07:46 AM.
 
Old 08-02-2011, 09:02 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by kenholtmeyer View Post
I did not mean to be rude . Yes I am a little lazy aren't we all. This course is being taken at ITT Tech.
No..some of us actually contribute and look things up for ourselves, thanks.

What you're asking is sort of like asking "how high is up?", or "where do programs get installed in Windows?". The answer is, "it depends". Each program is different, will install differently, and in different locations. Some have scripts that do everything for you..some don't. Some have config files..some don't.

dugan hit it on the head...RTFM. Each program comes with a set of documentation (again, some more detailed than others). Read it, and follow it. Not much more can be said past that.
 
Old 08-02-2011, 09:47 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
Quote:
Originally Posted by kenholtmeyer View Post
I did not mean to be rude . Yes I am a little lazy aren't we all. This course is being taken at ITT Tech.
Are the questions you're asking the same ones you're supposed to answer and be graded on?
 
Old 08-03-2011, 01:19 AM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-03-2011, 03:45 AM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I believe that if this was a question based on installation of certain program or app you may have gotten an answer, everyone is actually here to assist you if you have difficulties with your machine, but not do homework for you.
I've also seen a few help with scripts, but op has part of it.
Maybe you should rephrase your question & be more specific.
 
Old 08-03-2011, 04:25 AM   #11
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The steps are simple.
  • Download the sources: this will be different depending on the concrete program. It can be a tarball or a zip file, or it can be from an RCS repository of any kind (via CVS, SVN, Bazaar, Git...).
  • Uncompress it (if needed).
  • Use cd and ls or your favourite file manager to see the files you obtained, look for something ressembling documentation.
  • Check the documentation (no, I am not kidding and I am not intending to be sarcastic either). This is needed not only to learn how to compile the programs, but also to learn what dependencies will it need to compile. If you don't do this, you will probably be hitting your own head against a wall even if you are an experienced user, unless you are compiling a truly simple package. Again, each program is different, but the general trend is to put this kind of info into a plain text file called INSTALL or README. Just looking at the files you downloaded should give you some hint. If not, check their home page. If not, then the whole thing is above your skills.
  • Procceed to compile and install.

If this is not the answer they expect from you then the course you are following is not worth the time nor the money (either that, or you asked the question wrongly).
 
2 members found this post helpful.
Old 08-14-2011, 09:33 PM   #12
0men
Member
 
Registered: Mar 2011
Location: Brisbane
Distribution: Windows 10, Red Hat, Debian
Posts: 183

Rep: Reputation: 22
@sycamore that second paragraph of your post could be the best on Linux questions !!

Nice one !! Lol
 
Old 08-14-2011, 09:40 PM   #13
ramkatral
Member
 
Registered: Aug 2011
Location: Tryon, NC
Distribution: Slackware x64, Arch x64
Posts: 74

Rep: Reputation: 12
This threat just gives me a chuckle. Why even go to damn school if you don't want to actually learn and just want people to do it for you?
 
2 members found this post helpful.
  


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
Looking for a program... to look at source code Dogs General 4 11-04-2010 04:16 PM
Program to convert C source code to flowchart? tommyttt Linux - Software 2 07-12-2010 08:17 AM
how can i linux a Windows program's source code? Mad_Tiger Programming 10 04-05-2007 06:12 PM
Viewing source code for a program... ksoma Programming 3 02-27-2005 04:05 AM
login program source code czarherr Linux - Software 2 07-16-2004 03:01 PM

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

All times are GMT -5. The time now is 05:10 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
Open Source Consulting | Domain Registration