LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-16-2009, 03:10 AM   #1
priyatallap
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
query


hi all
i have installed fedora, now i want to install gmp-package.can any one suggest me how it can be done.
thanks in advance

Last edited by priyatallap; 04-20-2009 at 11:59 AM.
 
Old 04-16-2009, 03:17 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
is cc installed?

Code:
$ which cc
if not, install it

Oh, btw, have you tried gcc?

Last edited by eco; 04-16-2009 at 03:18 AM.
 
Old 04-16-2009, 03:18 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

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

Hope this helps.
 
Old 04-17-2009, 11:59 AM   #4
priyatallap
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
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 12:03 PM.
 
Old 04-17-2009, 12:08 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,316

Rep: Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878
Quote:
Originally Posted by priyatallap View Post
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.
 
Old 04-17-2009, 03:05 PM   #6
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
might try
Code:
$ gcc hello
hope that works
 
Old 04-17-2009, 07:50 PM   #7
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up HI

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.
 
Old 04-17-2009, 09:15 PM   #8
maresmasb
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 24
Traditionally 'cc' stands for C Compiler. On Linux and BSD the standard tool is 'gcc', standing for the GNU C Compiler.

By using 'gcc' instead of 'cc' you will not break any coding rules. So the solution is
$ gcc prog.c
and also
$gcc -o prog prog.o
and then
$ ./prog

Fedora pretty much tends to install GCC by default. If you un-selected the GCC package during installation, then add it by issuing 'yum install gcc'.

Everything would be easier if you would use makefiles. But you are using vi for coding on a Fedora system - maybe you like challenges anyway. ;-)

Last edited by Tinkster; 10-30-2010 at 04:17 PM.
 
  


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
query mbg_gayed Linux - Software 5 02-04-2009 08:19 PM
interesting MySQL query/view query :s mjh Programming 3 03-25-2008 08:30 AM
mysql use output of one query in another query secretlydead Programming 2 11-19-2007 02:25 AM
help with mysql query: return nth rows in query hawarden Programming 2 07-31-2006 07:36 PM
query saurabhparihar Linux - Newbie 2 05-21-2005 03:00 PM


All times are GMT -5. The time now is 11:25 PM.

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