Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-13-2003, 02:33 AM   #1
Registered: Sep 2002
Posts: 168

Rep: Reputation: 30
Source Code

How do we know file are source code or pre-compiled package? IF source code, what steps do I need to compile ? I am trying to install ssh.
Old 07-13-2003, 03:35 AM   #2
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
the place you download the file from has to tell you.
the instructions for compiling often vary, but the instructions
are almost always contained in the README or INSTALL
contained within the tarball.
Old 07-13-2003, 01:17 PM   #3
LQ Newbie
Registered: Jun 2003
Distribution: Gentoo 1.4, Slack 9
Posts: 8

Rep: Reputation: 0
Compilling from source almost always involves opening up a terminal (GNOMEterm, Konsole, rxvt, etc) and:

$ cd source directory (what was extracted from the tarball)
$ ./configure
$ make
$ su
enter root pass
# make install
The configure script checks your environment, checks for a compiler, and for other dependencies. It also generates the makefiles needed to compile the source. make compiles, and them make install shifts everything to a nifty place. Usually files for the program to run eg sounds, images, and configuration files to /usr/local/share, and then the executables to /usr/local/bin. You can change the prefix of the install manually though.

However, ALWAYS, ALWAYS read the README and INSTALL files. Most tarballs contain generic INSTALL files. You can tell by the "These are generic installation instructions" line

README's are never the same, and you should ALWAYS read them.

Either of these documents can contain possible parameters for configuration/compilation. So read them or it's your fault :P

Last edited by s_nic; 07-13-2003 at 01:19 PM.
Old 07-13-2003, 01:20 PM   #4
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Ocassionally the precompiled binaries will also use this similar process though. Sometimes a name will give it away:
great-application-5.1beta-i386.tar.gz is most likely a precompiled binary (not source) where:
great-application-5.1beta.tar.gz is more likely source. Also, if when you open up the tarball if there is a file that you can:
to run the program, this is a precompiled binary. If you open up your tarball and just see a bunch of .h and .c files, this is more likely source.



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 to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 01:48 PM
where is source code? heraklez Mandriva 5 07-31-2005 06:47 PM
All this source code W0bbles Linux - Software 1 02-12-2005 09:32 PM
Source code hey_joe Linux - Newbie 1 03-14-2004 02:06 PM
Source Code help palbox2003 Linux - Newbie 1 02-23-2004 05:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration