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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-25-2005, 11:17 AM
|
#1
|
Member
Registered: Mar 2005
Distribution: Mepis 3.3.1
Posts: 36
Rep:
|
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
|
|
|
03-25-2005, 11:33 AM
|
#2
|
Member
Registered: Aug 2004
Distribution: Debian Sid
Posts: 381
Rep:
|
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.
|
|
|
03-25-2005, 12:30 PM
|
#3
|
Member
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808
Rep:
|
Actually, you don't normally want to be root to compile. The usual steps are:
./configure
make
su
make install
exit
|
|
|
03-25-2005, 03:10 PM
|
#4
|
Member
Registered: Feb 2005
Posts: 36
Rep:
|
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...
|
|
|
03-25-2005, 04:06 PM
|
#5
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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
|
|
|
03-25-2005, 10:31 PM
|
#6
|
Member
Registered: Feb 2005
Posts: 36
Rep:
|
I don't see where /etc/init.d/smbd was created or copied over though...
|
|
|
03-26-2005, 01:25 AM
|
#7
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
what do you mean?
did you see the part of configure where the system configuration directory was specified?
|
|
|
All times are GMT -5. The time now is 12:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|