why most of times make and make install never works? i use them as a root only
Linux - NewbieThis 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
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.
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.
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".
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.
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.
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.
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.
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).
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.