LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-07-2002, 04:29 AM   #1
icecream33
LQ Newbie
 
Registered: Oct 2002
Posts: 1

Rep: Reputation: 0
How do I compile?


I am running Redhat Linux 7.3 and apparently it did not come with a compiler because when I tried to install gcc-3.2, I get the message:

*** The command 'cc: command -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

Do I need a precompiled version of gcc?
If so, where can I get it cuz I can't find it anywhere?
If not, what should I do?
 
Old 10-07-2002, 04:44 AM   #2
mayankjohri
Member
 
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158

Rep: Reputation: 30
Try to install rpm

Why dont u try to install rpm of gcc instead .
 
Old 10-07-2002, 07:28 AM   #3
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 425
Blog Entries: 1

Rep: Reputation: 36
Where did you install the compiler?, it should be in /bin, surely in /usr/bin or where the path is defined in your environment variables. Or, if you have an environment variable called CC, it shoud be directed where your gcc compiler is.

Write 'set' in the command prompt to see you environment variables.

Hope this helps.
 
  


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
compile 2.6.13 jupiter3437 Linux - Software 3 09-09-2005 05:09 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 05:22 PM
Cannot compile c davidtsl Programming 8 12-13-2004 02:36 AM
Compile help Twiggy794 Linux - Software 1 12-03-2003 02:53 AM
why won't the following compile? purpleburple Programming 4 09-10-2002 08:12 PM


All times are GMT -5. The time now is 08:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration