Any time I try to execute a ruby script that requires certain gems, I get errors like this:
Ignoring bigdecimal-1.2.7 because its extensions are not built. Try: gem pristine bigdecimal --version 1.2.7 Ignoring io-console-0.4.5 because its extensions are not built. Try: gem pristine io-console --version 0.4.5 Ignoring libxml-ruby-2.8.0 because its extensions are not built. Try: gem pristine libxml-ruby --version 2.8.0 Ignoring nokogiri-1.6.7.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.7.2 Ignoring psych-2.0.17 because its extensions are not built. Try: gem pristine psych --version 2.0.17 Ignoring rmagick-2.15.4 because its extensions are not built. Try: gem pristine rmagick --version 2.15.4 Ignoring sqlite3-1.3.11 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.11 Ignoring unf_ext-0.0.7.2 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.2 Ignoring websocket-driver-0.6.3 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.3 /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in
requireâ: cannot load such file â rmagick (LoadError)
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require' from /Users/Greg/Projects/Ruby/RubyScripts/getSide.rb:2:in
'`
Typically I would make sure that the right instance of ruby is running using a tool called ârvmâ (ruby version manager).
But when I try to use rvm, I get this:
/var/folders/tl/hrcdxt0s2ts9nb99kjmz11zc0000gn/T/Keyboard-Maestro-Script-922F95AB-2406-4940-B506-AC5834D87EC8: line 1: rvm: command not found
So now I have to ask - what shell is ruby using and how do I make it use the same shell as if I opened Terminal?
I realize I could switch to Terminal using KM and input the script command manually - however, I want to keep this in the background so thatâs not an option.