Results 1 to 5 of 5

Thread: gcc and g++

  1. #1
    fedesuarez
    Guest
    gcc and g++
    Hi, I just got a Powerbook so I'm a complete newbie on Mac world. I was Linux/Ubuntu i386 user before.

    The problem I have now is that I'm running a framework called ROOT for data analysis (it also have a very usefull bunch of C++ classes). Everything goes right until I try try to compile any program. Of course, I did have gcc, g++, or make installed. So, after googling I found Fink and I did:

    apt-get install gcc4
    apt-get install make
    but I couldn't make apt-get install g++ (that I can make with my linux dist.)

    but gcc command doesn't appear yet....

    I also get an strange messege from apt-get saying:

    /usr/libexec/gcc/darwin/ppc/3.3/cc1plus is not executable!

    I don't know what that means, but what I know is that I can't compile anything yet, since each time I write gcc the bash tells me that the command doesn't exists. Of course, the same hapends to g++. The only thing working from all this is make.... but without g++ is completly useless.

    How can I install gcc and g++ ?????????

    Ok, hope you can help me. Thanks.

    fede.

  2. #2

    MacsWork's Avatar
    Member Since
    May 22, 2005
    Location
    Closer than you think.
    Posts
    2,159
    Specs:
    Performa 6116 2GBSCSI 8MB OS 7.5.3
    use chmod on the file that isn't executable.

  3. #3
    fedesuarez
    Guest
    Quote Originally Posted by MacsWork
    use chmod on the file that isn't executable.
    It seems that you didn't understand the question... sorry, I may explained myself wrong.

    Let's say, I open a terminal and I write:

    d-h-145:~ fede$ gcc
    -bash: gcc: command not found

    d-h-145:~ fede$ g++
    -bash: g++: command not found

    So, of course, the same happens when I try to compile my macros with make, since it just run g++ commands.

    How do I install gcc and g++ in mac???

    Thanks, fede.

  4. #4

    MacsWork's Avatar
    Member Since
    May 22, 2005
    Location
    Closer than you think.
    Posts
    2,159
    Specs:
    Performa 6116 2GBSCSI 8MB OS 7.5.3

  5. #5
    fedesuarez
    Guest
    Quote Originally Posted by MacsWork

    OOHH, I found the solution by searching on another section. It seems that Xcode is needed to be able to develope under Mac. It is easy to download from the Mac site, under developers section. There is just a free registration needed.

    Thanks anyhow.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. gcc?
    By Stemcell in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 11-08-2010, 01:50 PM
  2. using gcc
    By mayflyTR in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 08-28-2010, 10:06 PM
  3. 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, 05:34 PM
  4. Gcc
    By Destructive in forum OS X - Apps and Games
    Replies: 2
    Last Post: 12-18-2007, 12:40 AM
  5. GCC on 10.4.10
    By pokamonster in forum OS X - Operating System
    Replies: 1
    Last Post: 08-02-2007, 11:27 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
  •