• 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: Problem compiling first Cocoa app in Xcode 3.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem compiling first Cocoa app in Xcode 3.1


  • Subject: Re: Problem compiling first Cocoa app in Xcode 3.1
  • From: "Paul Denlinger" <email@hidden>
  • Date: Sun, 20 Jul 2008 20:48:18 -0700

I entered the commands and got this response:

which ruby
/opt/local/bin/ruby
paul-denlingers-macbook-pro:/ pdenlinger$ ls -Ale@/opt/local/bin/ruby
ls: illegal option -- /
usage: ls [-ABCFGHLPRSTWabcdefghiklmnopqrstuwx1] [file ...]
paul-denlingers-macbook-pro:/ pdenlinger$ ls -Ale@/opt/local/bin/ruby
ls: illegal option -- /
usage: ls [-ABCFGHLPRSTWabcdefghiklmnopqrstuwx1] [file ...]
paul-denlingers-macbook-pro:/ pdenlinger$ 

Am I entering the second command wrong?

TIA 

Paul D

On Sun, Jul 20, 2008 at 7:59 PM, Bill Royds <email@hidden> wrote:

On 20-Jul-08, at 22:38 , Paul Denlinger wrote:

Thank you.

I have checked /usr/bin; there is no installation of Ruby there; it was moved to the /opt/local directory because of the Macports installation. Ruby will have to be downloaded, compiled and installed in the right directory.

All of this is a bit beyond my current capabilities, so if you know anyone who can do this, please have them contact me. 

Thanks again,


You shouldn't have to reinstall it. 
To check where a particular command is located type (in Terminal):
bill-royds-computer:~ billroyds$ which ruby
/usr/bin/ruby
then check to see what it actually is


bill-royds-computer:~ billroyds$ ls -Ale@ /usr/bin/ruby
lrwxr-xr-x  1 root  wheel  76 31 Oct  2007 /usr/bin/ruby -> ../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby

the e and @ extensions are Apple specific to show whether there are ACLs or  resource forks attached to it.

These indicate that the ruby in my /usr/bin directory i actually a symlink to /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby (the relative path is to /usr/bin/../.. which is the root directory).
See if you still have the version above and just restore the symlink
$ sudo ln -s /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby /usr/bin/ruby



Bill Royds





--
Paul Denlinger
"Risk is about seeing opportunities when others see challenges."
Skype: pdenlingercbs
Profile:http://www.linkedin.com/in/pauldenlinger
Visit my blog at www.chinavortex.com
China | Business | Economy | Internet|Technology


DISCLAIMER:
The content of this email and any attachment may contain proprietary and confidential information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then deleting it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.
 _______________________________________________
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

  • Follow-Ups:
    • Re: Problem compiling first Cocoa app in Xcode 3.1
      • From: Philip Aker <email@hidden>
    • Re: Problem compiling first Cocoa app in Xcode 3.1
      • From: "Conrad Taylor" <email@hidden>
References: 
 >Problem compiling first Cocoa app in Xcode 3.1 (From: "Paul Denlinger" <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: Dmitri Goutnik <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: Sam Net <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: "Conrad Taylor" <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: "Paul Denlinger" <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: "Conrad Taylor" <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: "Paul Denlinger" <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: "Paul Denlinger" <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: Bill Royds <email@hidden>)

  • Prev by Date: Re: Error codes
  • Next by Date: Re: Error codes
  • Previous by thread: Re: Problem compiling first Cocoa app in Xcode 3.1
  • Next by thread: Re: Problem compiling first Cocoa app in Xcode 3.1
  • Index(es):
    • Date
    • Thread