LinuxQuestions.org
Help answer threads with 0 replies.
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 03-12-2010, 06:25 AM   #1
dipica
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Rep: Reputation: 0
problem regarding C compiler on linux


i m a beginner wid linux and i want to run a C code on it...
i wanted to check if the c compiler was installed on my linusx or not so did it with the command

$ which gcc

the reply i got is..

which: 0652-141 There is no gcc in /usr/local/ncarg64/bin . /usr/bin . /usr/var/bin/cc . /usr/dt/bin . /usr/sbin . /usr/bin/X11 . /usr/lib . /usr/lpp/xlf/lib . /usr/vac/bin . /usr/vacpp/bin . /usr/lpp/XlC . /usr/lpp/X11 . /usr/local/bin/grads-1.8sl11/bin . /usr/local/nedit-5.5-AIX-4.3 . /usr/java14/jre/bin . /usr/local/grads-1.8sl11/bin /home/Deepak/netcdf/bin /home/Deepak/netcdf/include /home/Deepak/netcdf/lib /home/Deepak/netcdf/share.

what does this mean??
 
Old 03-12-2010, 06:27 AM   #2
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
It means there is no gcc in any of those directories. If you mentioned which distro you were using, perhaps we could suggest ways to install gcc for you.
 
Old 03-12-2010, 06:29 AM   #3
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
It just means that gcc isn't installed in your system,
you need to specify the distribution you are using ? for us to tell you how to install gcc.

P.S.
If you are using ubuntu, you can use synaptic package manager to install gcc

Last edited by TheIndependentAquarius; 03-12-2010 at 06:31 AM.
 
Old 03-12-2010, 07:04 AM   #4
dipica
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
actualy i m using the linux OS remotely through the network, it is not installed on my system..
and since i m completely new to this environment i m not able to make out what exactly you people are askin for..
is there any method to find out if at al the compiler is installed on the linux taking the network on the whole..bcoz according to my information the c compiler does exist on it and is already installed
 
Old 03-12-2010, 07:16 AM   #5
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Well, unless you're not using gcc on there, but a different C compiler, your information is incorrect.

Linux is the kernel, built on top of that is what we call the distribution. Ubuntu is a distribution, Slackware, Gentoo etc. are all distributions. (Distribution because they're a collection of programs, packages and scripts distributed with the kernel)

They have different ways on installing gcc. That being said, you'll be far, far, far better off asking your admin where the C compiler is.
 
Old 03-12-2010, 07:21 AM   #6
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Well, it's not in the PATH, so the likihood of gcc being installed elsewhere is slim. If you're not the admin of the system, like James said, you need to either ask where the compiler is installed or get the admin to install it for you.
 
  


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
Linux, Cross compiler for ARM problem vishalp Programming 1 05-17-2006 02:43 PM
Linux, Cross compiler for ARM problem vishalp Linux - Software 1 05-16-2006 07:06 AM
A Problem About Compiler In Slackware Linux... ShoCkwave Linux - Software 5 03-13-2004 01:24 PM


All times are GMT -5. The time now is 12:52 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