简体   繁体   English

捆绑器找不到已安装的宝石

[英]Bundler cannot find installed gem

I have a Gemfile with the following contents: 我有一个包含以下内容的Gemfile:

source 'https://rubygems.org'
gem 'knife-cloudstack', :git => 'git://github.com/CloudStack-extras/knife-cloudstack.git'

On doing a bundle-install, i get the following output 在进行捆绑安装时,我得到以下输出

bundle install --binstubs
...
Using knife-cloudstack (0.0.13) from git://github.com/CloudStack-extras/knife-cloudstack.git (at master)
...

But now when i do a bundle show, bundler cannot find the knife-cloudstack gem 但是现在当我进行捆绑秀时,捆绑器找不到刀云叠宝石

bundle show knife-cloudstack
Could not find gem 'knife-cloudstack (>= 0) ruby' in the gems available on this machine

I am not sure what i am missing here. 我不确定我在这里想念的是什么。 Please assist 请协助

just tried the exact same thing, and seems to work fine for me. 只是尝试了完全相同的事情,似乎对我来说很好。 What version of ruby are you using? 您使用的是什么版本的红宝石? What's the output of "gem environment"? “宝石环境”的输出是什么? Does running "bundle show" show any gems? 运行“捆绑包显示”是否显示任何宝石? Are you running on a linux machine? 您是否在Linux机器上运行? if so, you might be able to find out where it writes the gems to using: "strace -f -eopen -o/tmp/strace.log bundle install" 如果是这样,您也许可以使用以下命令找出将gem写入的位置:“ strace -f -eopen -o / tmp / strace.log捆绑安装”

cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM