套装-从另一台PC复制粘贴宝石 [英] Bundle - copy-paste gems from another PC

查看:54
本文介绍了套装-从另一台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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆