套装-从另一台PC复制粘贴宝石 [英] Bundle - copy-paste gems from another PC
问题描述
我正在尝试设置Rails应用程序。该应用程序依赖于数量巨大的宝石。这些宝石已预先安装在我从朋友那里获得的副本的 vendor / gems
文件夹中。现在,考虑到这些封闭源代码宝石的不可用,捆绑安装--path / home / umang / projectname / vendor / gems
失败,并显示消息在任何来源中都找不到宝石名称
。有什么方法可以将 vendor / gems /
文件夹中的宝石复制粘贴到我的gem安装目录中,并使捆绑软件相信它们在那里。我将目录从供应商/宝石
复制到了本地gem安装目录,但是捆绑检查
仍然表明这些宝石是
I am trying to setup a rails application. The application depends on an enormously huge number of gems. The gems were preinstalled in the vendor/gems
folder of a copy I obtained from a friend. Now, considering the unavailability of those closed source gems, bundle install --path /home/umang/projectname/vendor/gems
fails with the message Could not find gemname in any of the sources
. Is there a way I could copy-paste the gems from the vendor/gems/
folder into my gem installation directory and make bundle believe that they are there. I copied the directory from vendor/gems
to my local gem installation directory, but bundle check
still suggests that those gems are missing.
推荐答案
好,现在是时候回答我自己的问题了。
1.将gem复制并粘贴到您的gem安装目录中。
2.删除 .bundle / config
或解决冲突的设置。
Okay, it is time I answer my own question.
1. Copy-paste the gems to your gem installation directory.
2. Remove the .bundle/config
or fix the conflicting setting.
这篇关于套装-从另一台PC复制粘贴宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!