Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/63.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Can';t安装";精炼CMS成员资格“;宝石_Ruby On Rails_Ruby_Gem_Refinerycms - Fatal编程技术网

Ruby on rails Can';t安装";精炼CMS成员资格“;宝石

Ruby on rails Can';t安装";精炼CMS成员资格“;宝石,ruby-on-rails,ruby,gem,refinerycms,Ruby On Rails,Ruby,Gem,Refinerycms,如果我知道gem有一个github存储库,但在终端中我无法通过“gem安装”或“bundle安装”安装gem,因为它失败并出现以下错误,我该怎么办: Could not find gem 'refinerycms-memberships (= 1.0)' in any of the gem sources listed in your Gemfile. 我在rubygems.org上也找不到它,所以有没有其他安装方法:(如果您使用的是捆绑安装,那么我假设您使用的是Gemfile。在这种情况下,

如果我知道gem有一个github存储库,但在终端中我无法通过“gem安装”或“bundle安装”安装gem,因为它失败并出现以下错误,我该怎么办:

Could not find gem 'refinerycms-memberships (= 1.0)' in any of the gem sources listed in your Gemfile.

我在rubygems.org上也找不到它,所以有没有其他安装方法:(

如果您使用的是
捆绑安装
,那么我假设您使用的是Gemfile。在这种情况下,您可以:


特别是对于这个gem,我在我的gem文件中找到了这一行:

gem'refinerycms memberships',“~>2.0.0',:git=>”https://github.com/rbriank/refinerycms_membership.git“

根据您看到本文的时间,您可能需要修改版本或可能添加

:分支=>..
选项

gem refinerycms-memberships, :git => "git://path.to/git/repo"