LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where's my compiler? (https://www.linuxquestions.org/questions/linux-newbie-8/wheres-my-compiler-231499/)

zeviddalop 09-16-2004 04:38 PM

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

MikeFoo1 09-16-2004 04:44 PM

Have you tried which gcc command ?

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

HTH

michaelk 09-16-2004 04:56 PM

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

Boudewijn 09-16-2004 05:01 PM

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.


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