On Jan 10, 2012, at 10:54 PM, ruijie chen wrote:
> hello, you can change the Languages preferences 'Run Command' from:
> ruby $filename
> to:
> [[ -s /Users/__yourname__/.rvm/scripts/rvm ]] && source
> /Users/__yourname__/.rvm/scripts/rvm && ruby $filename
>
> pls change __yourname__ to your home folder name :)
>
That's not working here. I get no output other than Run Failed. If I pull it
back to ruby $filename, I at least get an error message, and I get the same
error message if I put an explicit path to the rvm-installed ruby in place of
the bare word ruby. (It's running the correct ruby in either case.)
<updated rvm to very latest version, using your run command unedited gives me:>
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
/Users/waltd/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require': no such file to load -- nokogiri (LoadError)
from
/Users/waltd/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from test.rb:2
Line 2 of my test script is simply require 'nokogiri' (and line 1 is require
'rubygems'). gem list shows Nokogiri 1.5.0 installed and working (it works in
other scripts or irb).
Walter
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.