• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question


  • Subject: Re: Newbie question
  • From: Jack Repenning <email@hidden>
  • Date: Mon, 14 Apr 2008 14:14:30 -0700

On Apr 14, 2008, at 1:07 PM, Conrad Nolte wrote:
While trying to build any of the examples (i.e. the currency converter ) I get the message:
"Couldn't run '/usr/bin/osacompile' because it does not refer to an accessible executable."


Going through the archives of xcode-users I found a case in which following quotes appeared:

"I imagine that Xcode has no real PATH so it doesn't know where it is. That's why you always see /usr/bin/gcc-3.3 whenever it tries to compile something."

This has nothing to do with your reported error. PATH is something used to find programs when you *don't* provide the slashy bits at the front. But since your error message does show "/usr/bin/", it doesn't need PATH, and nothing about PATH is gonna save you.


"It's a new feature, from the 1.1 release notes:
The native build system looks at the CC and CPLUSPLUS flags when determining the path of the compiler for C/Objective-C and C++/ Objective-C++ files, respectively. It also looks at LD and LDPLUSPLUS when linking. If any of these build settings are defined, they override the compiler and linker paths that would otherwise have been chosen. This is done for compatibility with Project Builder and with common makefiles."

This has nothing to do with your reported error. While you might have a "path" problem (rather than a "PATH" problem, discounted above), you do not have a CC, CPLUSPLUS, C, Objective-C, C++, Objective-C++, LD, or LDPLUSPLUS problem; you have an osacompile problem.


This does not help me in solving my problem.

Indeed.

What do I have to do in order to be able to successfully build the example projects that came with XCode?

Well that's still a good question. They work for me, not that that helps you much. What does this command print?


	file /usr/bin/osacompile

It ought to say something like:

/usr/bin/osacompile: Mach-O universal binary with 2 architectures
/usr/bin/osacompile (for architecture ppc7400):	Mach-O executable ppc
/usr/bin/osacompile (for architecture i386):	Mach-O executable i386

but the error message you report essentially says it won't. Maybe if we see what it *does* say, we'll have a hint what's busticated.


Similarly, what does this say:

	ls -l /usr/bin/osacompile

It ought to say something like

-r-xr-xr-x 1 root wheel 78432 Sep 23 2007 /usr/bin/osacompile

... but may be it won't, and that will give us a clue.

-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Newbie question (From: Conrad Nolte <email@hidden>)

  • Prev by Date: Newbie question
  • Next by Date: Re: Newbie question
  • Previous by thread: Newbie question
  • Next by thread: Re: Newbie question
  • Index(es):
    • Date
    • Thread