Advertisement

Help installing GCC

Started by March 15, 2002 10:19 AM
4 comments, last by Vegadam 22 years, 10 months ago
Ok, I unzipd it and all that good stuff. And then I did the ./configure. But it gave me som CC error. How to I get the CC into my path? I must set the enviroment variable CC to a working compiler. I dont have a compiler, I dont think. Im getting a compiler to compile things? Any way, Im running mandrake, the newest one. Can someone help me?
CC = C Compiler ... sounds like you have downloaded the compiler's sources. It's a chicken-and-egg problem. You cannot compile a compiler withough a compiler.

What you need to do is get a binary version.

At worst, under Linux, it comes in a RPM (for RH-based distributions, or other type of packages...) that you can install. Read the docs (esp. 'man rpm').


Otherwise, the compiler should be in /usr/bin, which should be in the path.

Edit: try "export CC=/usr/bin/gcc" or "export CC=/usr/bin/g++"

[edited by - Fruny on March 15, 2002 8:14:40 PM]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Advertisement
Ok, thank you. But if that dosnt work, does someone know where I can get a Binary compiler? I would really aprietiate it.

http://gcc.gnu.org/install/binaries.html

or http://ftp.linux.hr/pub/mandrake/Mandrake-devel/unsupported/8.0/i586/gcc-2.96-0.64mdk/ though I don't know if they are binaries.

[edited by - Fruny on March 15, 2002 11:47:08 PM]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
quote:
Original post by Vegadam
Ok, I unzipd it and all that good stuff. And then I did the ./configure. But it gave me som CC error. How to I get the CC into my path? I must set the enviroment variable CC to a working compiler. I dont have a compiler, I dont think. Im getting a compiler to compile things? Any way, Im running mandrake, the newest one. Can someone help me?





As a default with mandrake, you have gcc installed. You might want to try "whereis gcc" or "locate gcc" to see if you have it on your system. On some systems, there''s also an alias called "where" that you can you to search through your path to see if it''s there...



"And that''s the bottom line cause I said so!"

Cyberdrek
cyberdrek@gdnmail.net
Founder Laval Linux

/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash
[Cyberdrek | ]
When I installed it I had my friends CD, and didnt do full install, I didnt have time. So, I needed a Binary compiler, but my CDROM broke, which sucks, so I have to wait, cause Im to lazy/stupid to figure out which Binary version I need.

This topic is closed to new replies.

Advertisement