捆绑安装错误 [英] bundle install error

查看:192
本文介绍了捆绑安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装此宝石: https://github.com/jongilbraith/simple -Private-messages 与软件包安装。



我收到以下错误消息:

 
更新git: //github.com/professionalnerd/simple-private-messages.git
获取http://rubygems.org/
的源索引无法找到gem'simple-private-messages(> = 0,运行时)'在git://github.com/professionalnerd/simple-private-messages.git(在主)。
源不包含任何版本的'simple-private-messages(> = 0,运行时)'

code> Gemfile :



gemsimple-private-messages,:git => git://github.com/professionalnerd/simple-private-messages.git



有什么想法?

解决方案

根据@bjeanes的回答,理想的情况是Git仓库应该有一个 .gemspec

但是,如果存储库仅缺少 .gemspec 文件,否则它将是一个有效的Git宝石源代码,您可以在 gem 调用中指定一个版本号,让Bundler生成 .gemspec 给你:

  gem'simple-private-messages','0.0.0',::git = > 'git://github.com/jongilbraith/simple-private-messages.git'


I'm trying to install this gem: https://github.com/jongilbraith/simple-private-messages with bundle install.

And I'm getting the following error message:

Updating git://github.com/professionalnerd/simple-private-messages.git
Fetching source index for http://rubygems.org/
Could not find gem 'simple-private-messages (>= 0, runtime)' in git://github.com/professionalnerd/simple-private-messages.git (at master).
Source does not contain any versions of 'simple-private-messages (>= 0, runtime)'

entry in Gemfile:

gem "simple-private-messages",:git =>"git://github.com/professionalnerd/simple-private-messages.git"

Any ideas?

解决方案

As per @bjeanes answer, ideally the Git repository should have a .gemspec file for each gem the Git repository represents.

However, if the repository is only missing the .gemspec file and would otherwise be a valid Git gem source, you can specify a version number in your gem call to have Bundler generate a .gemspec for you:

gem 'simple-private-messages', '0.0.0', :git => 'git://github.com/jongilbraith/simple-private-messages.git'

这篇关于捆绑安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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