I was trying to install this gem https://github.com/frodefi/rails-messaging into a rails application.
The README gave instructions to put this in my Gemfile
gem 'messaging', git: 'git://github.com/frodefi/rails-messaging.git'
gem 'mailboxer', git: 'git://github.com/dickeytk/mailboxer.git'
However, when I tried to run bundle install, i got this error message
Git error: command `git clone 'git://github.com/dickeytk/mailboxer.git' "/Users/mm/.rvm/gems/ruby-1.9.3-rc1#rails321/cache/bundler/git/mailboxer-d05808c480dfc6c9f04b8334dfdf7879cea63172" --bare --no-hardlinks` in directory /Users/mm/Sites/shawsome has failed.
I googled the error message and saw that some people had gotten this error message when they didn't have git installed. However, I've been using git for a while without problem. Anyone have any suggestions as to what might be the problem.
I also tried changing the syntax to no avail
gem 'messaging', :git => 'git://github.com/frodefi/rails-messaging.git'
I don't see a github account at https://github.com/dickeytk so that's probably why the git command is failing. Consider just using mailboxer from rubygems:
gem 'mailboxer'
or the repo that's linked to as the homepage from rubygems.org for this gem:
gem 'mailboxer', git: 'git://github.com/ging/mailboxer.git'
Related
When I try to run bundle install using this in my Gemfile
gem 'activeadmin', github: 'gregbell/active_admin'
I get :
Fetching git://github.com/gregbell/active_admin.git
Retrying source fetch due to error (2/3): You need to install git to be able to
use gems from git repositories. For help installing git, please refer to GitHub'
s tutorial at https://help.github.com/articles/set-up-git
But I already have git installed, and also I can run git commit, git pull and others command.
I'm on windows 8, using RoR 4
There are two ways to access github, over git:// and http:// you can try over http://
I have this line in my Gemfile, you can adapt it to your needs:
gem 'activeadmin-mongoid', :git => 'https://github.com/piousbox/activeadmin-mongoid.git', :branch => 'fix_sidebar_disable'
So for you maybe
gem 'activeadmin', :git => 'https://github.com/gregbell/active_admin.git'
Also, I assume you do have git installed? Because the error says, install git ; )
sudo apt-get install git if you are on ubuntu, or
brew install git if you are on Mac OS X.
In my gemfile I have:
gem 'capistrano-cook', github: "subsis/capistrano-cook"
Here is the error log when running bundle install in the ruby/rails console: http://pastie.org/private/aftbq3rukjdthua4lfjzbw
C:\rails\app>bundle install
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/capistrano-cook-d0d4f904a443/capistr
ano-cook.gemspec:17:in ``': No such file or directory - git ls-files (Errno::ENO
In Git Bash console when running bundle install it works fine. But when requiring the gem in the capistrano deploy file it is not loaded. Seems like it is not installed after all.
The bundler gem is version 1.2.3
C:\rails\app>gem show capistrano-cook
ERROR: While executing gem ... (RuntimeError)
Unknown command show
C:\rails\app>bundle show capistrano-cook
C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/capistrano-cook-d0d4f904a443
C:\rails\app>
Try:
gem 'capistrano-cook', :git => 'git://github.com/subsis/capistrano-cook.git'
Every time I deploy to my production server I get the following error for gems that use a git path:
git://github.com/odorcicd/example.git (at rails3) is not checked out. Please run `bundle install` (Bundler::PathError)
I've found that if I run "bundle install --deployment" it solves this problem. But it installs all my gems again and I have to do it after each deployment. Has anyone found a better solution than this?
This is an example of the using a git path in my Gemfile:
gem 'efax', :git => 'https://github.com/TTDaVeTT/efax.git'
Same issue here: I've got this gem that requires a git origin.
gem "machinist_mongo", :git => "https://github.com/nmerouze/machinist_mongo.git", :require => "machinist/mongoid", :branch => "machinist2"
From what I've found; bundle installs the gem, but not in your gemset - so you have to get rails to include the gems specifically somehow... need help on that part.
hello
i want to use authlogic with rails 3.1
i have pasted following code in the gem file
"gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3' #http://techoctave.com/c7/posts/37-authlogic-and-rails-3-0-solution"
and then trying to do bundle install.
but getting the error like this
"Fetching git://github.com/odorcicd/authlogic.git
An error has occurred in git when running git clone "git://github.com/odorcicd/
authlogic.git" "c:/jruby-1.6.0.RC2/lib/ruby/gems/1.8/cache/bundler/git/authlogic
-6baa44cd7023e0828fc87e150aa82c0caeeb7c3d" --bare --no-hardlinks. Cannot comple
te bundling."
i have tried the command "gem install authlogic" and its successfully installed the gem
but then also facing the same error in bundle install
can anyone help me?
thanks.
gem 'authlogic' in your Gemfile will be enough
i want to install this https://github.com/sferik/rails_admin
so i pasting those 2 in the gemfile
gem 'devise' # Devise must be required before RailsAdmin
gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git'
however when i bundle install, the second one alone seems to give this problem:
Fetching git://github.com/sferik/rails_admin.git
sh: git: command not found
An error has occurred in git when running `git clone "git://github.com/sferik/rails_admin.git" "/Library/Ruby/Gems/1.8/cache/bundler/git/rails_admin-76c2c78f1892a43807d922e810aef4edcddc12b7" --bare --no-hardlinks`. Cannot complete bundling.
Any ideas?
It doesn't appear as if you have git installed. Please follow the GitHub guide for installing it on your operating system.