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
--
Paul Denlinger
"Risk is about seeing opportunities when others see challenges."
Skype: pdenlingercbs
Profile:
http://www.linkedin.com/in/pauldenlingerVisit my blog at
www.chinavortex.comChina | 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.