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
Related
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'
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'
In Gemfile,
gem "backup", :git => "git://github.com/tenmiles/backup.git", :ref => "develop"
n local and in staging, bundle install did finish successfully. In production, when bundle install --deployment happens, bundler throws this error
Using backup (3.0.19) from git://github.com/tenmiles/backup.git (at develop)
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:365:in `initialize': No such file or directory - /home/anand/public_html/myapp/releases/20111113170352/vendor/bundle/ruby/1.9.1/bundler/gems/gems/backup-3.0.19/bin/backup (Errno::ENOENT)
I checked in /home/anand/public_html/myapp/releases/20111113170352/vendor/bundle/ruby/1.9.1/bundler/gems/gems/ and backup-150fb5168ebe is there! Its a gem installed via git. why is bundler looking for backup-3.0.19. How can I refresh backup gem and ask bundler to re install the gem from scratch.
Please help
Try this http://raflabs.com/blogs/silence-is-foo/2010/07/19/installing-a-gem-fork-from-github-source/ U can install the gem into your gem set by the method mentioned in there
I had this issue with 1.0.10, but when I updated the servers to bundler 1.0.21 the problem went away.
i have the some problem with current spork. If you specify a version it should work
gem "backup", '1.0', :git => "git://github.com/tenmiles/backup.git"
it fixed it for me
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.
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.