Bundle - copy-paste gems from another PC

只谈情不闲聊 提交于 2020-02-24 18:06:34

问题


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:


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.



来源:https://stackoverflow.com/questions/31788416/bundle-copy-paste-gems-from-another-pc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!