LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-14-2009, 11:15 AM   #1
Adh Iman
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Rep: Reputation: 0
Unhappy how to 'make' a source code?


i'm very new in linux, i use ubuntu 8.10 on my laptop
i gettin' frustated with this 'make' command, it doesn't do anythin when i try to compile a source code but a sort message.
is there's another parameters should be added after this command?

i'll very grateful if somebody willing to explain how to use this command properly..

regards,,
 
Old 05-14-2009, 11:18 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Please give us more information. What exactly are you trying to compile and what error messages do you get?
 
Old 05-14-2009, 01:11 PM   #3
hoodooman
Member
 
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
Did you run ./configure before you ran the make command?
 
Old 05-15-2009, 06:08 AM   #4
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
"make" refers to a step that is +- halfway in the process of compiling an application on linux.

You need to explain what you want to compile, since for some packages and different ways for the authors to set the package up for local compilation, the process can differ quite a bit.

Typically, compiling an application or package might require these steps (this can vary, though!):

Code:
1. Download the source package (can be name.tar.gz or name.tar.bz2, or even name.rar)
2. Extract it.
3. Run ./configure in its folder / directory
4. NOW you run "make"
5. Become superuser
6. Run "make install" (to install it)
7. Run "/sbin/ldconfig" to update your library list (this is often not needed, but I always do it for safety's sake)
8. Delete the installation directory and files for the package or application.
Note that often programs will require "libraries" to be present and compiled, they are packages just like anything else, but do not result in an executable / runnable program being produced. Rather they are there so OTHER programs or libraries can use them in turn. The steps for making / compiling them are usually exactly the same as those for compiling or making an executable / runnable program off a source code "tarball" or archive you have downloaded.
 
Old 05-15-2009, 07:37 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

You need to provide more information as to what you are attempting to do. What are you re-compiling, compiling or updating?

Quote:
excerpt from 'man make';

make - GNU make utility to maintain groups of programs

The purpose of the make utility is to determine automatically which pieces of a large program need to be recompiled, and issue the commands to recompile them. The manual describes the GNU implementation of make, which was written by Richard Stallman and Roland McGrath. Our examples show C programs, since they are most common, but you can use make with any programming language whose compiler can be run with a shell command. In fact, make is not limited to programs. You can use it to describe any task where some files must be updated automatically from others whenever the others change.

To prepare to use make, you must write a file called the makefile that describes the relationships among files in your program, and the states the commands for updating each file. In a program, typically the executable file is updated from object files, which are in turn made by compiling source files.
 
Old 05-24-2009, 10:54 AM   #6
Adh Iman
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Unhappy

I'm Indonesian, i want to install an english-indonesian dictionary called 'qamiden-1.0'.
I did run './configure' but it seems there are no 'configure' file, here's the message after i run 'make' command:
Quote:
make: *** No rule to make target `/usr/share/qt4/mkspecs/default/qmake.conf', needed by `Makefile'. Stop.
how should i thread this problem?

thanks,
 
Old 05-24-2009, 10:58 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I just downloaded the source code for this software. There's a README in there, did you read it? You need to run qmake before running make.
 
  


Reply



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 make bind-9.6.01 work after compiling from source code win281 Linux - Newbie 2 05-11-2009 04:33 PM
Downloaded Wireshark source code and while make rpm got this error, kindly help pkhera_2001 Linux - Newbie 1 03-20-2008 08:09 AM
How to make network driver source code SMP safe? sybercop Linux - Wireless Networking 0 11-08-2007 03:05 AM
Make Trouble linking some fortran code Make file problem? any ideas? TheBrick Linux - General 0 05-17-2006 11:21 AM
about `make` and debug source code naihe2010 Programming 9 12-13-2005 05:03 AM

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

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