Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    install gcc3.4.0 problem.

    I've tried installing GCC3.4.0 on my redhat linux9.0 , but every time I go to configure(run:

    # ../gcc-3.4.0/configure --prefix=/usr/local/gcc-3.4.0 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --with-system-zlib --enable-languages=c,c++,java

    , it messes up

    ~/Source/objdir# /root/Source/configure
    creating cache ./config.cache
    checking host system type... i686-pc-linux-gnuoldld
    checking target system type... i686-pc-linux-gnuoldld
    checking build system type... i686-pc-linux-gnuoldld
    checking for a BSD compatible install... /usr/bin/install -c
    /root/Source/configure: line 2332: cc: command not found
    *** The command 'cc -o conftest -g conftest.c' failed.
    *** You must set the environment variable CC to a working compiler.

    how to solve it. now I cant install any software.

  2. #2
    Linux Newbie
    Join Date
    Apr 2004
    Stockholm, Sweden
    I think your problem is, $CC is set to "cc",
    and not "gcc".....

    seems so from the log you posted at least...

    seems weird though...
    do set | grep cc
    and see what happens...

    because if you are running RH I assume you are using the gcc compiler...


  3. #3

    what is the next? thanks.

    I input :
    #set | grep cc
    no info display.
    I think it need a pre-built binary gcc.

    but how to do it next?

    thanks for your help.

  4. $spacer_open
  5. #4
    I am using RedHat 7.3. I want to install gcc3.4.0, so I did these steps:

    1- uninstall gcc-2.9.6:
    I could uninstall these packages: gcc-g77-2.96-110, gcc-objc-2.96-110, gcc-c++-2.96-110, gcc-chill-2.96-110, gcc-java-2.96-110. But gcc-2.96.110 was still needed by kernel-source-2.1.18-3, so I couldn't uninstall the last ackage: gcc-2.96-110.
    I had gcc3.4-3.4.0-1mdk.i586.rpm and use the command rpm --upgrade to install it.
    After I used this command, there was an error, and it required me to install: binutils >=, gcc3.4-cpp = 3.4.0-1mdk, libgcc >= 3.3.2-5mdk and

    I want to ask: Can I install gc3.4.0 on RedHat7.3? And if yes, are there any other ways to install gcc3.4.0?

    Thank you in advance.[/b]

  6. #5
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    Yes, you can install GCC 3.4 on a RH7.3 system, but there will quite a number of dependencies that you will need to upgrade as well. That's how it is - they changed quite a number of binary-compatibility issues in the release of GCC 3.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts