Is there any way to share gems between my main ruby installation and a second ruby version installed using pik?

51 views
Skip to first unread message

jack....@googlemail.com

unread,
Jun 10, 2013, 3:42:40 PM6/10/13
to discu...@googlegroups.com
Hi,

I installed ruby 1.9.2p290 on Windows 8 using the RubyInstaller for Windows.
I installed pik 0.2.8 as a ruby gem, then used pik to install ruby 1.9.3p429.
This worked as expected.

However:

pik use 192
gem list
=> lots of gems
pik use 193
gem list
=> no gems
Is there any way to configure pik, so that ruby 1.9.3 recognizes the gems installed under 1.9.2.

I tried:

pik use 192
gem env
=>  - GEM PATHS: C:/ruby192/lib/ruby/gems/1.9.1

pik config gem_home=C:/ruby192/lib/ruby/gems/1.9.1

pik use 193
pik config gem_home=C:/ruby192/lib/ruby/gems/1.9.1
After restarting my console:

pik use 193
gem list
=> lots of gems

cd /rails/project/directors
rails s
=> The command "rails" is either spelt incorrectly or could not be found (translated from German).

I also tried reading the pik documentation on GitHub, as well as the Wiki page.

Could anyone give me a pointer as to if it is even possibleto do this and if so how I could go about it?

Thanks in advance.



Reply all
Reply to author
Forward
0 new messages