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.
I have installed linux today and created an account and logged in.
Then I started a new file by using the command
vi filename.c
I saved it.
Then I trien to run the program by
cc filename.c
---------
Try gcc instead. Perhaps you don't have a symlink called "cc" that points to gcc. If you get a command not found error again, you'll need to install gcc.
Try gcc instead. Perhaps you don't have a symlink called "cc" that points to gcc. If you get a command not found error again, you'll need to install gcc.
if cc or gcc are not found in your default path then you need to install the gcc package. You can get gcc from your distribution repositories or from http://gcc.gnu.org/install/binaries.html
Debian & friends (including ubuntu) have a nice package called 'build-essential'. It installs gcc and a bunch of other more-or-less necessary tools. I am not sure about Red-Hat family.
Another point -- if you are beginner, you may want to consider other text editors (although vi is powerful, hands down) or IDE-s. Vi may be awful to start with if you don't have much unix experience beforehand.
Definitely add your distro info to your profile, that'll make our job easier.
BTW, on RH FC series, the menu to install etc is Applications->Add/Remove Software
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.