LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-14-2009, 01:10 PM   #1
salfuser
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Rep: Reputation: 0
why most of times make and make install never works? i use them as a root only


ok on ubuntu almost 95% times i tried to compile source file(.bz,.gz etc) using tar xvzf etc and till ./configure everything goes fine. but then i enter the directory of that software and try to make and make install (as a root ofcourse) but it says "makefile not found" even though i could see "makefile.am and makefile.in in every subdirectory. what could be problem then?? (ok its not always that thoose makefile are present but it do most of times). even the read me file asks me to do the same i.e. "make".

but now what i suppose to do??
 
Old 01-14-2009, 01:15 PM   #2
vladmihaisima
Member
 
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
It is strange that you say and till "./configure everything goes fine. but then i enter the directory". You should do the ./configure in the directory of the software.

Also, for someone to be able to help you, you should provide a specific example. Take one of the programs that doens't work, and list here the commands that you gave and the results.
 
Old 01-14-2009, 01:35 PM   #3
salfuser
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 0
MY MISTAKE:
./configure is done after entering the directory.
recently i downloaded clamav.tgz, i extracted it first using tar xvzf filename, then enter that extracted directory and do ./configure. then i become root using "su", and then i do make and got the message "makefile not found" although required makefile "makefile.am and makefile.in was present in every subdirectory.

although i have installed clamav cusing adept but still i want to know why thoose commands did n't worked as it had happened a numerous times.
 
Old 01-14-2009, 01:37 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
when you become root, are you still in the correct directory?
 
Old 01-14-2009, 01:42 PM   #5
salfuser
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 0
some times i become root before everything, in this case i became root after doing the ./configure
and yeah i am still in the correct directory.
 
Old 01-14-2009, 01:47 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
does ./configure ends correctly? no errors ?
 
Old 01-14-2009, 01:55 PM   #7
salfuser
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 0
yes repo it does, as i told its not the first time and i had tried it some 15 days back and now as i am growing up with ubuntu, i am not using this source files anymore although, i am curious why should it not work??

and if i am right, ./configure is just a checking process, not a mandatory one(correct me if i am wrong)

anyways could you help me regarding sound problem in ubuntu, it is much less than windows or other distos like suse.
ok i am going to post it here, it was posted on ubuntu forum but got no help.


thank you for your help
 
Old 01-14-2009, 02:02 PM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
anyways could you help me regarding sound problem in ubuntu, it is much less than windows or other distos like suse.
ok i am going to post it here, it was posted on ubuntu forum but got no help.
open alsamixer and see if everything is set OK
 
Old 01-14-2009, 02:03 PM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
and if i am right, ./configure is just a checking process, not a mandatory one(correct me if i am wrong)
configure will create the make file
 
Old 01-14-2009, 02:09 PM   #10
salfuser
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 0
thanx for help and for the correction
but how to use alsamix, i just opened it using terminal and i don't know what to do next,
 
Old 01-14-2009, 02:18 PM   #11
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You should pay attention to the output of the configure script, each line of it. Typically it goes trough things one at a time and prints output like "X found, Y missing, Z ok, ..." and though it should stop at an error, it may well continue to the end even though not everything is as it should in your environment (depending on what's wrong). So read trough the entire output; if it's long, direct it to a file and use less (for example) to read it trough; see that everything is all right before going on. If something is not, fix it, re-run the configure script and so on.. When configure script finishes without errors, makefile should be present (given that you had a non-broken archive and you extracted all files from it) and you should be able to run it. Again, after 'make' read the output and see that everything is ok before continuing..

But really before going into all that, read the usually provided README and, if present, INSTALL files. They tell you what to do to compile the software; it is not always the "./configure && make && make install" process. It may involve automake, other install scripts or whatever the software creator has thought necessary..and in addition to that the files should tell you what you need in order to compile the software, and if it's some software, perhaps even the version or minimum version needed for it to work -- or maybe notes about some versions that are known to cause trouble. A usual reason for configure failing is that some program or library is not present on the system, or the script can't find it (in which case it can be told where it is).

Then another thing is what you can pass to the configure script as arguments. These should be documented in the README/INSTALL files, or if you run
Code:
./configure --help
or something similar; it may be that the default values won't do, that you need to override them by giving some special arguments to the script. In most cases you don't need to do that, but sometimes you do.

If the makefile indeed is missing (it's called Makefile, without suffix; capital M in most cases), it sounds like the previous step(s) didn't go all right. You may post the (relevant) output of the previous step(s) if you think it might help, but if it's hundreds of lines, try to cut it down a little..

Sometimes I find that source projects compile "easier" (with less effort) on some distributions than others; Slackware particulary has been a nice one. With some software it *might* matter that Ubuntu (for example) is meant to be more a "desktop OS" than a "developer OS", and so a lot of developer tools are not included in the default installation, which means that one needs to know what to install prior to trying compiling..especially because Ubuntu's installer won't ask you questions about package sets, so you can't just click "C/C++ programming" and have it there (not a bad move with Ubuntu, in my opinion).

Last edited by b0uncer; 01-14-2009 at 02:24 PM.
 
Old 01-14-2009, 02:23 PM   #12
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
but how to use alsamix, i just opened it using terminal and i don't know what to do next,
navigate with the arrowkeys, and adjust the volume
 
Old 01-14-2009, 02:27 PM   #13
salfuser
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 0
thanx for sticking around, i think i will try but right know i am almost used to apt-get and adept.
hey could you take a look at the sound problem
 
Old 01-14-2009, 02:31 PM   #14
salfuser
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 0
thanx again buddy, i should have tried that but my problem is still there, i am looking at similar posts over net and it seems that i have to download some extra lib.
thanx once again
 
Old 01-14-2009, 02:31 PM   #15
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
hey could you take a look at the sound problem
Ty the alsamixer, if that doesn't help, open a new thread for the sound problem.
 
  


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
module.ko: make, install & used many times. Suddenly modprobe=invalid module format?? GrapefruiTgirl Linux - General 16 08-04-2007 06:40 AM
[root@oprations Module]# make make -C /lib/modules/2.6.18-1.2798.fc6/build SUBDIRS=/r korotania Fedora 7 06-22-2007 04:12 PM
How do I make an install from root ? Max Linux Linux - Newbie 7 06-30-2006 08:42 PM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 06:58 AM
make install by root or lfs? bingbang Linux From Scratch 2 02-29-2004 11:36 AM


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