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.
cc (probably a link to gcc) is probably not installed.
Try which cc and which gcc
- If both come up empty -> install gcc.
- If cc comes up empty and gcc does show a location -> link cc to gcc (ln -s /path/to/gcc /path/to/cc).
i have installed fedora
running c program
for that i have typed vi hello.c(near $ prompt)
for compiling this i have typed cc hello.c(near $ prompt)
i got cc:bash command not found
Last edited by priyatallap; 04-17-2009 at 11:03 AM.
i have installed fedora
running c program
for that i have typed vi hello.c(near $ prompt)
for compiling this i have typed cc hello.c(near $ prompt)
i got cc:bash command not found
Right...that's the same question you first posted. As others have asked: DO YOU HAVE CC INSTALLED??
Run "which cc" and "which gcc". See what it returns. You can also try typing in "gcc" instead of "cc". If you're going to ask a question, it would help if you followed the advice you were given, not just repost the same question again.
Hi priya,
if gcc not installed, the type
yum install gcc*
for compiling,if its c program then type
gcc filename.c
for executing
type
./a.out
for c++ program
for compiling type
g++ filename.cpp
for executing
./a.out
ALL THE BEST. BY THE WAY CAN WE ARE FRIENDS FROM NOW.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.