Hi
I installed ruby 1.8.5 and rails on mac osX 10.4.9 via darwinports. Ever since, using the run command (cmd-R) for ruby programs from textmate (latest version) gives me:
"/bin/bash: line 4: Sat Apr 21 17:18:00 CDT 2007 /usr/local/bin/ruby: No such file or directory"
Interestingly, I get the same message if I try to run a python program from textmate as well.
There is a file 'ruby' in /usr/local/bin/ and a file 'ruby' in /usr/ bin/ruby
From the command line, "whereis ruby" gives me /usr/bin/ruby
Additionally, if I do the following:
- Open a new TM document
- Type echo $HOME
- Press control-R on that line of shell code
I get:
/Users/charleslsnyder
I previously posted this in the ruby group, but it is really a textmate problem, and it was suggested I move the question to this group...
TIA
C L Snyder
On 4/23/07 6:52 AM, in article fa09ca6d0704230652o573b3cavaaf77f648cbbdb3d@mail.gmail.com, "charles snyder" clsnyder@gmail.com wrote:
I installed ruby 1.8.5 and rails on mac osX 10.4.9 via darwinports. Ever since, using the run command (cmd-R) for ruby programs from textmate (latest version) gives me:
"/bin/bash: line 4: Sat Apr 21 17:18:00 CDT 2007 /usr/local/bin/ruby: No such file or directory"
Interestingly, I get the same message if I try to run a python program from textmate as well.
There is a file 'ruby' in /usr/local/bin/ and a file 'ruby' in /usr/ bin/ruby
From the command line, "whereis ruby" gives me /usr/bin/ruby
But what does "which ruby" say?
Also, what does "echo $PATH" say?
m.
Matt
which ruby gives me: /usr/local/bin/ruby (both terminal and Iterm)
echo $PATH results in: /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin (iterm) or /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin (Terminal)
Sorry for the cross post, but I was unsure if there weren't 2 separate issues (screwy textmate or screwy shell variables), since I can run programs from the command line (with some weird behavior), but not from textmate....
Thanks !
On 4/23/07, Matt Neuburg matt@tidbits.com wrote:
On 4/23/07 6:52 AM, in article fa09ca6d0704230652o573b3cavaaf77f648cbbdb3d@mail.gmail.com, "charles snyder" clsnyder@gmail.com wrote:
I installed ruby 1.8.5 and rails on mac osX 10.4.9 via darwinports. Ever since, using the run command (cmd-R) for ruby programs from textmate (latest version) gives me:
"/bin/bash: line 4: Sat Apr 21 17:18:00 CDT 2007 /usr/local/bin/ruby: No such file or directory"
Interestingly, I get the same message if I try to run a python program from textmate as well.
There is a file 'ruby' in /usr/local/bin/ and a file 'ruby' in /usr/ bin/ruby
From the command line, "whereis ruby" gives me /usr/bin/ruby
But what does "which ruby" say?
Also, what does "echo $PATH" say?
m.
-- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.amazon.com/gp/product/0596102119
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 4/23/07 7:01 PM, in article fa09ca6d0704231901l8dea2e3n46d3ffa049dda2b4@mail.gmail.com, "charles snyder" clsnyder@gmail.com wrote:
I can run programs from the command line (with some weird behavior)
Well, personally, I'm mystified.
I guess what I'd like to know is:
(1) what happens if you make a new TextMate doc, type
puts "hello"
type shift-control-option-R 2 (to change it to Ruby) and command-R
(2) what happens if you add a shebang line at the start and do the same
(3) what weird behavior at the command line? Can you give an example? What happens if you just say ruby --version?
m.
Thanks
In both cases (w + wo shebang):
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
I did read and try the page Alex referenced above, and did the following:
1. created a ~/.bash_profile with
[ -f /etc/profile ] && . /etc/profile [ -f ~/.bashrc ] && . ~/.bashrc
export PATH="$HOME/bin:/opt/local/bin:$PATH"
2. Set the default shell on the computer to be bash
3. I did not yet try the ~/.MacOSX/environment.plist http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html#//apple_ref/doc/uid/20002093-113982 but will do that next
I installed ruby 1.8.5 via darwin ports, but did not delete the 'factory' ruby previously present, but ruby -v gives 1.8.2 In the terminal (or iterm) I can do sudo gem install fastercsv, and it works, then if I irb> require 'faster_csv' it can't find it. However, running print "Hi there" from temp.py in Textmate gives me:
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
(yes, it says ruby)
I may try to
Plan A : reinstall textmate Plan B: reinstall tiger osx + shoot self
On 4/24/07, Matt Neuburg matt@tidbits.com wrote:
On 4/23/07 7:01 PM, in article fa09ca6d0704231901l8dea2e3n46d3ffa049dda2b4@mail.gmail.com, "charles snyder" clsnyder@gmail.com wrote:
I can run programs from the command line (with some weird behavior)
Well, personally, I'm mystified.
I guess what I'd like to know is:
(1) what happens if you make a new TextMate doc, type
puts "hello"
type shift-control-option-R 2 (to change it to Ruby) and command-R
(2) what happens if you add a shebang line at the start and do the same
(3) what weird behavior at the command line? Can you give an example? What happens if you just say ruby --version?
m.
matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.amazon.com/gp/product/0596102119
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
charles, if you create a new user account and try a simple python or ruby file in textmate does it work?
On Apr 24, 2007, at 8:53 AM, charles snyder wrote:
Thanks
In both cases (w + wo shebang):
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
I did read and try the page Alex referenced above, and did the following:
- created a ~/.bash_profile with
[ -f /etc/profile ] && . /etc/profile
[ -f ~/.bashrc ] && . ~/.bashrc
export PATH="$HOME/bin:/opt/local/bin:$PATH"
Set the default shell on the computer to be bash
I did not yet try the
~/.MacOSX/environment.plist but will do that next
I installed ruby 1.8.5 via darwin ports, but did not delete the 'factory' ruby previously present, but ruby -v gives 1.8.2 In the terminal (or iterm) I can do sudo gem install fastercsv, and it works, then if I irb> require 'faster_csv'
it can't find it. However, running print "Hi there" from temp.py in Textmate gives me:
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
(yes, it says ruby)
I may try to
Plan A : reinstall textmate Plan B: reinstall tiger osx + shoot self
On 4/24/07, Matt Neuburg matt@tidbits.com wrote: On 4/23/07 7:01 PM, in article fa09ca6d0704231901l8dea2e3n46d3ffa049dda2b4@mail.gmail.com, "charles snyder" <clsnyder@gmail.com > wrote:
I can run programs from the command line (with some weird behavior)
Well, personally, I'm mystified.
I guess what I'd like to know is:
(1) what happens if you make a new TextMate doc, type
puts "hello"
type shift-control-option-R 2 (to change it to Ruby) and command-R
(2) what happens if you add a shebang line at the start and do the same
(3) what weird behavior at the command line? Can you give an example? What happens if you just say ruby --version?
m.
matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.amazon.com/gp/product/0596102119
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Great idea
unfortunately, I get the same result...
CLS
On 4/24/07, Alex Ross alex.j.ross@gmail.com wrote:
charles, if you create a new user account and try a simple python or ruby file in textmate does it work? On Apr 24, 2007, at 8:53 AM, charles snyder wrote:
Thanks
In both cases (w + wo shebang):
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
I did read and try the page Alex referenced above, and did the following:
- created a ~/.bash_profile with
[ -f /etc/profile ] && . /etc/profile
[ -f ~/.bashrc ] && . ~/.bashrc
export PATH="$HOME/bin:/opt/local/bin:$PATH"
Set the default shell on the computer to be bash
I did not yet try the ~/.MacOSX/environment.plist http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html#//apple_ref/doc/uid/20002093-113982 but will do that next
I installed ruby 1.8.5 via darwin ports, but did not delete the 'factory' ruby previously present, but ruby -v gives 1.8.2 In the terminal (or iterm) I can do sudo gem install fastercsv, and it works, then if I irb> require 'faster_csv'
it can't find it. However, running print "Hi there" from temp.py in Textmate gives me:
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
(yes, it says ruby)
I may try to
Plan A : reinstall textmate Plan B: reinstall tiger osx + shoot self
On 4/24/07, Matt Neuburg matt@tidbits.com wrote:
On 4/23/07 7:01 PM, in article fa09ca6d0704231901l8dea2e3n46d3ffa049dda2b4@mail.gmail.com, "charles snyder" <clsnyder@gmail.com > wrote:
I can run programs from the command line (with some weird behavior)
Well, personally, I'm mystified.
I guess what I'd like to know is:
(1) what happens if you make a new TextMate doc, type
puts "hello"
type shift-control-option-R 2 (to change it to Ruby) and command-R
(2) what happens if you add a shebang line at the start and do the same
(3) what weird behavior at the command line? Can you give an example? What happens if you just say ruby --version?
m.
matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.amazon.com/gp/product/0596102119
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
do you have anything in either
/Library/Application Support/TextMate
or
~/Library/Application Support/TextMate
if you do, try erasing it and restarting TM.
–Alex
On Apr 24, 2007, at 10:15 AM, charles snyder wrote:
Great idea
unfortunately, I get the same result...
CLS
On 4/24/07, Alex Ross <alex.j.ross@gmail.com > wrote: charles, if you create a new user account and try a simple python or ruby file in textmate does it work?
On Apr 24, 2007, at 8:53 AM, charles snyder wrote:
Thanks
In both cases (w + wo shebang):
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
I did read and try the page Alex referenced above, and did the following:
- created a ~/.bash_profile with
[ -f /etc/profile ] && . /etc/profile
[ -f ~/.bashrc ] && . ~/.bashrc
export PATH="$HOME/bin:/opt/local/bin:$PATH"
Set the default shell on the computer to be bash
I did not yet try the
~/.MacOSX/environment.plist but will do that next
I installed ruby 1.8.5 via darwin ports, but did not delete the 'factory' ruby previously present, but ruby -v gives 1.8.2 In the terminal (or iterm) I can do sudo gem install fastercsv, and it works, then if I irb> require 'faster_csv'
it can't find it. However, running print "Hi there" from temp.py in Textmate gives me:
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
(yes, it says ruby)
I may try to
Plan A : reinstall textmate Plan B: reinstall tiger osx + shoot self
On 4/24/07, Matt Neuburg matt@tidbits.com wrote: On 4/23/07 7:01 PM, in article fa09ca6d0704231901l8dea2e3n46d3ffa049dda2b4@mail.gmail.com , "charles snyder" <clsnyder@gmail.com > wrote:
I can run programs from the command line (with some weird behavior)
Well, personally, I'm mystified.
I guess what I'd like to know is:
(1) what happens if you make a new TextMate doc, type
puts "hello"
type shift-control-option-R 2 (to change it to Ruby) and command-R
(2) what happens if you add a shebang line at the start and do the same
(3) what weird behavior at the command line? Can you give an example? What happens if you just say ruby --version?
m.
matt neuburg, phd = matt@tidbits.com, < http://www.tidbits.com/matt/%3E A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! < http://www.amazon.com/gp/product/0596102119%3E
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Matt
/Library/Application Support/TextMate has themes folder and bundles folder - the bundles has Ruby.tmbundle
~/Library/Application Support/TextMate has nothing
I deleted the contents - same result
CLS
On 4/24/07, Alex Ross alex.j.ross@gmail.com wrote:
do you have anything in either /Library/Application Support/TextMate
or
~/Library/Application Support/TextMate
if you do, try erasing it and restarting TM.
–Alex
On Apr 24, 2007, at 10:15 AM, charles snyder wrote:
Great idea
unfortunately, I get the same result...
CLS
On 4/24/07, Alex Ross <alex.j.ross@gmail.com > wrote:
charles, if you create a new user account and try a simple python or ruby file in textmate does it work? On Apr 24, 2007, at 8:53 AM, charles snyder wrote:
Thanks
In both cases (w + wo shebang):
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
I did read and try the page Alex referenced above, and did the following:
- created a ~/.bash_profile with
[ -f /etc/profile ] && . /etc/profile
[ -f ~/.bashrc ] && . ~/.bashrc
export PATH="$HOME/bin:/opt/local/bin:$PATH"
Set the default shell on the computer to be bash
I did not yet try the
~/.MacOSX/environment.plist http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html#//apple_ref/doc/uid/20002093-113982 but will do that next
I installed ruby 1.8.5 via darwin ports, but did not delete the 'factory' ruby previously present, but ruby -v gives 1.8.2 In the terminal (or iterm) I can do sudo gem install fastercsv, and it works, then if I irb> require 'faster_csv'
it can't find it. However, running print "Hi there" from temp.py in Textmate gives me:
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
(yes, it says ruby)
I may try to
Plan A : reinstall textmate Plan B: reinstall tiger osx + shoot self
On 4/24/07, Matt Neuburg matt@tidbits.com wrote:
On 4/23/07 7:01 PM, in article fa09ca6d0704231901l8dea2e3n46d3ffa049dda2b4@mail.gmail.com , "charles snyder" <clsnyder@gmail.com > wrote:
I can run programs from the command line (with some weird behavior)
Well, personally, I'm mystified.
I guess what I'd like to know is:
(1) what happens if you make a new TextMate doc, type
puts "hello"
type shift-control-option-R 2 (to change it to Ruby) and command-R
(2) what happens if you add a shebang line at the start and do the same
(3) what weird behavior at the command line? Can you give an example? What happens if you just say ruby --version?
m.
matt neuburg, phd = matt@tidbits.com, < http://www.tidbits.com/matt/%3E A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! < http://www.amazon.com/gp/product/0596102119%3E
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
charles,
see the Important note at the bottom of this page: http:// macromates.com/textmate/manual/shell_commands
does that help?
–Alex
On Apr 23, 2007, at 6:52 AM, charles snyder wrote:
Hi
I installed ruby 1.8.5 and rails on mac osX 10.4.9 via darwinports. Ever since, using the run command (cmd-R) for ruby programs from textmate (latest version) gives me:
"/bin/bash: line 4: Sat Apr 21 17:18:00 CDT 2007 /usr/local/bin/ruby: No such file or directory"
Interestingly, I get the same message if I try to run a python program from textmate as well.
There is a file 'ruby' in /usr/local/bin/ and a file 'ruby' in /usr/ bin/ruby
From the command line, "whereis ruby" gives me /usr/bin/ruby
Additionally, if I do the following:
- Open a new TM document
- Type echo $HOME
- Press control-R on that line of shell code
I get:
/Users/charleslsnyder
I previously posted this in the ruby group, but it is really a textmate problem, and it was suggested I move the question to this group...
TIA
C L Snyder
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Apr 23, 2007, at 8:52 AM, charles snyder wrote:
"/bin/bash: line 4: Sat Apr 21 17:18:00 CDT 2007 /usr/local/bin/ruby: No such file or directory"
Charles, when we discussed this problem off-list, you initially showed this error and I assumed it was a loading Ruby issue. As we kept talking though, you showed an unrelated error inside TextMate's web_preview.rb library. You might want to share that second error message here. Also, can you tell us under which circumstances you see which errors?
James Edward Gray II
Yes - It was suggested :
"Try going into TM's preferences, over to the Advanced section, and setting a variable called TM_RUBY to /opt/bin/ruby (double-check me on the location though).
Hope that helps. James Edward Gray II"
And the result was:
"Actually, I had already tried the "TM_RUBY" trick - tried it again with each of these (one at a time)
1. /opt/local/bin/ruby
2. /usr/bin/ruby
3. /usr/local/bin/
This is the same error message for all three: /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ web_preview.rb:70:in `html_head': undefined method `+' for nil:NilClass (NoMethodError) from /Applications/TextMate.app/Contents/ SharedSupport/Support/lib/scriptmate.rb:186:in `emit_header' from / Applications/TextMate.app/Contents/SharedSupport/Support/lib/ scriptmate.rb:91:in `emit_html' from /Applications/TextMate.app/ Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/ run_script.rb:72"
I know you can set the $PATH variable in several places (.profile, .bashrc). Where is the 'definitive' place to reset it and is the order of precedence left to right by colon delimiters, where it stops looking when it finds the file?
On 4/24/07, James Edward Gray II james@grayproductions.net wrote:
On Apr 23, 2007, at 8:52 AM, charles snyder wrote:
"/bin/bash: line 4: Sat Apr 21 17:18:00 CDT 2007 /usr/local/bin/ruby: No such file or directory"
Charles, when we discussed this problem off-list, you initially showed this error and I assumed it was a loading Ruby issue. As we kept talking though, you showed an unrelated error inside TextMate's web_preview.rb library. You might want to share that second error message here. Also, can you tell us under which circumstances you see which errors?
James Edward Gray II
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Apr 24, 2007, at 1:02 PM, charles snyder wrote:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ web_preview.rb:70:in `html_head': undefined method `+' for nil:NilClass (NoMethodError)
On my setup, this line pulls HOME from the environment variables, which is why I suggested you check that. Can you confirm you get the same line of code when you run this command?
$ head -n 70 /Applications/TextMate.app/Contents/SharedSupport/ Support/lib/web_preview.rb | tail -n 1 user_path = ENV['HOME'] + '/Library/Application Support/ TextMate/Themes/Webpreview/'
James Edward Gray II
On 24. Apr 2007, at 20:02, charles snyder wrote:
[...] This is the same error message for all three: /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ web_preview.rb:70:in `html_head': undefined method `+' for nil:NilClass [...]
This indicates that ENV['HOME'] expands to nil, IOW that the HOME variable is not set for the descendent TextMate processes.
I get reports about this probably biweekly, it seems to be a system bug and is cured by restarting your machine (yes, rebooting :( ).
Maybe this is also the cause of the other problems you have been experiencing. Although from the looks of the errors, it seems that the full output from running ‘date’ has sneaked its way into the error, in front of the command which is not found, making me think something is at fault with your shell.
James -
I'm afraid I'm not sure what you are referring to - I no longer get the aforementioned long error message when I have the variable called TM_RUBY set to /opt/bin/ruby. I just get:
/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
Allan -
I have restarted /shutdown - same result I also, on the assumption that something in the bash shell is corrupt, did the following:
sudo mv /bin/bash /bin/bash.old
sudo cp -p /bin/sh /bin/bash
rebooted
This also didn't change anything...
I'm sorry to be wasting so much of everyone's time on this.
cls
On 4/24/07, Allan Odgaard < throw-away-1@macromates.com> wrote:
On 24. Apr 2007, at 20:02, charles snyder wrote:
[...] This is the same error message for all three: /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ web_preview.rb:70:in `html_head': undefined method `+' for nil:NilClass [...]
This indicates that ENV['HOME'] expands to nil, IOW that the HOME variable is not set for the descendent TextMate processes.
I get reports about this probably biweekly, it seems to be a system bug and is cured by restarting your machine (yes, rebooting :( ).
Maybe this is also the cause of the other problems you have been experiencing. Although from the looks of the errors, it seems that the full output from running 'date' has sneaked its way into the error, in front of the command which is not found, making me think something is at fault with your shell.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 4/24/07 5:12 PM, in article fa09ca6d0704241712g55bfb4adg5db6122777dec393@mail.gmail.com, "charles snyder" clsnyder@gmail.com wrote:
This also didn't change anything
As a Mac user, I can only say that (1) you shouldn't be having these problems, and (2) since it all started when you installed a newer version of Ruby using DarwinPorts, something that you did with DarwinPorts has hosed something. You have said there is a file 'ruby' in /usr/local/bin/ and a file 'ruby' in /usr/bin/, but you do not say anything about /opt/local/bin. You don't seem to know which Ruby you want to use or should be using. Your path:
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/loca l/sbin:/bin:/sbin:/usr/bin:/usr/sbin
...would use the one in /usr/local/bin first (as "which" tells you), but is that the right one? The fact that you installed ruby 1.8.5 via darwin ports, but but ruby -v gives 1.8.2, suggests that the newly installed ruby is not being used. Thus you seem to have hopelessly confused yourself.
Your easiest solution may be to reinstall the system. (People scoff when you say this, but it only takes an hour or two, and it gets you back to a clean system easily.) Then the next time you want to install a newer version of Ruby, don't do it that way. I have nothing personal against DarwinPorts, but but I've never used it and it sure doesn't seem to have done you any good. Know what you're doing, and keep an orderly control over what's where and what your path is. I have ruby 1.8.5 at /usr/local/bin/ruby and it "just works", both at the command line and in TM.
m.
When you next install Ruby, follow the directions posted over at Hivelogic: http://hivelogic.com/narrative/articles/ruby-rails-mongrel- mysql-osx.
B.
On Apr 25, 2007, at 8:59 AM, Matt Neuburg wrote:
Your easiest solution may be to reinstall the system. (People scoff when you say this, but it only takes an hour or two, and it gets you back to a clean system easily.) Then the next time you want to install a newer version of Ruby, don't do it that way. I have nothing personal against DarwinPorts, but but I've never used it and it sure doesn't seem to have done you any good. Know what you're doing, and keep an orderly control over what's where and what your path is. I have ruby 1.8.5 at /usr/local/bin/ruby and it "just works", both at the command line and in TM.
m.
-- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.amazon.com/gp/product/0596102119
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Thanks to all for the advice
CLS
On 4/25/07, Brooks Seymore bseymore@gmail.com wrote:
When you next install Ruby, follow the directions posted over at Hivelogic: http://hivelogic.com/narrative/articles/ruby-rails-mongrel- mysql-osx.
B.
On Apr 25, 2007, at 8:59 AM, Matt Neuburg wrote:
Your easiest solution may be to reinstall the system. (People scoff when you say this, but it only takes an hour or two, and it gets you back to a clean system easily.) Then the next time you want to install a newer version of Ruby, don't do it that way. I have nothing personal against DarwinPorts, but but I've never used it and it sure doesn't seem to have done you any good. Know what you're doing, and keep an orderly control over what's where and what your path is. I have ruby 1.8.5 at /usr/local/bin/ruby and it "just works", both at the command line and in TM.
m.
-- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.amazon.com/gp/product/0596102119
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
MacPorts is a perfectly good way to install Ruby, but you still should read the doc and understand what's happening.
Better than reinstalling everything, you should restore from the back up you did the day before. ;)
-- FredB