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
Why Is "❨╯°□°❩╯︵┻━┻" with Such an Encoding Used for a Method Name
After Installing a Gem Within a Script, How to Load the Gem
Should I Deploy My Ruby on Rails Application on Heroku
How to Select the Longest String from a Ruby Array
How to Sort a Ruby Hash Alphabetically by Keys
What Is Purpose of Around_Create Callback in Rails Model
How to Make a Non-Blocking Request for an Exclusive Lock Using File#Flock
Postgres Range Fields + Rails Forms
Does Ruby Support Unicode and How Does It Work
Ruby: How to Calculate a Path Relative to Another One
Does Begin . . . End While Denote a 'Block'
Best Way to Work with Large Amounts of CSV Data Quickly
Run a Cli Thor App Without Arguments or Task Name
How to Access the Base Namespace in Ruby
Building Hash by Grouping Array of Objects Based on a Property of the Items
Ruby Gem Listed, But Won't Load (Gem in User Dir, Not Ruby Dir)