Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mac > BOOK: Beginning Mac OS X Programming
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Mac OS X Programming
This is the forum to discuss the Wrox book Beginning Mac OS X Programming by Michael Trent, Drew McCormack; ISBN: 9780764573996
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Mac OS X Programming section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 5th, 2006, 05:09 PM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Xcode Building error

I'm on chapter 3 and 5 of the book and I can get any of the projects to compile ie "Hello" & "Slide Master". Like Ari I hit build and go and i get

Couldn't run '/usr/bin/gcc-3.3' because it does not refer to an accessible executable.

I dont do anything else except follow the book and hit build and go
I have read mtrent's reply to Ari but it didnt help.
Any help would be cool. ( I have version 2.0 of xcode)
Thanks
Reply With Quote
  #2 (permalink)  
Old April 11th, 2006, 02:41 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try opening the terminal and typing "gcc" and then enter
thats just to see if gcc is installed at all
then try "file /usr/bin/gcc-3.3" to see if its an executable..
finally, try the actual command that its looking for..
"/usr/bin/gcc-3.3"

it should look something like this:

username:~$ gcc
powerpc-apple-darwin8-gcc-4.0.1: no input files
username:~$ file /usr/bin/gcc-3.3
/usr/bin/gcc-3.3: Mach-O executable ppc
username:~$ /usr/bin/gcc-3.3
gcc-3.3: no input files

if this doesn't work try reinstalling xcode and the developer tools again...if this all works, then something is going on with xcode..i'm just new to that too, so i'm not much help there.

you could try clicking on slide master under the targets folder in the groups and files menu and then press command-i to get info and go to the rules tab and try changing what the system C rule has under "using:" to a different version of gcc...

really, i'd try to redownload xcode 2 the newest version and reinstall...cause you should be using gcc 4.0 by default with the newer versions, and so maybe you don't have those installed..
Reply With Quote
  #3 (permalink)  
Old May 28th, 2006, 09:00 AM
Authorized User
 
Join Date: Aug 2005
Location: La Charité-sur-Loire, , France.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Hayden
 I'm on chapter 3 and 5 of the book and I can get any of the projects to compile ie "Hello" & "Slide Master". Like Ari I hit build and go and i get

Couldn't run '/usr/bin/gcc-3.3' because it does not refer to an accessible executable.

I dont do anything else except follow the book and hit build and go
I have read mtrent's reply to Ari but it didnt help.
Any help would be cool. ( I have version 2.0 of xcode)
Thanks

I think you have two things to do:
- the first: have you gcc and what is its path?
- the second: has your gcc the executable attribute?

To find the correct path, try this in the shell: find / -name "gcc*" -print
You will know if you have gcc, where it is, and if its version number is 3.3

To know if gcc has the executable attribute, type in the shell: ls -iaFl the_path_you_found_in_first
You will see if gcc has the executable attribute. You can change it by chmod u=rwx,go=x the_path_of_gcc

But if you have gcc with a wrong version number, and a wrong path (not /usr/bin/gcc) it is more safe and sure to reinstall Xcode and developer tools. In this case, first use the perl script "uninstall-devtools.pl" to safely uninstall before reinstalling.

(Sorry for my poor english)

FJ
Reply With Quote
  #4 (permalink)  
Old June 3rd, 2006, 02:11 PM
Wrox Author
 
Join Date: Nov 2005
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I agree with wilfordbrimley. Try re-installing the developer tools. Make sure all the packages were selected.

See this article at Apple's web site for more information:

http://discussions.apple.com/message...sageID=2049914

Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
xcode for "learning" Molder Intro Programming 0 April 25th, 2008 12:10 AM
Chapter 4 building error LanceWang BOOK: Professional Java Development with the Spring Framework 0 March 7th, 2008 06:53 PM
Xcode 2.4 differences craigontour Xcode 1 November 24th, 2006 11:08 PM
Error Building VB Source in 1.1.4322 fkmfkm BOOK: ASP.NET Website Programming Problem-Design-Solution 2 April 13th, 2005 10:11 AM
error building dynamic sql in stored procedure paaf64 SQL Server 2000 3 October 6th, 2004 04:08 PM



All times are GMT -4. The time now is 09:33 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.