CC : command not foundForum: myDSL Extensions (deprecated) Topic: CC : command not found started by: ReTeP Posted by ReTeP on April 24 2005,18:02
I've installed gcc1.dsl so compiling is most of the times no problem but when I tried to install proftpd I get the following error:cc : command not found ./configure went wel but the error appears with the make-function. I've checked it but something like cc.dsl or so isn't available in the repository. Can somebody advise me with this problem? - DSL 1.0 - proftpd 1.2.10 Posted by mikshaw on April 24 2005,18:34
Check your makefile. There may be a variable "CC" that can be changed:CC=gcc Posted by ReTeP on April 24 2005,18:46
I allready executed this command with gcc in stead of cc but it halted on an invalid option (-02)
Posted by Guest on April 25 2005,14:59
I think what mikshaw was trying to say was that, even though ./configure worked well, there may still be references to cc instead of gcc in the Makefile that ./configure created. I got this problem before when I tried to compile some source that I got from a repacker instead of that from the original site. Although one would normally use autoconf in order to keep things neat, the repacker thought he could just edit Makefile.in.One thing you can do is follow what mikshaw said and wade through the makefiles AFTER running ./configure. There maybe more than one "makefiles" and you will have to hunt for them in the subpaths. You could get a snapshot of the contents of the source tree before and after you run ./configure to see what changed. Another option is to do "sudo ln -s /usr/bin/gcc /usr/bin/cc" before running ./configure. One thing that is still not clear to me about your post is whether ./configure worked without detecting gcc. I have this nagging feeling that you may be trying to compile a source that was meant to be for another system, so ./configure assumed your compiler is called cc and used the "appropriate" switches. |