Yes, and yes, I already tried that first. I get the correct ruby in any script I run in there, but I don't see the nokogiri gem, even though it's listed correctly in gem list.
Walter On Jan 11, 2012, at 1:58 PM, Michal Papis wrote: > are you sure you run stable rvm ? > > rvm get stable > > also you can use one of rubies listed by: > > ls -1 $rvm_path/wrappers/*/ruby > > just put the full path instead of ruby in the 'Run Command': > > ruby $filename > > > On Jan 11, 6:24 pm, Walter Lee Davis <[email protected]> wrote: >> 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 viahttp://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 >>> athttp://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. > -- 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.

