Earlier this week I had some serious problems when Sencha CMD told me all the time that it couldn’t detect the Ruby on my system. And that while I was 100% sure that it was there.
Tell Sencha where you have hidden the ruby
It is possible to override the automatic search for Ruby by Sencha CMD or Architect by adding it to Sencha.cfg. Sencha support gave me the following instructions on how to do this. Handy, for they nowhere documented in the Sencha online documentation.
(information based on Windows 8.1 installed PC)
By placing configuration options on C:UsersMebinSenchaCmdsencha.cfg, which takes precedence over Instance-wise configurations and applies to all installed versions.
By placing configuration options on C:UsersMe.senchacmdsencha.cfg, which takes precedence over System-wise configurations.
By placing configuration options on C:UsersMebinSenchaCmd220.127.116.11sencha.cfg.
What to tell
In any case, it is suggested to modify C:UsersMebinSenchaCmd18.104.22.168sencha.cfg since it is an already-existing file. Just add the following line at the end of the file (replace the right patch to your Ruby installation):
This will explicitly instruct cmd to find your ruby install there. Sencha Cmd 22.214.171.124 should work properly with either ruby 2 or 1.9.3, previous versions (126.96.36.199 and below will only work with ruby 1.9.3).
But that was not my problem
Just to make sure what the problem could be, why Sencha CMD or Architect can’t find your Ruby installation also check your PC protection software. I have Comodo Security Suite installed and the problem why Ruby couldn’t be found was because of the automatic sandbox feature in this software. And it sandboxed Ruby. And that was after all my problem, that cost me several hours to find out. So be careful that you don’t blame Sencha too soon for not finding your Ruby.