Quote:
Originally Posted by haraldmartin
Did you symlink /usr/bin/ruby to the new, updated version (in /opt/local if you installed via mac ports)?
try this:
which version?
/usr/bin/ruby -v
/opt/local/bin/ruby -v
If the version living in /usr isn't the newest but the version built into Tiger (1.8.2 I believe) you should be able to fix this by linking the version in /usr/bin to the mac ports version:
sudo mv /usr/bin/ruby /usr/bin/ruby~
sudo ln -nfs /opt/local/bin/ruby /usr/bin/ruby
This should fix Rubygems as well if you installed them via Mac Ports.
You can try to run the from the ruby living in /opt:
/opt/local/bin/ruby ~/Desktop/OFfline/OFfline.rb
(change to match your real path of course). Does it work?
Please backup everything before etc so nothing is damaged.
|
I may have ruined my ruby installation. In terminal I ran the command:
Ruby -v
and it returned a version number. But it still would not install the applescript Gem.
Then, as suggested above I ran the commands:
sudo mv /usr/bin/ruby /usr/bin/ruby~
sudo ln -nfs /opt/local/bin/ruby /usr/bin/ruby
Now when I run the version command I get:
ruby: command not found.
I'm a complete novice at this kind of hacking. Can anyone please help restore my ruby install? I already have the developer tools installed.
Thank you in advance for your help.