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 07-13-2003, 01:33 AM   #1
dvong3
Member
 
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, 02:35 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,186

Rep: Reputation: 52
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, 12:17 PM   #3
s_nic
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:

Code:
$ 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 12:19 PM.
 
Old 07-13-2003, 12:20 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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:
./filename
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.



COol
 
  


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

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

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