Can't Add Sources with Gem

Is there a fix for the Could not find *gem* in any of the sources error that doesn't involve deleting Gemfile.lock?

According to rubygems.org, jquery-rails 2.0.0 has been yanked. That explains the error you had with jquery-rails.

Running $ bundle update jquery-rails will rebuild your gem snapshot. That way you don't have to delete Gemfile.lock

Can't install gemcutter as a Ruby Gem source

It looks like a temporary Gemcutter failure. It works fine to me.

Make sure you are running the latest RubyGems version and install the latest gemcutter gem.

$ gem install gemcutter --source http://gemcutter.org

With the gemcutter GEM you type gem tumble to add Gemcutter as source.

$ gem tumble

EDIT. I just noticed you are using a really outdated RubyGems version.
Update RubyGems first.

$ gem update --system

If it tells you there's nothing to update, you have a buggy version (RubyGems 1.2 selfupdate was buggy). Upgrade with the following command.

$ gem install rubygems-update 
$ update_rubygems

Then add the source.

Gem development can't add new file

Typically you'd add all the class/module files to the load path in the spec_helper.rb file:

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "your_gem"

Why can't I install any gems on my Mac?

I had the same problem and this solution from above user worked for me.

rvm osx-ssl-certs update all

Bundler can't find a gem even though gem install works

I had a look at the Gemfile of some github projects using the same gem.

Try to add the engine and engine_version after the ruby version as follows:

# Gemfile

ruby '2.3.1', engine: 'jruby', engine_version: '9.1.8.0'
source 'https://rubygems.org'

gem 'jrubyfx', '~> 1.2'

According to bundler documentation:

Both :engine and :engine_version are optional. When these options are
omitted, this means the app is compatible with a particular Ruby ABI
but the engine is irrelevant. When :engine is used, :engine_version
must also be specified. Using the platform command with the --ruby
flag, you can see what ruby directive is specified in the Gemfile.



Related Topics



Leave a reply



Submit