Note that there are some explanatory texts on larger screens.

plurals
  1. POBundle install doesnt install gem in Gemfile
    text
    copied!<p>I am typing the following command:</p> <pre><code>rake -RAILS_ENV=production db:schema:load </code></pre> <p>In the home directory of my rails app on my production server and I get the following error message:</p> <pre><code>rake aborted! Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.) </code></pre> <p>This is strange because I know that pg is in my Gemfile:</p> <pre><code>source 'https://rubygems.org' gem 'rails', '3.2.8' # Bundle edge Rails instead: # gem 'rails', :git =&gt; 'git://github.com/rails/rails.git' group :development, :production do gem 'pg' gem 'devise' gem 'haml-rails' gem 'paperclip' gem 'will_paginate' end group :development do gem 'capistrano' end # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '~&gt; 3.2.3' gem 'coffee-rails', '~&gt; 3.2.1' # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer', :platforms =&gt; :ruby gem 'uglifier', '&gt;= 1.0.3' end gem 'jquery-rails' </code></pre> <p>And when I run <code>bundle install</code> from that directory I get the following output (pg is not on it.):</p> <pre><code>Fetching gem metadata from https://rubygems.org/....... Using rake (0.9.2.2) Using i18n (0.6.1) Using multi_json (1.3.6) Using activesupport (3.2.8) Using builder (3.0.0) Using activemodel (3.2.8) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.1) Using rack-cache (1.2) Using rack-test (0.6.1) Using hike (1.2.1) Using tilt (1.3.3) Using sprockets (2.1.3) Using actionpack (3.2.8) Using mime-types (1.19) Using polyglot (0.3.3) Using treetop (1.4.10) Using mail (2.4.4) Using actionmailer (3.2.8) Using arel (3.0.2) Using tzinfo (0.3.33) Using activerecord (3.2.8) Using activeresource (3.2.8) Using cocaine (0.2.1) Using coffee-script-source (1.3.3) Using execjs (1.4.0) Using coffee-script (2.2.0) Using rack-ssl (1.3.2) Using json (1.7.5) Using rdoc (3.12) Using thor (0.16.0) Using railties (3.2.8) Using coffee-rails (3.2.2) Using orm_adapter (0.4.0) Using warden (1.2.1) Using devise (2.1.2) Using haml (3.1.7) Using haml-rails (0.3.4) Using jquery-rails (2.1.1) Using paperclip (3.1.2) Using bundler (1.2.1) Using rails (3.2.8) Using sass (3.2.1) Using sass-rails (3.2.5) Using uglifier (1.2.7) Using will_paginate (3.0.3) Your bundle is complete! It was installed into /usr/local/lib </code></pre> <p>And my Gemfile.lock if it's relevant (pg is listed as a dependency only):</p> <pre><code>GEM remote: https://rubygems.org/ specs: actionmailer (3.2.8) actionpack (= 3.2.8) mail (~&gt; 2.4.4) actionpack (3.2.8) activemodel (= 3.2.8) activesupport (= 3.2.8) builder (~&gt; 3.0.0) erubis (~&gt; 2.7.0) journey (~&gt; 1.0.4) rack (~&gt; 1.4.0) rack-cache (~&gt; 1.2) rack-test (~&gt; 0.6.1) sprockets (~&gt; 2.1.3) activemodel (3.2.8) activesupport (= 3.2.8) builder (~&gt; 3.0.0) activerecord (3.2.8) activemodel (= 3.2.8) activesupport (= 3.2.8) arel (~&gt; 3.0.2) tzinfo (~&gt; 0.3.29) activeresource (3.2.8) activemodel (= 3.2.8) activesupport (= 3.2.8) activesupport (3.2.8) i18n (~&gt; 0.6) multi_json (~&gt; 1.0) arel (3.0.2) bcrypt-ruby (3.0.1-x86-mingw32) builder (3.0.0) capistrano (2.12.0) highline net-scp (&gt;= 1.0.0) net-sftp (&gt;= 2.0.0) net-ssh (&gt;= 2.0.14) net-ssh-gateway (&gt;= 1.1.0) cocaine (0.2.1) coffee-rails (3.2.2) coffee-script (&gt;= 2.2.0) railties (~&gt; 3.2.0) coffee-script (2.2.0) coffee-script-source execjs coffee-script-source (1.3.3) devise (2.1.2) bcrypt-ruby (~&gt; 3.0) orm_adapter (~&gt; 0.1) railties (~&gt; 3.1) warden (~&gt; 1.2.1) erubis (2.7.0) execjs (1.4.0) multi_json (~&gt; 1.0) haml (3.1.7) haml-rails (0.3.4) actionpack (~&gt; 3.0) activesupport (~&gt; 3.0) haml (~&gt; 3.0) railties (~&gt; 3.0) highline (1.6.13) hike (1.2.1) i18n (0.6.1) journey (1.0.4) jquery-rails (2.1.1) railties (&gt;= 3.1.0, &lt; 5.0) thor (~&gt; 0.14) json (1.7.5) mail (2.4.4) i18n (&gt;= 0.4.0) mime-types (~&gt; 1.16) treetop (~&gt; 1.4.8) mime-types (1.19) multi_json (1.3.6) net-scp (1.0.4) net-ssh (&gt;= 1.99.1) net-sftp (2.0.5) net-ssh (&gt;= 2.0.9) net-ssh (2.5.2) net-ssh-gateway (1.1.0) net-ssh (&gt;= 1.99.1) orm_adapter (0.4.0) paperclip (3.1.2) activemodel (&gt;= 3.0.0) activerecord (&gt;= 3.0.0) activesupport (&gt;= 3.0.0) cocaine (&gt;= 0.0.2) mime-types pg (0.14.0-x86-mingw32) polyglot (0.3.3) rack (1.4.1) rack-cache (1.2) rack (&gt;= 0.4) rack-ssl (1.3.2) rack rack-test (0.6.1) rack (&gt;= 1.0) rails (3.2.8) actionmailer (= 3.2.8) actionpack (= 3.2.8) activerecord (= 3.2.8) activeresource (= 3.2.8) activesupport (= 3.2.8) bundler (~&gt; 1.0) railties (= 3.2.8) railties (3.2.8) actionpack (= 3.2.8) activesupport (= 3.2.8) rack-ssl (~&gt; 1.3.2) rake (&gt;= 0.8.7) rdoc (~&gt; 3.4) thor (&gt;= 0.14.6, &lt; 2.0) rake (0.9.2.2) rdoc (3.12) json (~&gt; 1.4) sass (3.2.1) sass-rails (3.2.5) railties (~&gt; 3.2.0) sass (&gt;= 3.1.10) tilt (~&gt; 1.3) sprockets (2.1.3) hike (~&gt; 1.2) rack (~&gt; 1.0) tilt (~&gt; 1.1, != 1.3.0) thor (0.16.0) tilt (1.3.3) treetop (1.4.10) polyglot polyglot (&gt;= 0.3.1) tzinfo (0.3.33) uglifier (1.2.7) execjs (&gt;= 0.3.0) multi_json (~&gt; 1.3) warden (1.2.1) rack (&gt;= 1.0) will_paginate (3.0.3) PLATFORMS x86-mingw32 DEPENDENCIES capistrano coffee-rails (~&gt; 3.2.1) devise haml-rails jquery-rails paperclip pg rails (= 3.2.8) sass-rails (~&gt; 3.2.3) uglifier (&gt;= 1.0.3) will_paginate </code></pre> <p>Contents of .bundle/config:</p> <pre><code>BUNDLE_FROZEN: '1' BUNDLE_PATH: /usr/local/lib/ BUNDLE_DISABLE_SHARED_GEMS: '1' BUNDLE_WITHOUT: development:test </code></pre> <p>I am using - rails 3.2.8 - ruby 1.9.3 - rvm 1.16.5</p> <p>Can anyone offer an explanation as to why bundle install is not installing all the gems listed in my Gemfile?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload