Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 01-16-2005, 04:40 AM   #1
Senior Member
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
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
Old 01-16-2005, 05:02 AM   #2
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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:

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).

Last edited by __J; 01-16-2005 at 05:03 AM.
Old 01-16-2005, 05:02 AM   #3
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
cc is usually a symlink to gcc

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


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
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 01:15 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 04:07 AM
I can find the camera but can't find the images? sneckert Linux - Newbie 2 02-02-2005 09:51 AM
find: . changed during execution of find suse degraffenried13 Linux - General 3 12-12-2004 08:13 PM
linux 'find' to find text files subu_s Programming 2 12-02-2004 03:56 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration