Results 1 to 6 of 6
  1. #1

    inflames's Avatar
    Member Since
    Sep 05, 2010
    Location
    NZ
    Posts
    6
    Specs:
    MacBook Pro 13.3" Intel Core 2 Duo: 2.53 GHz, Memory: 4 GB, NVIDIA GeForce 9400M, 250Gb HDD
    using gcc to compile
    Hey,

    so I'm trying to build bandwidth monitor -NG from open source.

    I cd to bmw and run ./configure in terminal

    Code:
    Brad-MacBook-Pro:bwm brad$ ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... no
    checking for style of include used by make... none
    checking for gcc... no
    checking for cc... no
    checking for cl.exe... no
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details.
    Brad-MacBook-Pro:bwm brad$ echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    Brad-MacBook-Pro:bwm brad$
    I've just installed Xcode off my osx disk and "which gcc" returns nothing
    Code:
    Brad-MacBook-Pro:~ brad$ which gcc
    Brad-MacBook-Pro:~ brad$
    Also running ls -l /usr/bin/gcc* simply returns this
    Code:
    Brad-MacBook-Pro:~ brad$ ls -l /usr/bin/gcc*
    ls: /usr/bin/gcc*: No such file or directory
    can anyone help? if more info is needed just ask and i'll try to find it
    I'm new to macs'

    I just did find . -name gcc* -print
    Code:
    Brad-MacBook-Pro:~ brad$ find . -name gcc* -print
    and it didn't return anything.

    i can find gcc in finder under /Developer/usr/bin

    thanks ahead of time if anyone can help or offer any kind of solution.

  2. #2

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,528
    Specs:
    21in. iMac 10.11 --- HP win 10
    gcc should be in /usr/bin. What do you get when you type : echo $PATH?

  3. #3

    inflames's Avatar
    Member Since
    Sep 05, 2010
    Location
    NZ
    Posts
    6
    Specs:
    MacBook Pro 13.3" Intel Core 2 Duo: 2.53 GHz, Memory: 4 GB, NVIDIA GeForce 9400M, 250Gb HDD
    echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

  4. #4

    inflames's Avatar
    Member Since
    Sep 05, 2010
    Location
    NZ
    Posts
    6
    Specs:
    MacBook Pro 13.3" Intel Core 2 Duo: 2.53 GHz, Memory: 4 GB, NVIDIA GeForce 9400M, 250Gb HDD
    running a 'find . -name gcc* -print' in the developer dir gives the following results.

    Code:
    Brad-MacBook-Pro:Developer brad$ find . -name gcc* -print
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.2.1
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.0.1
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.0.1/gcc
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.0.1/gccinstall
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.0.1/gccint
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.0.1/gccint/gcc-Directory.html
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.2.1
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.2.1/gcc
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.2.1/gccinstall
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.2.1/gccint
    ./Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/gcc-4.2.1/gccint/gcc-Directory.html
    ./SDKs/MacOSX10.4u.sdk/usr/include/gcc
    ./SDKs/MacOSX10.4u.sdk/usr/lib/gcc
    ./SDKs/MacOSX10.5.sdk/Developer/usr/llvm-gcc-4.2/include/gcc
    ./SDKs/MacOSX10.5.sdk/Developer/usr/llvm-gcc-4.2/lib/gcc
    ./SDKs/MacOSX10.5.sdk/usr/include/gcc
    ./SDKs/MacOSX10.5.sdk/usr/lib/gcc
    ./usr/bin/gcc
    ./usr/bin/gcc-4.0
    ./usr/bin/gcc-4.2
    ./usr/gcc-4.2
    ./usr/include/gcc
    ./usr/lib/gcc
    ./usr/lib/gcc/i686-apple-darwin9/4.0.1/include/gcc
    ./usr/lib/gcc/i686-apple-darwin9/4.2.1/include/gcc
    ./usr/lib/gcc/powerpc-apple-darwin9/4.0.1/include/gcc
    ./usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/gcc
    ./usr/libexec/gcc
    ./usr/llvm-gcc-4.2/include/gcc
    ./usr/llvm-gcc-4.2/lib/gcc
    ./usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin9/4.2.1/include/gcc
    ./usr/llvm-gcc-4.2/lib/gcc/powerpc-apple-darwin9/4.2.1/include/gcc
    ./usr/llvm-gcc-4.2/libexec/gcc
    ./usr/share/man/man1/gcc-4.0.1
    ./usr/share/man/man1/gcc-4.2.1
    ./usr/share/man/man1/gcc.1
    not sure if thats useful or not?

  5. #5

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    On my machine, /usr/bin/gcc is a symlink to /usr/bin/gcc-4.2. Do you have /usr/bin/gcc-4.2? If so and you don't have the gcc symlink, make it:
    Code:
    sudo ln -s /usr/bin/gcc-4.2 /usr/bin/gcc
    This should have been done for you but it's possible something prevented this from happening.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  6. #6

    inflames's Avatar
    Member Since
    Sep 05, 2010
    Location
    NZ
    Posts
    6
    Specs:
    MacBook Pro 13.3" Intel Core 2 Duo: 2.53 GHz, Memory: 4 GB, NVIDIA GeForce 9400M, 250Gb HDD
    Heya, thanks for replying,

    I ran the ln cmd, worked from what i can tell but alas still no 'which gcc' returns in terminal. uploaded a ss of dev/usr/bin as you can see both gcc-4.0 and gcc4.2 are there and yet the ./configure still wont recognize it, it's not just this ./configure script either.

    thanks
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do I compile source code on a mac Im trying to compile hydra 7.1.src.tar.gz on a
    By programmaster in forum OS X - Development and Darwin
    Replies: 5
    Last Post: 11-15-2011, 10:16 AM
  2. 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
  3. Compile source code GCC ANSI C
    By verbatim210 in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 08-27-2007, 07:46 AM
  4. could some one compile something for me
    By heavensent in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 07-06-2007, 03:55 AM

Posting Permissions

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