LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Weird problem encountered while trying to install GCC (https://www.linuxquestions.org/questions/linux-software-2/weird-problem-encountered-while-trying-to-install-gcc-79410/)

sykopath 08-06-2003 01:13 AM

Weird problem encountered while trying to install GCC
 
Okay, I'm trying to get GCC 3.3 on a Mandy box.

When I tried to configure to prep for install, I got the
Code:

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

message.

I looked up the forums and saw the export command solution, but it didn't work.

Did a rpm -q gcc, and bash told me gcc was not installed.

So I went to rpmfind and downloaded the gcc-3.2-6mdk.x86_64.rpm package, which I ran, and a message box told me that everything was already installed.

Then I performed another rpm -q gcc. Not installed.

What am I doing wrong?

tcaptain 08-06-2003 08:37 AM

try this:

rpm -qa | grep gcc

does that give you anything? I'm just thinking that 'gcc' alone isn't the full name of the package, so your other command would show 'gcc ' (rather than gcc-whatever-XX) as not installed.

sykopath 08-06-2003 07:57 PM

Thanks for the reply.

Code:

libgcc1-3.2.2-3mdk
gcc-cpp-3.2.2-3mdk

Strange. so the gcc-3.2-6mdk.x86_64.rpm has not been installed. But why did it say that everything has been installed?

sykopath 08-08-2003 03:08 AM

Okay, when I do a rpm -q gcc on a friend's machine, it returns
Code:

gcc-3.2.2-3mdk
I have
Code:

gcc-cpp-3.2.2-3mdk
when I do a rpm -qa | grep gcc.

What's the difference between the two?

And why does the gcc-cpp-3.2.2-3mdk not show up when I do a plain rpm -q gcc?

More importantly, how do I rectify the problem?


All times are GMT -5. The time now is 06:14 AM.