title: Rails gem path error
body: <p>I have a rails app where I was installing gems and it worked fine.
  Now, I do not knwow what I did, when I add a gem in the Gemfile and run bundle install, the app crashes with the Gem not found error (example.: "We're sorry, but something went wrong. ... Could not find gmaps4rails-2.1.2 in any of the sources (Bundler::GemNotFound)...").</p>
  
  <p>I tried the command:
  which gem gmaps4rails
  output: /usr/bin/gem</p>
  
  <p>Passenger error shows:
      System Information</p>
  
  <pre><code>Ruby interpreter command
  /home/webmaster/.rbenv/versions/2.3.3/bin/ruby
  
  User and groups
  uid=1001(webmaster) gid=33(www-data) groups=33(www-data),27(sudo),110(lxd)
  
  Environment variables
  
  APACHE_RUN_DIR = /var/run/apache2
  APACHE_PID_FILE = /var/run/apache2/apache2.pid
  PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  APACHE_LOCK_DIR = /var/lock/apache2
  LANG = C
  APACHE_RUN_USER = www-data
  APACHE_RUN_GROUP = www-data
  APACHE_LOG_DIR = /var/log/apache2
  PWD = /var/www/maus_view
  PASSENGER_USE_FEEDBACK_FD = true
  SERVER_SOFTWARE = Apache/2.4.18 (Ubuntu) Phusion_Passenger/5.1.5
  PASSENGER_DEBUG_DIR = /tmp/passenger.spawn-debug.XXXXIfqFGX
  USER = webmaster
  LOGNAME = webmaster
  SHELL = 
  HOME = /home/webmaster
  IN_PASSENGER = 1
  PYTHONUNBUFFERED = 1
  NODE_PATH = /usr/share/passenger/node
  RAILS_ENV = development
  RACK_ENV = development
  WSGI_ENV = development
  NODE_ENV = development
  PASSENGER_APP_ENV = development
  BUNDLER_ORIG_PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  GEM_PATH = /home/webmaster/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0:/home/webmaster/.gem/ruby/2.3.0
  GEM_HOME = /home/webmaster/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0
  </code></pre>
  
  <p>I've read a lot of stackoverflow's post but I'm not able to debug and find a solution to this issue.</p>
  
  <p>Can somebody help me?</p>
  
  <p>Thank you</p>
  
  <p>--- EDIT ---</p>
  
  <p>This is my <strong>Gemfile:</strong></p>
  
  <pre><code>source 'https://rubygems.org'
  
  git_source(:github) do |repo_name|
    repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
    "https://github.com/#{repo_name}.git"
  end
  
  
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
  gem 'rails', '~&gt; 5.0.2'
  # Use mysql as the database for Active Record
  gem 'mysql2', '&gt;= 0.3.18', '&lt; 0.5'
  # Use Puma as the app server
  gem 'puma', '~&gt; 3.0'
  # Use SCSS for stylesheets
  gem 'sass-rails', '~&gt; 5.0'
  # Use Uglifier as compressor for JavaScript assets
  gem 'uglifier', '&gt;= 1.3.0'
  # Use CoffeeScript for .coffee assets and views
  gem 'coffee-rails', '~&gt; 4.2'
  # See https://github.com/rails/execjs#readme for more supported runtimes
  # gem 'therubyracer', platforms: :ruby
  
  # Use jquery as the JavaScript library
  gem 'jquery-rails'
  # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
  gem 'turbolinks', '~&gt; 5'
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
  gem 'jbuilder', '~&gt; 2.5'
  # Use Redis adapter to run Action Cable in production
  # gem 'redis', '~&gt; 3.0'
  # Use ActiveModel has_secure_password
  # gem 'bcrypt', '~&gt; 3.1.7'
  
  # Use Capistrano for deployment
  # gem 'capistrano-rails', group: :development
  
  group :development, :test do
    # Call 'byebug' anywhere in the code to stop execution and get a debugger console
    gem 'byebug', platform: :mri
  end
  
  group :development do
    # Access an IRB console on exception pages or by using &lt;%= console %&gt; anywhere in the code.
    gem 'web-console', '&gt;= 3.3.0'
    gem 'listen', '~&gt; 3.0.5'
    # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
    gem 'spring'
    gem 'spring-watcher-listen', '~&gt; 2.0.0'
  end
  
  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
  
  gem 'devise'
  #gem 'gmaps4rails'
  </code></pre>