LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2005, 11:17 AM   #1
Thorrn4
Member
 
Registered: Mar 2005
Distribution: Mepis 3.3.1
Posts: 36

Rep: Reputation: 15
Compiling Programs


Hello:

I downloaded a program called "AMSN" and it needed me to install another program inorder to be used: Tcl http://tcl.sourceforge.net/. I downloaded the source files, and it asked me to compile it. The code to compile it is:

Code:
cd tcl8.4.9/unix
configure options
make
make test
make install
(http://www.tcl.tk/doc/howto/compile.html)
I'm totally lost when it comes to compiling...I've never done it; I know that the Terminal has to be open...but I don't know which one. (there is a Linux Terminal, Root Console Terminal, and a few others)

How can I compile the, or any, source code to create a program?


Thanks in advance
 
Old 03-25-2005, 11:33 AM   #2
DaBlade
Member
 
Registered: Aug 2004
Distribution: Debian Sid
Posts: 381

Rep: Reputation: 30
It's easy to compile a program. Open a terminal.
Type su
(enter your root password and hit enter. You won't see any *** stars or anything)
cd /to/the/directory/with/the/unpacked/source (for example /home/you/tcl8.4.9/unix)
type ./configure (hit enter)
type make (hit enter)
type make install (hit enter)
done.
 
Old 03-25-2005, 12:30 PM   #3
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Actually, you don't normally want to be root to compile. The usual steps are:

./configure
make
su
make install
exit
 
Old 03-25-2005, 03:10 PM   #4
BlackHatRob
Member
 
Registered: Feb 2005
Posts: 36

Rep: Reputation: 15
I recently downloaded the samba 3.0.x sources and did the following (as root)
Code:
cd /root/samba/sources
./configure
make
make install
but it didn't put any of the scripts in the correct places. for example /etc/init.d/smb did not exist, etc.

what did I do wrong?

I also tried
Code:
make installbin   #the one that installs the scripts and whatnot
but it didn't install either.

The only way I could install it and get the scripts to be in the correct places was to download an RPM...
 
Old 03-25-2005, 04:06 PM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by BlackHatRob
I recently downloaded the samba 3.0.x sources and did the following (as root)
Code:
cd /root/samba/sources
./configure
make
make install
but it didn't put any of the scripts in the correct places. for example /etc/init.d/smb did not exist, etc.

what did I do wrong?

I also tried
Code:
make installbin   #the one that installs the scripts and whatnot
but it didn't install either.

The only way I could install it and get the scripts to be in the correct places was to download an RPM...
you can't just do a ./configure, make, and make install on everything. small apps you are ok doing this, but some things need to be done the right way. before installing something, look here for some tips:

http://lfs.osuosl.org/blfs/view/stable/

for your specific problem ( samba ):

http://lfs.osuosl.org/blfs/view/stab...er/samba3.html
 
Old 03-25-2005, 10:31 PM   #6
BlackHatRob
Member
 
Registered: Feb 2005
Posts: 36

Rep: Reputation: 15
I don't see where /etc/init.d/smbd was created or copied over though...
 
Old 03-26-2005, 01:25 AM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
what do you mean?

did you see the part of configure where the system configuration directory was specified?
 
  


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
Compiling Programs Faxanadu Linux - Software 3 05-30-2005 02:51 AM
Compiling C++ programs rchillal Linux - Newbie 13 02-08-2005 06:27 AM
Compiling Programs mike35 Linux - Newbie 2 10-22-2003 10:39 AM
compiling c,c++ programs ksd Linux - Newbie 9 10-13-2003 09:23 AM
Compiling Programs Jabber63 Linux - Software 3 08-06-2003 03:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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