C Compiler on LINUX


 
Thread Tools Search this Thread
Operating Systems Linux C Compiler on LINUX
# 1  
Old 12-25-2008
C Compiler on LINUX

Hi,

I am a new user for LINUX. I have started learning C programming. I have heard that there is gcc & g++ compilers already available on LINUX by default.

Kindly guide where to find these compliers on LINUX.

Regards
# 2  
Old 12-25-2008
Depending on your distribution check if GCC is installed, or try 'which gcc' on the command line (XTerm/Konsole/GNOME Terminal/...). If that command prints out a path, you're all set.
You might want to consider installing an IDE like KDevelop or Eclipse.
# 3  
Old 12-25-2008
himvat,

By default gcc is automatically installed in linux OS. Just type gcc in the console,

cheers
# 4  
Old 12-25-2008
what is output of
gcc -v
# 5  
Old 12-29-2008
Csor,

Not every distribution of Linux provides gcc in the default install. Sometimes additional media is required.
# 6  
Old 02-06-2009
Hi guys am using Open Suse 10 and I misplaced the DVD somewhere...i dont have any pre existing gcc compilers. How do i install gcc now? ./configure isnt working, make install isnt working. Please help out. I've tried to download gcc.rpm but rpm -i option is also not working. Smilie
# 7  
Old 02-06-2009
It's better to create a new thread than to ressurect months-old ones whose contents have nothing to do with your question.

You can't build anything without a compiler, including compilers.

If you don't have anything to start with you need binaries. And not just any binaries but the correct ones for your distro and architecture; which probably depend on lots and lots of *-devel packages you never needed since you didn't install a compiler. Could you give more detail beyond "didn't work" as to what errors rpm gave?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Xalan & Xerces issues for Oracle Linux 6.6 & Solarisstudio12.3 C++ compiler for Linux

Hi Team, I am facing issue while using Xalan & Xerces for my application. Below are my environment details i am using :- Platform:- Oracle Linux 6.6 Compiler :- solarisstudio12.3 C++ compiler for Linux Below are the versions of Xalan & Xerces source code used to build the shared object... (0 Replies)
Discussion started by: agrachirag
0 Replies

2. Linux

Xlc compiler on Redhat Linux

Hi , Currently i have my c and pro*c code got compiled in IBM POWER - AIX machine with xlc compiler version 9. We are planning to migrate all our applications from IBM POWER - AIX to Redhat Linux. Can i use the same current (IBM AIX) xlc compiler with the same compiling... (3 Replies)
Discussion started by: mugunthanvh
3 Replies

3. Shell Programming and Scripting

GCC compiler installation on Linux OS

Need assistance in getting a GCC compiler on linux server . I wanted to install GCC compiler under local user . System doesnt have any compiler . Is there a way to get a compiler installed without a root user, cant install using (rpm, yum ) When I try to compile the gcc source i get the... (7 Replies)
Discussion started by: ajayram_arya
7 Replies

4. Red Hat

GCC compiler on linux box

Hi All, My main aim is to find the version of GCC compiler installed on linux box. Case 1: When i use gcc -v i get the foll. O/P Reading specs from /usr/lib/gcc-lib/i386-redhat-linux7/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-128) case 2: when i use... (3 Replies)
Discussion started by: Ashok_oct22
3 Replies

5. Programming

How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries?

To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first? The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's... Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies

6. Ubuntu

MS basic compiler for linux

I have a client who's software is written in ms basic for xenix and compiled on SCO. They would like to get it running on Linux. Does anyone know if there is a MS Basic compiler avialable for Linux? Or is there a way for Linux to run an SCO application? Thanks (3 Replies)
Discussion started by: lochraven
3 Replies

7. Programming

C compiler to build Sparc/Solaris binaries on Linux

Just that the Subject says. I am looking for a C compiler for Linux x86 that will allow me to compile a C source code file and the resulting binary will be able to run on a Sparc running Solaris. Thanks. (2 Replies)
Discussion started by: lyonsd
2 Replies

8. Programming

Doubts About C Compiler In Unix/linux

As all of you know whenever a program "say a.c" is complied in linux using the gcc or the cc compiler..it shows the list of errors ( if the program contains any).. i want to modify the compier script so as to list the no of errors only and not the description about the error..like" parse error " ... (1 Reply)
Discussion started by: vrs
1 Replies

9. Linux

Windows C++ compiler for Linux

Does anyone here know of any good windows c++ compiler for linux? so that I can compile c++ programs in Linux (this is very possible!). Doesnt mather if it is a real windows compiler that works in wine or if its a compiler written for linux but compiles windows binaries (4 Replies)
Discussion started by: Kimm
4 Replies
Login or Register to Ask a Question