LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-16-2004, 04:38 PM   #1
zeviddalop
Member
 
Registered: Sep 2004
Location: bozeman, montana
Distribution: mandrake
Posts: 32

Rep: Reputation: 15
Where's my compiler?


just got mandrake, Discovery edition, and my shell doesn't recognize any of the compile commands (cc, g++, javac). isn't g++ prepacked with all versions of linux? do i have to first unpack it? thanks. - zev
 
Old 09-16-2004, 04:44 PM   #2
MikeFoo1
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 72

Rep: Reputation: 15
Have you tried which gcc command ?

or try g and then hit the tab key and it will list all commands.

HTH
 
Old 09-16-2004, 04:56 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Yes, but I do not think it is install by default. Use the package manager to install the development RPM

Last edited by michaelk; 09-16-2004 at 04:57 PM.
 
Old 09-16-2004, 05:01 PM   #4
Boudewijn
Member
 
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Rep: Reputation: 30
Okk, you can test whether it's installed:

type as a user gc<tab> , if gcc is shown it's alright.

If you do not have gcc installed:

go to the console, get root (type 'su'), type 'urpmi gcc' .

GCC is fine for C - compiling, I prefer G++ for C++ (to get G++, just type urpmi G++).

If urpmi asks whether you want to install dependencies; allow it.
 
  


Reply



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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
C++ IDE+Compiler?Java IDE+compiler? Boby Linux - Software 3 05-31-2005 01:12 PM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM
No compiler to compiler the compliler NewtonIX Linux - Newbie 13 11-03-2003 05:32 AM
compile a compiler without a compiler? lackluster Linux - General 18 01-02-2003 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 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
Open Source Consulting | Domain Registration