[英]Bundle install for activeadmin not running
當我嘗試在我的Gemfile中運行bundle install
gem 'activeadmin', github: 'gregbell/active_admin'
我得到:
提取git://github.com/gregbell/active_admin.git由於錯誤(2/3),請重試源提取:您需要安裝git才能使用git存儲庫中的gems。 有關安裝git的幫助,請參閱GitHub的教程, 網址為https://help.github.com/articles/set-up-git
但是我已經安裝了git,也可以運行git commit,git pull和其他命令。
我在Windows 8上,使用RoR 4
有兩種訪問github的方法,通過git://和http://可以嘗試通過http://
我的Gemfile中有這一行,您可以根據需要進行調整:
gem 'activeadmin-mongoid', :git => 'https://github.com/piousbox/activeadmin-mongoid.git', :branch => 'fix_sidebar_disable'
所以對你來說
gem 'activeadmin', :git => 'https://github.com/gregbell/active_admin.git'
另外,我假設您確實安裝了git? 因為錯誤提示,所以安裝git; )
如果您在ubuntu上,則sudo apt-get install git
,或者
如果您使用的是Mac OS X,則brew install git
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.