Set gem paths on Win7
I'm new th RM.
How can I prevent RubyMine from using the %HOMEDRIVE% and %HOMEPATH% set in my environment? Its creating a .gem folder on a network drive that isn't always attached. I would like to specify where RubyMine should create this folder.
请先登录再写评论。
While configuring SDK RubyMine gets gem paths from "gem environment paths" command output. Setup your environment to force gem command to return correct paths and recreate SDK in RubyMine | File | Settings | Ruby SDK and Gems Manager | Add SDK
Thanks for the reply.
I realize that this my be out of scope for this forum but can you point me to how I might "force" the gem command to return the correct paths?
In the windows environment there is a gem.bat file. I've modified that to set the %HOMEDRIVE% and %HOMEPATH% to the location I want prior to executing.
If I issue a 'gem env' from the command prompt I get the proper location
However, when I start RubyMine and choose Tools | Get Gem Environment it still uses the wrong location.
Does RubyMine execute gem in some other fashion other than the gem.bat file?
Any help would be greately appreciated!
RubyMine launches "ruby.exe gem ..." instead of "gem.bat".
Are GEM_HOME and GEM_PATH env variables defined in your windows env variables settings?
They were not set but they are now. Thats what I needed to set to change the gem paths.
Thanks for your help!