Portal   Forum   Members   Market   Gallery   Events

Installing GCC

Discussion in 'Help Forum' started by SpocKirk, Sep 11, 2002.

  1. SpocKirk

    SpocKirk Forum Moderator and Donator

    Joined:
    Feb 28, 2000
    Messages:
    4,813
    Likes Received:
    25
    Market Rating:
    0
    Uh, I'm not at all comfortable using the terminal yet. The installation instructions on the GNU webpage are for UNIX, how much different are the instructions for OS X.1.5?

    And does gcc come preinstalled with X.2?
     
  2. filburt1

    filburt1 Peasant

    Joined:
    Jul 23, 2002
    Messages:
    802
    Likes Received:
    0
    Market Rating:
    0
    Apparently:
    Code:
    Last login: Wed Sep 11 12:22:40 on ttyp1
    Welcome to Darwin!
    [Ariens-iBook:~] filburt1% which gcc
    /usr/bin/gcc
    
     
  3. SpocKirk

    SpocKirk Forum Moderator and Donator

    Joined:
    Feb 28, 2000
    Messages:
    4,813
    Likes Received:
    25
    Market Rating:
    0
    hrm. too bad I don't have X.2 :(

    I guess I'll stay with Turbo C++ 3.0 through Virtual PC for this project. I would like to have GCC working by my next programming class project, though.

    do I need fink?
     
  4. SpocKirk

    SpocKirk Forum Moderator and Donator

    Joined:
    Feb 28, 2000
    Messages:
    4,813
    Likes Received:
    25
    Market Rating:
    0
    well, I had hoped to get an answer... I think Haite would know. If only he would answer :stick:
     
  5. Haite

    Haite Forum Moderator

    Joined:
    Jan 29, 2001
    Messages:
    9,325
    Likes Received:
    34
    Market Rating:
    0
    As far as I know it doesn't. I've never tried either :bonk:.

    The UNIX instructions will pretty much apply to OS X too. However, it does require that GNU Make be installed, which OS X won't have.

    This is the tarball you want http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-3.2/gcc-3.2.tar.gz

    This is the tarball for GNU Make
    http://ftp.gnu.org/pub/gnu/make/make-3.79.tar.gz

    How you untar and ungzip them I don't know since I'm guessing OS X doesn't ship with decompression software either. Just nab something from versiontracker.

    Documentation

    GCC - http://gcc.gnu.org/install/
    Make - http://www.gnu.org/manual/make/html_chapter/make_toc.html

    There doesn't seem to be much install information on make (pretty much no *nix distro comes without it), you may have to dig around the GNU sites and/or post to some mailing lists to get help. When you get Make installed though GCC will be easy to get in there, it'd take 5 seconds on terminal.
     
  6. harleyb

    harleyb Peasant

    Joined:
    Aug 12, 2002
    Messages:
    866
    Likes Received:
    9
    Market Rating:
    0
    install the dev tools, the 10.1 ones come with cc and make. if what you're compiling requires gcc, just ln -s cc to gcc, chances are it won't be able to tell the difference. 10.2 dev tools gave gcc3, btw.
     
  7. SpocKirk

    SpocKirk Forum Moderator and Donator

    Joined:
    Feb 28, 2000
    Messages:
    4,813
    Likes Received:
    25
    Market Rating:
    0
    the latest update to the 10.1 dev tools has gcc and make already installed, too. that's what I finally did
     
  8. Haite

    Haite Forum Moderator

    Joined:
    Jan 29, 2001
    Messages:
    9,325
    Likes Received:
    34
    Market Rating:
    0
    Wow, that's cool. One huge up for Apple from me. I thought they cut all that good stuff out.
     

Hitometer: 54,658,192 since 1995