LinuxQuestions.org
Visit Jeremy's Blog.
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 05-06-2003, 01:48 PM   #1
llee
LQ Newbie
 
Registered: Apr 2003
Posts: 23

Rep: Reputation: 15
a non-programming newbie wannabe


Hi all,

I am just curious in knowing more about what these things are:
./configure
make
make install
make clean
ldconfig
... blah blah.

Is there a website that shows easy step for a newbie how all these things works or how to make a "hello world" type-program in Linux? Thank you.
 
Old 05-06-2003, 01:53 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Type man make or whichever command to see the manual pages about it, or man man. Try q to close the pages.

./configure and make are for compiling source code. You can read the makefile with the code with a normal text editor if you want.
 
Old 05-06-2003, 01:57 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Re: a non-programming newbie wannabe

Quote:
Originally posted by llee
Is there a website that shows easy step for a newbie how all these things works or how to make a "hello world" type-program in Linux?
That depends on what language you want to write in. It is usually just a 3 line script:
1) A shebang line
2) A print statement
3) An exit command
 
Old 05-06-2003, 02:00 PM   #4
llee
LQ Newbie
 
Registered: Apr 2003
Posts: 23

Original Poster
Rep: Reputation: 15
I took a java, c, & c++ years ago. I guess any of them would do.
 
Old 05-06-2003, 02:13 PM   #5
Nukes
Member
 
Registered: Apr 2003
Location: Scotland UK
Distribution: Gentoo
Posts: 92

Rep: Reputation: 15
In those languages, it is pretty much the same as for dos and windows console programs.
./configure just sets the makefile up depending on your machine. For example you may need to specify a different location for installation (--prefix="/wherever") or something else. The options are listed when you do ./configure --help.
make just builds the program, running through the makefile. Also, if a program has many seperate modules, you can just build one by doing "make simon" if simon is defined as a target in the makefile.
make clean just cleans out all the object files so they will be rebuilt rather than skipped over when you do make again. Its a good idea to do that if you've made any changes to anything.
Make install just installs the program into it's defined prefix directory.
Note that most programs install into /usr/local by default and will be over ridden by older versions in /usr or / if they are installed.
 
Old 05-06-2003, 02:17 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Quote:
Originally posted by llee
I took a java, c, & c++ years ago. I guess any of them would do.
A quick google shows this quick example:
http://www.liquido2.com/tutorial/hello_world.html

I can hardly believe they used a gui to do it though
 
Old 05-06-2003, 07:13 PM   #7
llee
LQ Newbie
 
Registered: Apr 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for all the feedback... it's very helpful. Thank you.
 
Old 05-06-2003, 08:20 PM   #8
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
http://www.cprogramming.com/tutorial.html here is another good tutorial for newbies
 
  


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
wannabe fedora user anant_in_a_fix Fedora - Installation 10 12-05-2005 11:37 AM
Newbie kernel-tweaking wannabe Yalla-One Slackware 15 03-31-2005 05:02 AM
Frustrated slackware 9 wannabe slackergeek Linux - Hardware 4 06-11-2004 11:00 AM
Programming Newbie tipaul Slackware 3 08-05-2003 05:37 PM
I'm a wannabe rmartine Programming 5 04-08-2003 08:44 PM


All times are GMT -5. The time now is 03:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration