Results 1 to 6 of 6

Thread: gcc compiling

  1. #1
    gcc compiling
    jdgti's Avatar
    Member Since
    Mar 14, 2005
    Location
    Atlanta, GA
    Posts
    443
    Specs:
    17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM
    gcc compiling
    I am trying to install some extension files for python to allow it to read all types of website characters, not just the standard ones. Below is my problem.

    Code:
    sfe04:~/Desktop/cjkcodecs-1.1.1 username$ python setup.py install
    running install
    running build
    running build_py
    running build_ext
    building 'cjkcodecs._multibytecodec' extension
    gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/multibytecodec.c -o build/temp.macosx-10.4-fat-2.4/src/multibytecodec.o
    unable to execute gcc: No such file or directory
    error: command 'gcc' failed with exit status 1
    I have installed Xcode and the developer tools given by the ADC website and so I assume I have the GNU gcc compiler and all the flags, but apparently not.

    So basically, right now I am googling how to get the gcc compiler tags listed above in my gcc compiler. I am not really sure how to check if I have all of them once I download and install another gcc package however, so I am sort of stuck. Please let me know if you have had this problem and know how to fix it.

    Thanks in Advance,

    James

  2. #2
    gcc compiling
    cazabam's Avatar
    Member Since
    Jun 06, 2006
    Posts
    1,153
    Specs:
    MacBook 2.0GHz White, 512MB RAM, 60GB HDD
    Hmm .. when I installed Xcode and all the tools from the Tiger install CD, it put gcc in /usr/bin. Go to a terminal and do:

    ls -l /usr/bin/gcc*

    and see what comes back.

  3. #3
    gcc compiling
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,072
    Specs:
    13in macbook - 10.10.4
    Also let us know what you get when you type:
    echo $PATH
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  4. #4
    gcc compiling
    jdgti's Avatar
    Member Since
    Mar 14, 2005
    Location
    Atlanta, GA
    Posts
    443
    Specs:
    17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM
    Quote Originally Posted by cradom
    Also let us know what you get when you type:
    echo $PATH
    /Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/bin:/sbin:/usr/bin:/usr/sbin

  5. #5
    gcc compiling
    mac57's Avatar
    Member Since
    Apr 29, 2006
    Location
    St. Somewhere
    Posts
    4,560
    Specs:
    iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
    In Terminal, type:

    which gcc

    and report back. This will tell you whether gcc is on your path. Your path does include /usr/bin, which is where it should be.

    I would also manually check /usr/bin/gcc, and make sure that it is executable and readable by all. It is unlikely that its permissions have been changed, but worth checking. This is NOT a recommendation to do a "repair permissions" which borders on a useless time waster most of the time. Just check the permissions of this one file.
    My Macs: iMac 27" 3.4 GHz, Mac Pro 3.2 GHz, PowerMac G5 Quad 2.5 GHz, G4 Cube with 1.2 GHz Upgrade
    My iStuff: 64GB iPhone 5, 64GB iPad4, 30GB iPod Video, 16GB iPod Touch
    My OS': Mac OS X Lion, Mac OS X Snow Leopard, Mac OS X Tiger, Mac OS 9.2.2, openSUSE 10.3
    I was on the Mac-Forums honor roll for September 2007

  6. #6
    gcc compiling
    jdgti's Avatar
    Member Since
    Mar 14, 2005
    Location
    Atlanta, GA
    Posts
    443
    Specs:
    17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM
    Quote Originally Posted by mac57
    In Terminal, type:

    which gcc

    and report back. This will tell you whether gcc is on your path. Your path does include /usr/bin, which is where it should be.

    I would also manually check /usr/bin/gcc, and make sure that it is executable and readable by all. It is unlikely that its permissions have been changed, but worth checking. This is NOT a recommendation to do a "repair permissions" which borders on a useless time waster most of the time. Just check the permissions of this one file.
    It is in the right place. I went ahead and changed the permissions on the gcc in usr/bin to be readable and now it works. Must have been that. Thanks.

    James

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. compiling c++ on mac
    By err0rman in forum OS X - Operating System
    Replies: 2
    Last Post: 07-27-2010, 12:57 PM
  2. C Program Trouble Compiling w/GCC, Trouble Running in Xcode
    By ebeccarayray in forum OS X - Apps and Games
    Replies: 1
    Last Post: 09-28-2009, 09:41 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, 04:34 PM
  4. Compiling WINE for os x
    By JaredXM in forum Running Windows (or anything else) on your Mac
    Replies: 3
    Last Post: 10-17-2007, 09:47 PM
  5. Compiling to a Binary?
    By ke5aux in forum OS X - Operating System
    Replies: 3
    Last Post: 03-27-2006, 12:12 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
  •