LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-22-2011, 04:00 AM   #1
sundar
LQ Newbie
 
Registered: Jul 2011
Posts: 9

Rep: Reputation: Disabled
How to run c file on fedora 15


I failed to run c file in fedora 15. when i was executed file...

gcc sample.c

I got an message -gcc command found.

so, please give solution.
 
Old 08-22-2011, 04:05 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
You actually don't run a C file, you are trying to compile a C program. gcc is the GNU C compiler and it's not installed by default. You can use your graphical software manager (Add/Remove Software) to install it or use the following command from a terminal (as root):
Code:
yum groupinstall "Development Tools"
this will install all the basic software to build applications from source (gcc included).
 
Old 08-22-2011, 06:30 AM   #3
sundar
LQ Newbie
 
Registered: Jul 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
thanks
 
Old 08-30-2011, 05:49 AM   #4
sundar
LQ Newbie
 
Registered: Jul 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
code you have given is not working to load basic software to build appilications from source.
 
Old 08-30-2011, 07:16 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
What is not working means? Please, could you copy/paste the output from your terminal? In addition, what is the output of the following (as root)?
Code:
yum grouplist
 
Old 09-03-2011, 05:10 AM   #6
sundar
LQ Newbie
 
Registered: Jul 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
[root@localhost ~]# yum groupinstall "Development Tools"

when i run above code, output follows:

load plugins :langpacks,presto,refresh-packagekit

setting up Groupprocess

Error :can not retreve repository metadata(repomd.xml) for repository:fedora.Please verify its path and try again.

[root@localhost ~]#yum grouplist

when i run above code output follows:

load plugins :langpacks,presto,refresh-packagekit

setting up Groupprocess

Error :can not retreve repository metadata(repomd.xml) for repository:fedora.Please verify its path and try again.
 
Old 09-03-2011, 05:36 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Maybe it is a wrong configuration of the yum repositories. You should check the file /etc/yum.repos.d/fedora.repo and see if paths to the remote server are correct. Previously you should check the integrity of the package fedora-release:
Code:
rpm -V fedora-release
 
  


Reply


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
trying to run windowz .iso file on fedora 9 using vmware server console vinaytp Linux - Newbie 7 07-08-2009 09:55 AM
I run Fedora 9 and I boot from USB, how I run at startup Firewall and antivirus? gginis Linux - Software 3 06-08-2008 03:19 AM
how to run .exe file as we run the samwe in windows chandrala13 Linux - Newbie 2 05-22-2008 05:30 AM
Run executable file compiled by kylix and mysql in Fedora Core 4 aa_husni Fedora 0 09-15-2005 12:14 AM
Can Fedora run a Deb file? skipslot Fedora 5 08-24-2005 09:23 AM


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

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