New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

using gcc to compile


Post Reply New Thread Subscribe

 
Thread Tools
inflames

 
inflames's Avatar
 
Member Since: Sep 05, 2010
Location: NZ
Posts: 6
inflames is on a distinguished road
Mac Specs: MacBook Pro 13.3" Intel Core 2 Duo: 2.53 GHz, Memory: 4 GB, NVIDIA GeForce 9400M, 250Gb HDD

inflames is offline
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.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,033
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
gcc should be in /usr/bin. What do you get when you type : echo $PATH?
QUOTE Thanks
inflames

 
inflames's Avatar
 
Member Since: Sep 05, 2010
Location: NZ
Posts: 6
inflames is on a distinguished road
Mac Specs: MacBook Pro 13.3" Intel Core 2 Duo: 2.53 GHz, Memory: 4 GB, NVIDIA GeForce 9400M, 250Gb HDD

inflames is offline
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
QUOTE Thanks
inflames

 
inflames's Avatar
 
Member Since: Sep 05, 2010
Location: NZ
Posts: 6
inflames is on a distinguished road
Mac Specs: MacBook Pro 13.3" Intel Core 2 Duo: 2.53 GHz, Memory: 4 GB, NVIDIA GeForce 9400M, 250Gb HDD

inflames is offline
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?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,775
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
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
QUOTE Thanks
inflames

 
inflames's Avatar
 
Member Since: Sep 05, 2010
Location: NZ
Posts: 6
inflames is on a distinguished road
Mac Specs: MacBook Pro 13.3" Intel Core 2 Duo: 2.53 GHz, Memory: 4 GB, NVIDIA GeForce 9400M, 250Gb HDD

inflames is offline
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
File Type: png Screen gcc.png (555.9 KB, 5 views)
QUOTE Thanks

Post Reply New Thread Subscribe


« Installing bandwidth monitor NG | Help empowering BSD gcc on iMacBook »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
I cannot properly install gcc and gfortran gcordoba OS X - Development and Darwin 3 02-18-2010 04:28 PM
Compile source code GCC ANSI C verbatim210 OS X - Development and Darwin 3 08-27-2007 07:46 AM
gcc compiling jdgti OS X - Development and Darwin 5 09-20-2006 04:08 AM
How to install GCC version 4.xx???? Philipina OS X - Development and Darwin 1 04-14-2006 10:25 AM
gcc compiler, no stdio.h found lzco OS X - Development and Darwin 6 10-21-2005 04:23 PM

All times are GMT -4. The time now is 01:16 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?