LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   cannot find cc (https://www.linuxquestions.org/questions/linux-from-scratch-13/cannot-find-cc-278354/)

alaios 01-16-2005 03:40 AM

cannot find cc
 
Hi... I am trying to compile the binutils package for my lfs system (I think that this is the first step)... The binutils package returns the error "cannot find cc compiler."
I have noticed that the command cc does not exist in the system (Fedora 2 Core).. I have tried to find and install it but i can't locate the package that contains the cc compiler :(

But still i have installed the cpp .. Should i create a link from the cpp to cc so to start working with the binutils package or not?
Thx a lot

__J 01-16-2005 04:02 AM

do you have gcc?

cc is a symlink for gcc.

cpp is the c pre processor ( the one that does text substitutions)

and cc is the c compiler ( the one that actually does the compiling).

So if you end up having gcc in say /usr/bin do the following:

Code:

ln -s /usr/bin/gcc /usr/bin/cc
and that will take care of your problem. If you execute gcc in an terminal and it tells you command not found then you need to install the development packages for your distro(which you should have cause cpp is from the gcc package).

320mb 01-16-2005 04:02 AM

cc is usually a symlink to gcc

gcc is the RPM you need to install
I guess fedora does not install it by default...........


All times are GMT -5. The time now is 06:22 PM.