Results 1 to 2 of 2
  1. #1
    Philipina
    Guest
    Question How to install GCC version 4.xx????
    Hello,

    I have an iMac and I have to recompile a C application.
    Gcc version installed is 3.3 and I need version 4.0.1 to be able to compile.
    I don't understang how to install a new version.

    Until now I did the following:
    I have downloaded a tar file, untar it in a directory and execute the command "configure".
    Here below is the result:
    -------------------------------------------------------------
    loading cache ./config.cache
    checking host system type... powerpc-apple-darwin8.2.0
    checking target system type... powerpc-apple-darwin8.2.0
    checking build system type... powerpc-apple-darwin8.2.0
    checking for a BSD compatible install... (cached) /usr/bin/install -c
    checking whether ln works... (cached) yes
    checking whether ln -s works... (cached) yes
    checking for gcc... (cached) gcc
    checking whether the C compiler (gcc ) works... yes
    checking whether the C compiler (gcc ) is a cross-compiler... no
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gnatbind... no
    checking whether compiler driver understands Ada... (cached) no
    checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
    checking for correct version of gmp.h... no
    The following languages will be built: c,c++,java,objc
    checking for bison... (cached) bison -y
    checking for bison... (cached) bison
    checking for gm4... (cached) gm4
    checking for flex... (cached) flex
    checking for flex... (cached) flex
    checking for makeinfo... (cached) makeinfo
    checking for expect... (cached) expect
    checking for runtest... no
    checking for powerpc-apple-darwin8.2.0-ar... (cached) ar
    checking for powerpc-apple-darwin8.2.0-as... (cached) as
    checking for powerpc-apple-darwin8.2.0-dlltool... no
    checking for dlltool... no
    checking for powerpc-apple-darwin8.2.0-ld... (cached) ld
    checking for powerpc-apple-darwin8.2.0-lipo... (cached) lipo
    checking for powerpc-apple-darwin8.2.0-nm... (cached) nm
    checking for powerpc-apple-darwin8.2.0-ranlib... (cached) ranlib
    checking for powerpc-apple-darwin8.2.0-strip... (cached) strip
    checking for powerpc-apple-darwin8.2.0-windres... no
    checking for windres... no
    checking for powerpc-apple-darwin8.2.0-objcopy... no
    checking for objcopy... no
    checking for powerpc-apple-darwin8.2.0-objdump... no
    checking for objdump... no
    checking for powerpc-apple-darwin8.2.0-ar... (cached) ar
    checking for powerpc-apple-darwin8.2.0-as... (cached) as
    checking for powerpc-apple-darwin8.2.0-cc... (cached) cc
    checking for powerpc-apple-darwin8.2.0-c++... (cached) c++
    checking for powerpc-apple-darwin8.2.0-dlltool... no
    checking for dlltool... no
    checking for powerpc-apple-darwin8.2.0-gcc... (cached) gcc
    checking for powerpc-apple-darwin8.2.0-gcj... no
    checking for gcj... no
    checking for powerpc-apple-darwin8.2.0-gfortran... no
    checking for gfortran... no
    checking for powerpc-apple-darwin8.2.0-ld... (cached) ld
    checking for powerpc-apple-darwin8.2.0-lipo... (cached) lipo
    checking for powerpc-apple-darwin8.2.0-nm... (cached) nm
    checking for powerpc-apple-darwin8.2.0-objdump... no
    checking for objdump... no
    checking for powerpc-apple-darwin8.2.0-ranlib... (cached) ranlib
    checking for powerpc-apple-darwin8.2.0-strip... (cached) strip
    checking for powerpc-apple-darwin8.2.0-windres... no
    checking for windres... no
    checking where to find the target ar... host tool
    checking where to find the target as... host tool
    checking where to find the target cc... just compiled
    checking where to find the target c++... just compiled
    checking where to find the target c++ for libstdc++... just compiled
    checking where to find the target dlltool... host tool
    checking where to find the target gcc... just compiled
    checking where to find the target gcj... just compiled
    checking where to find the target gfortran... host tool
    checking where to find the target ld... host tool
    checking where to find the target lipo... host tool
    checking where to find the target nm... host tool
    checking where to find the target objdump... host tool
    checking where to find the target ranlib... host tool
    checking where to find the target strip... host tool
    checking where to find the target windres... host tool
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking if symbolic links between directories work... (cached) yes
    creating ./config.status
    creating Makefile
    --------------------------------------------------


    What do I have to do after this?

    I real need help.

    Thank in advance for your support.

    ----------------------------------------
    Philipina

    http://www.BiereMaison.be
    ---------------------------------------

  2. #2
    How to install GCC version 4.xx????
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,081
    Specs:
    13in macbook - 10.10.4
    It's:
    ./configure
    make
    sudo make install (sudo unless you're installing it in your home folder)

    Far as I know, the only way to get gcc4 is to install the latest Xcode.
    Or maybe Fink?
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. llvm gcc 4.2 install?
    By wfs123 in forum OS X - Development and Darwin
    Replies: 16
    Last Post: 01-24-2012, 04:13 PM
  2. Replies: 4
    Last Post: 01-18-2011, 12:03 PM
  3. I cannot properly install gcc and gfortran
    By gcordoba in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 02-18-2010, 04:28 PM
  4. How to upgrade gcc 3 to gcc 4 intel mac
    By jonnyd in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 12-29-2007, 04:34 PM
  5. GCC Version Selection
    By anthonyqkiernan in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 01-04-2004, 03:03 PM

Posting Permissions

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