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'
Related
Wanted to install a gem from custom gem repo. Here are the steps which i followed
1. Created a gem and copied it to gems folder under gems_repo.
2. Run the command gem generate_index. This command created some files. I copied the files to http://example.com Attaching a screen shot of the same.
After running the command to install the gem , it gave me following error
gem install some_gem_name --source 'http://example.com/gems_repo'
ERROR: Could not find a valid gem 'some_gem_name' (>= 0), here is why:
Unable to download data from http://example.com/gems_repo/ - server did not return a valid file (http://example.com/gems_repo/specs.4.8.gz)
I have tried gem update --system command and tried to install the gem again. It gave the same error as above. If you look at the screen shot the file for which the command is complaining is already there.
The ruby version is ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux] and gem -v = 2.6.10
Can you please help me fix this error
I am trying to run a jruby rails app locally and bundler throws me the following error
Bundler::GemRequireError: There was an error while trying to load the
gem 'manticore'.
My $bundle install was successful and $gem list confirmed that the gem exists in my local environment.
manticore (0.5.2 java)
Not sure why it is failing to load the gem!?
Ruby - "jruby-1.7.16.1"
Java - "1.8.0_40"
Reinstall the gem and see if it loads.
Remove manticore gem from your Gemfile.
Do a "gem uninstall manticore"
Add manticore to gemfile again and perform a "bundle install"
run jruby with bundle exec
On continuation of this question.After bundle install it throws the above error when running the server.link to gitrepo
gemfile
gem 'testgem' , :git => 'https://github.com/praveenitmec/testgem.git'
during bundle install
Using sqlite3 1.3.11
Using testgem 0.1.0 from https://github.com/praveenitmec/testgem.git (at master)
Using turbolinks 2.5.3
while running server
Brillios-Mac-mini:test_app_for ucs brilliomac$ rails s
Could not find testgem-0.1.0 in any of the sources
Run `bundle install` to install missing gems.
Brillios-Mac-mini:test_app_for ucs brilliomac$
Actually the problem is I pushed with gemfile(i.e-testgem-0.1.0.gem) first Thats why it throws this error.
it is not able to build the gem in local because of the gemfile already available.
hiii
i am trying to update my gem file. Current version of gem is 1.8.5
When i am trying to update it using command " gem install rubygems-update -v 1.8.5 " it is giving following error
**
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: Name or service not known
(http://rubygems.org/gems/rubygems-update-1.8.5.gem)
**
I am working on ubuntu 10.04
also i tried to update using command " gem update --system "
it is giving the error as below
Updating rubygems-update
**
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find a valid gem 'rubygems-update' (1.8.6) locally or in
a repository
**
i also tried the solution given on the link http://lightyearsoftware.com/2009/07/updating-rubygems-to-recent-1-3-x/
please help me to resolve the problem..
If you are under Windows 7, run the command prompt as Administrator.
Read this thread. The error reported is the same of yours.
Try to apply the Google DNS configuration to your connection.
Otherwise you can try to install locally the gem, downloading it on rubygems.org. After this, in the directory you downloaded the gem, try to install it locally with the command: gem install gem_name --local
I also had this error. I resolved it with
gem uninstall rubygems-update
(you may need to be sudo) and then reinstalled with
gem install rubygems-update
now it's working fine, hope this is helpful
Try this:
Manually uninstall the gem you want to remove: gem uninstall [gemToUinistall]
Download the gem manually from http://rubygems.org/
try to install the gem from local : gem install [gemToInstall]
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