问题描述
我与RVM一起工作,可以获得gemset和东西,但是没有办法通过PIK获得它?任何想法?我试图寻找一个解决方案,但找不到一个。希望有人在这个问题上有任何线索?
谢谢!
参考下面的链接,我们可以在windows上使用pik而不是rvm作为解决方法:
https://github.com / vertiginous / pik / issues / 16#issuecomment-3515658
如果有人有兴趣,只是尝试了一个简单的解决方法。到目前为止,这么好...
cd%HOMEPATH%\.pik\rubies
xcopy / s Ruby-193-p0 Ruby-193-p0 @< gemset-name>
现在编辑%HOMEPATH%.pik\config.yml,克隆您复制的条目并添加@在适当的地方:
193:ruby 1.9.3p0(2011-10-30)[i386-mingw32] :
:path:!ruby / object:路径名
路径:C:/Users/Nathan/.pik/rubies/Ruby-193-p0/bin
193 @< gemset -name>:ruby 1.9.3p0(2011-10-30)[i386-mingw32]:
:path:!ruby / object:路径名
路径:C:/Users/Nathan/.pik / rubies / Ruby-193-p0 @< gemset-name> / bin
然后在命令... ...
pre $ p $ $ $ $ $ $ $ $ * * 193:ruby 1.9.3p0(2011-10- 30)[i386-mingw32]
193 @< gemset-name> ;: ruby 1.9.3p0(2011-10-30)[i386-mingw32]
pik switch 193 @<宝石-名称>
pik list
193:ruby 1.9.3p0(2011-10-30)[i386-mingw32]
* 193 @< gemset-name> ;: ruby 1.9.3p0 (2011-10-30)[i386-mingw32]
就是这样!当然,YMMV。回复,如果你改进这个黑客!
这可能对你有用。
I've worked with RVM where I can get gemset's and stuff, but there's no way of getting it with PIK? any idea? I tried looking for a solution but couldn't find one. Hopefully someone has any clue on this issue?
Thanks!
As refer to below link we can use pik on windows instead of rvm as a workaround:
https://github.com/vertiginous/pik/issues/16#issuecomment-3515658
In case anyone is interested, I've just tried a simplistic work-around. So far, so good...
cd %HOMEPATH%\.pik\rubies
xcopy /s Ruby-193-p0 Ruby-193-p0@<gemset-name>
Now edit %HOMEPATH%.pik\config.yml, cloning the entry you copied from and adding the "@" where appropriate:
"193: ruby 1.9.3p0 (2011-10-30) [i386-mingw32]":
:path: !ruby/object:Pathname
path: C:/Users/Nathan/.pik/rubies/Ruby-193-p0/bin
"193@<gemset-name>: ruby 1.9.3p0 (2011-10-30) [i386-mingw32]":
:path: !ruby/object:Pathname
path: C:/Users/Nathan/.pik/rubies/Ruby-193-p0@<gemset-name>/bin
Then at the command line...
pik list
* 193: ruby 1.9.3p0 (2011-10-30) [i386-mingw32]
193@<gemset-name>: ruby 1.9.3p0 (2011-10-30) [i386-mingw32]
pik switch 193@<gemset-name>
pik list
193: ruby 1.9.3p0 (2011-10-30) [i386-mingw32]
* 193@<gemset-name>: ruby 1.9.3p0 (2011-10-30) [i386-mingw32]
That's it! Of course, YMMV. Post back if you improve this on this hack!
This may useful for you.
这篇关于ruby on rails PIK gemset like RVM gemset?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!