开发者

Ruby Enterprise 1.8.7 and standard Ruby 1.8 have overlapping gem paths

开发者 https://www.devze.com 2022-12-17 15:49 出处:网络
I installed Ruby Enterprise 1.8.7 on a Ubuntu server that already has the standard Ruby 1.8.6 install. They both put the same local user gem dir开发者_运维技巧ectory /home/{username}/.gem/ruby/1.8 in

I installed Ruby Enterprise 1.8.7 on a Ubuntu server that already has the standard Ruby 1.8.6 install. They both put the same local user gem dir开发者_运维技巧ectory /home/{username}/.gem/ruby/1.8 in their GEM PATHS. Is this safe and proper?

If not, is there a way to alter the GEM PATH of Ruby Enterprise 1.8.7 (but not Ruby 1.8.6) through an environmental variable so it doesn't include /home/{username}/.gem/ruby/1.8 but instead something like /home/{username}/.gem/ruby/1.8.7?


it's unlikely that you'll have major problems with this as the gems are really the same for both. However, you should check out rvm as this is the type of problem it's intended to solve. As you try other ruby interpreters, you'll thank yourself.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号