title: Why do I get LoadError for io/console even after I "gem install io-console"?
body: <p>If I do this:</p>
  
  <blockquote>
    <p>rails generate controller welcome index</p>
  </blockquote>
  
  <p>I get:</p>
  
  <blockquote>
    <p>/usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in
    `require': cannot load such file -- io/console (LoadError)</p>
  </blockquote>
  
  <p>But my gem list shows console is installed: </p>
  
  <blockquote>
    <p>gem list</p>
    
    <p><strong>* LOCAL GEMS *</strong></p>
    
    <p>actionmailer (3.2.17)</p>
    
    <p>actionpack (3.2.17)</p>
    
    <p>activemodel (3.2.17)</p>
    
    <p>activerecord (3.2.17)</p>
    
    <p>activeresource (3.2.17)</p>
    
    <p>activesupport (3.2.17)</p>
    
    <p>arel (3.0.3)</p>
    
    <p>bigdecimal (1.2.5, 1.2.0)</p>
    
    <p>builder (3.0.4)</p>
    
    <p>bundler (1.6.2)</p>
    
    <p>coffee-rails (3.2.2)</p>
    
    <p>coffee-script (2.2.0)</p>
    
    <p>coffee-script-source (1.7.0)</p>
    
    <p>erubis (2.7.0)</p>
    
    <p>execjs (2.0.2)</p>
    
    <p>hike (1.2.3)</p>
    
    <p>i18n (0.6.9)</p>
    
    <p>io-console (0.4.2)</p>
    
    <p>journey (1.0.4)</p>
    
    <p>jquery-rails (3.1.0)</p>
    
    <p>json (1.8.1, 1.7.7)</p>
    
    <p>mail (2.5.4)</p>
    
    <p>mime-types (1.25.1)</p>
    
    <p>multi_json (1.9.2)</p>
    
    <p>polyglot (0.3.4)</p>
    
    <p>psych (2.0.5, 2.0.0)</p>
    
    <p>rack (1.4.5)</p>
    
    <p>rack-cache (1.2)</p>
    
    <p>rack-ssl (1.3.4)</p>
    
    <p>rack-test (0.6.2)</p>
    
    <p>rails (3.2.17)</p>
    
    <p>railties (3.2.17)</p>
    
    <p>rake (10.3.0)</p>
    
    <p>rdoc (4.1.1, 4.0.1, 3.12.2)</p>
    
    <p>sass (3.3.5)</p>
    
    <p>sass-rails (3.2.6)</p>
    
    <p>sprockets (2.2.2)</p>
    
    <p>sqlite3 (1.3.9)</p>
    
    <p>thor (0.19.1)</p>
    
    <p>tilt (1.4.1)</p>
    
    <p>treetop (1.4.15)</p>
    
    <p>tzinfo (0.3.39)</p>
    
    <p>uglifier (2.5.0)</p>
    
    <p>Running as root.</p>
  </blockquote>
  
  <p>If I do this:</p>
  
  <blockquote>
    <p>gem env</p>
  </blockquote>
  
  <p>I get: </p>
  
  <blockquote>
    <p>RubyGems Environment:</p>
    
    <p>RUBYGEMS VERSION: 2.0.14</p>
    
    <p>RUBY VERSION: 2.0.0 (2014-02-24 patchlevel 451) [x86_64-linux]</p>
    
    <p>INSTALLATION DIRECTORY: /usr/local/share/ruby/gems/2.0</p>
    
    <p>RUBY EXECUTABLE: /usr/bin/ruby2.0</p>
    
    <p>EXECUTABLE DIRECTORY: /usr/local/bin</p>
    
    <p>RUBYGEMS PLATFORMS:</p>
    
    <p>ruby</p>
    
    <p>x86_64-linux</p>
    
    <p>GEM PATHS:</p>
    
    <p>/usr/local/share/ruby/gems/2.0</p>
    
    <p>/root/.gem/ruby/2.0</p>
    
    <p>/usr/share/ruby/gems/2.0</p>
    
    <p>GEM CONFIGURATION:</p>
    
    <p>:update_sources => true</p>
    
    <p>:verbose => true</p>
    
    <p>:backtrace => false</p>
    
    <p>:bulk_threshold => 1000</p>
    
    <p>REMOTE SOURCES:</p>
    
    <p><a href="https://rubygems.org/" rel="nofollow">https://rubygems.org/</a></p>
  </blockquote>
  
  <p>If I do this:</p>
  
  <blockquote>
    <p>ls -al /usr/local/share/ruby/gems/2.0/gems/io-console-0.4.2/</p>
  </blockquote>
  
  <p>I see the gem installed. </p>
  
  <p>Why do I get a LoadError? </p>
  
  <p>If I do this:</p>
  
  <blockquote>
    <p>emacs /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb</p>
  </blockquote>
  
  <p>and edit this method like so:</p>
  
  <pre><code>def require(file)
  
  result = false
  
  print file
  
  print " \n\n "
  
  load_dependency(file) { result = super }
  
  result
  
  end
  </code></pre>
  
  <p>and then I try this again:</p>
  
  <blockquote>
    <p>rails generate controller welcome index</p>
  </blockquote>
  
  <p>then I get this:</p>
  
  <blockquote>
    <p>active_support/descendants_tracker </p>
    
    <p>rails/engine/railties </p>
    
    <p>active_support/core_ext/module/delegation </p>
    
    <p>active_support/core_ext/object/to_param </p>
    
    <p>active_support/core_ext/regexp </p>
    
    <p>journey </p>
    
    <p>journey/router </p>
    
    <p>journey/core-ext/hash </p>
    
    <p>journey/router/utils </p>
    
    <p>uri </p>
    
    <p>journey/router/strexp </p>
    
    <p>journey/routes </p>
    
    <p>journey/formatter </p>
    
    <p>journey/parser </p>
    
    <p>racc/parser.rb </p>
    
    <p>racc/cparse </p>
    
    <p>journey/parser_extras </p>
    
    <p>journey/scanner </p>
    
    <p>strscan </p>
    
    <p>journey/nodes/node </p>
    
    <p>journey/visitors </p>
    
    <p>journey/route </p>
    
    <p>journey/path/pattern </p>
    
    <p>journey/gtg/builder </p>
    
    <p>journey/gtg/transition_table </p>
    
    <p>journey/nfa/dot </p>
    
    <p>journey/gtg/simulator </p>
    
    <p>strscan </p>
    
    <p>journey/nfa/builder </p>
    
    <p>journey/nfa/transition_table </p>
    
    <p>journey/nfa/dot </p>
    
    <p>journey/gtg/transition_table </p>
    
    <p>journey/nfa/simulator </p>
    
    <p>strscan </p>
    
    <p>forwardable </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>active_support/core_ext/object/to_query </p>
    
    <p>active_support/core_ext/object/to_param </p>
    
    <p>active_support/core_ext/hash/slice </p>
    
    <p>active_support/core_ext/module/remove_method </p>
    
    <p>action_controller/metal/exceptions </p>
    
    <p>tempfile </p>
    
    <p>stringio </p>
    
    <p>strscan </p>
    
    <p>active_support/core_ext/hash/indifferent_access </p>
    
    <p>active_support/hash_with_indifferent_access </p>
    
    <p>active_support/core_ext/hash/keys </p>
    
    <p>active_support/core_ext/string/access </p>
    
    <p>active_support/multibyte </p>
    
    <p>active_support/inflector </p>
    
    <p>action_dispatch/http/headers </p>
    
    <p>action_controller/metal/exceptions </p>
    
    <p>rack/utils </p>
    
    <p>fileutils </p>
    
    <p>set </p>
    
    <p>tempfile </p>
    
    <p>rack/multipart </p>
    
    <p>uri/common </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>active_support/core_ext/hash/keys </p>
    
    <p>active_support/core_ext/hash/indifferent_access </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>active_support/core_ext/hash/keys </p>
    
    <p>active_support/core_ext/object/duplicable </p>
    
    <p>bigdecimal </p>
    
    <p>/home/ec2-user/oscar/config/environments/development.rb </p>
    
    <p>active_support/all </p>
    
    <p>active_support </p>
    
    <p>active_support/time </p>
    
    <p>active_support </p>
    
    <p>date </p>
    
    <p>time </p>
    
    <p>active_support/core_ext/time/publicize_conversion_methods </p>
    
    <p>active_support/core_ext/time/marshal </p>
    
    <p>active_support/core_ext/time/acts_like </p>
    
    <p>active_support/core_ext/object/acts_like </p>
    
    <p>active_support/core_ext/time/calculations </p>
    
    <p>active_support/core_ext/time/conversions </p>
    
    <p>active_support/core_ext/time/zones </p>
    
    <p>active_support/core_ext/date/acts_like </p>
    
    <p>active_support/core_ext/object/acts_like </p>
    
    <p>active_support/core_ext/date/freeze </p>
    
    <p>active_support/core_ext/date/calculations </p>
    
    <p>active_support/core_ext/date/conversions </p>
    
    <p>date </p>
    
    <p>active_support/inflector/methods </p>
    
    <p>active_support/core_ext/date/zones </p>
    
    <p>active_support/core_ext/module/remove_method </p>
    
    <p>active_support/core_ext/date/zones </p>
    
    <p>active_support/core_ext/date_time/acts_like </p>
    
    <p>date </p>
    
    <p>active_support/core_ext/object/acts_like </p>
    
    <p>active_support/core_ext/date_time/calculations </p>
    
    <p>active_support/core_ext/date_time/conversions </p>
    
    <p>active_support/core_ext/date_time/zones </p>
    
    <p>active_support/core_ext/time/zones </p>
    
    <p>active_support/core_ext/integer/time </p>
    
    <p>active_support/core_ext/numeric/time </p>
    
    <p>active_support/duration </p>
    
    <p>active_support/core_ext/time/calculations </p>
    
    <p>active_support/core_ext/time/acts_like </p>
    
    <p>active_support/core_ext </p>
    
    <p>active_support/core_ext/array </p>
    
    <p>active_support/core_ext/array/wrap </p>
    
    <p>active_support/core_ext/array/access </p>
    
    <p>active_support/core_ext/array/uniq_by </p>
    
    <p>active_support/core_ext/array/conversions </p>
    
    <p>active_support/core_ext/array/extract_options </p>
    
    <p>active_support/core_ext/array/grouping </p>
    
    <p>enumerator </p>
    
    <p>active_support/core_ext/array/random_access </p>
    
    <p>active_support/core_ext/array/prepend_and_append </p>
    
    <p>active_support/core_ext/benchmark </p>
    
    <p>active_support/core_ext/big_decimal </p>
    
    <p>active_support/core_ext/big_decimal/conversions </p>
    
    <p>active_support/core_ext/class </p>
    
    <p>active_support/core_ext/enumerable </p>
    
    <p>active_support/core_ext/exception </p>
    
    <p>active_support/core_ext/file </p>
    
    <p>active_support/core_ext/file/atomic </p>
    
    <p>active_support/core_ext/file/path </p>
    
    <p>active_support/core_ext/float </p>
    
    <p>active_support/core_ext/float/rounding </p>
    
    <p>active_support/core_ext/hash </p>
    
    <p>active_support/core_ext/hash/conversions </p>
    
    <p>active_support/xml_mini </p>
    
    <p>active_support/time </p>
    
    <p>active_support/core_ext/array/wrap </p>
    
    <p>active_support/core_ext/hash/reverse_merge </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>active_support/core_ext/string/inflections </p>
    
    <p>active_support/core_ext/hash/deep_merge </p>
    
    <p>active_support/core_ext/hash/deep_dup </p>
    
    <p>active_support/core_ext/hash/diff </p>
    
    <p>active_support/core_ext/hash/except </p>
    
    <p>active_support/core_ext/hash/indifferent_access </p>
    
    <p>active_support/core_ext/hash/keys </p>
    
    <p>active_support/core_ext/hash/reverse_merge </p>
    
    <p>active_support/core_ext/hash/slice </p>
    
    <p>active_support/core_ext/integer </p>
    
    <p>active_support/core_ext/integer/multiple </p>
    
    <p>active_support/core_ext/integer/inflections </p>
    
    <p>active_support/inflector </p>
    
    <p>active_support/core_ext/integer/time </p>
    
    <p>active_support/core_ext/io </p>
    
    <p>active_support/core_ext/kernel </p>
    
    <p>active_support/core_ext/kernel/reporting </p>
    
    <p>active_support/core_ext/kernel/agnostics </p>
    
    <p>active_support/core_ext/kernel/debugger </p>
    
    <p>active_support/core_ext/kernel/singleton_class </p>
    
    <p>active_support/core_ext/load_error </p>
    
    <p>active_support/core_ext/logger </p>
    
    <p>active_support/core_ext/module </p>
    
    <p>active_support/core_ext/module/aliasing </p>
    
    <p>active_support/core_ext/module/introspection </p>
    
    <p>active_support/core_ext/module/anonymous </p>
    
    <p>active_support/core_ext/module/reachable </p>
    
    <p>active_support/core_ext/module/attribute_accessors </p>
    
    <p>active_support/core_ext/module/attr_internal </p>
    
    <p>active_support/core_ext/module/delegation </p>
    
    <p>active_support/core_ext/module/synchronization </p>
    
    <p>thread </p>
    
    <p>active_support/core_ext/module/aliasing </p>
    
    <p>active_support/core_ext/array/extract_options </p>
    
    <p>active_support/core_ext/module/deprecation </p>
    
    <p>active_support/core_ext/module/deprecation </p>
    
    <p>active_support/core_ext/module/remove_method </p>
    
    <p>active_support/core_ext/module/method_names </p>
    
    <p>active_support/core_ext/module/qualified_const </p>
    
    <p>active_support/core_ext/name_error </p>
    
    <p>active_support/core_ext/numeric </p>
    
    <p>active_support/core_ext/numeric/bytes </p>
    
    <p>active_support/core_ext/numeric/time </p>
    
    <p>active_support/core_ext/object </p>
    
    <p>active_support/core_ext/object/acts_like </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>active_support/core_ext/object/duplicable </p>
    
    <p>active_support/core_ext/object/try </p>
    
    <p>active_support/core_ext/object/inclusion </p>
    
    <p>active_support/core_ext/object/conversions </p>
    
    <p>active_support/core_ext/object/to_param </p>
    
    <p>active_support/core_ext/object/to_query </p>
    
    <p>active_support/core_ext/array/conversions </p>
    
    <p>active_support/core_ext/hash/conversions </p>
    
    <p>active_support/core_ext/object/instance_variables </p>
    
    <p>active_support/core_ext/object/to_json </p>
    
    <p>json </p>
    
    <p>active_support/core_ext/object/to_param </p>
    
    <p>active_support/core_ext/object/to_query </p>
    
    <p>active_support/core_ext/object/with_options </p>
    
    <p>active_support/option_merger </p>
    
    <p>active_support/core_ext/hash/deep_merge </p>
    
    <p>active_support/core_ext/proc </p>
    
    <p>active_support/core_ext/kernel/singleton_class </p>
    
    <p>active_support/core_ext/process </p>
    
    <p>active_support/core_ext/process/daemon </p>
    
    <p>active_support/core_ext/range </p>
    
    <p>active_support/core_ext/range/blockless_step </p>
    
    <p>active_support/core_ext/module/aliasing </p>
    
    <p>active_support/core_ext/range/conversions </p>
    
    <p>active_support/core_ext/range/include_range </p>
    
    <p>active_support/core_ext/range/overlaps </p>
    
    <p>active_support/core_ext/range/cover </p>
    
    <p>active_support/core_ext/regexp </p>
    
    <p>active_support/core_ext/rexml </p>
    
    <p>active_support/core_ext/string </p>
    
    <p>active_support/core_ext/string/conversions </p>
    
    <p>active_support/core_ext/string/filters </p>
    
    <p>active_support/core_ext/string/multibyte </p>
    
    <p>active_support/core_ext/string/multibyte </p>
    
    <p>active_support/core_ext/string/starts_ends_with </p>
    
    <p>active_support/core_ext/string/inflections </p>
    
    <p>active_support/core_ext/string/access </p>
    
    <p>active_support/core_ext/string/xchar </p>
    
    <p>fast_xs </p>
    
    <p>active_support/core_ext/string/behavior </p>
    
    <p>active_support/core_ext/string/interpolation </p>
    
    <p>active_support/core_ext/string/output_safety </p>
    
    <p>active_support/core_ext/string/exclude </p>
    
    <p>active_support/core_ext/string/encoding </p>
    
    <p>active_support/core_ext/string/strip </p>
    
    <p>active_support/core_ext/object/try </p>
    
    <p>active_support/core_ext/string/inquiry </p>
    
    <p>active_support/string_inquirer </p>
    
    <p>active_support/core_ext/uri </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>active_support/deprecation </p>
    
    <p>logger </p>
    
    <p>thread </p>
    
    <p>logger </p>
    
    <p>active_support/core_ext/logger </p>
    
    <p>active_support/core_ext/class/attribute_accessors </p>
    
    <p>active_support/deprecation </p>
    
    <p>fileutils </p>
    
    <p>benchmark </p>
    
    <p>zlib </p>
    
    <p>active_support/core_ext/array/extract_options </p>
    
    <p>active_support/core_ext/array/wrap </p>
    
    <p>active_support/core_ext/benchmark </p>
    
    <p>active_support/core_ext/exception </p>
    
    <p>active_support/core_ext/class/attribute_accessors </p>
    
    <p>active_support/core_ext/numeric/bytes </p>
    
    <p>active_support/core_ext/numeric/time </p>
    
    <p>active_support/core_ext/object/to_param </p>
    
    <p>active_support/core_ext/string/inflections </p>
    
    <p>active_support/cache/file_store </p>
    
    <p>active_support/core_ext/file/atomic </p>
    
    <p>active_support/core_ext/string/conversions </p>
    
    <p>active_support/core_ext/object/inclusion </p>
    
    <p>rack/utils </p>
    
    <p>active_support/core_ext/object/duplicable </p>
    
    <p>active_support/core_ext/string/inflections </p>
    
    <p>sass </p>
    
    <p>sass/version </p>
    
    <p>date </p>
    
    <p>sass/util </p>
    
    <p>erb </p>
    
    <p>set </p>
    
    <p>enumerator </p>
    
    <p>stringio </p>
    
    <p>rbconfig </p>
    
    <p>uri </p>
    
    <p>thread </p>
    
    <p>pathname </p>
    
    <p>sass/root </p>
    
    <p>sass/util/subset_map </p>
    
    <p>set </p>
    
    <p>sass/util/multibyte_string_scanner </p>
    
    <p>strscan </p>
    
    <p>sass/util/normalized_map </p>
    
    <p>delegate </p>
    
    <p>sass/util </p>
    
    <p>sass/util/cross_platform_random </p>
    
    <p>sass/logger </p>
    
    <p>sass/util </p>
    
    <p>sass/engine </p>
    
    <p>set </p>
    
    <p>digest/sha1 </p>
    
    <p>sass/cache_stores </p>
    
    <p>stringio </p>
    
    <p>sass/cache_stores/base </p>
    
    <p>sass/cache_stores/filesystem </p>
    
    <p>fileutils </p>
    
    <p>sass/cache_stores/memory </p>
    
    <p>sass/cache_stores/chain </p>
    
    <p>sass/source/position </p>
    
    <p>sass/source/range </p>
    
    <p>sass/source/map </p>
    
    <p>sass/tree/node </p>
    
    <p>sass/tree/root_node </p>
    
    <p>sass/tree/rule_node </p>
    
    <p>pathname </p>
    
    <p>sass/tree/comment_node </p>
    
    <p>sass/tree/node </p>
    
    <p>sass/tree/prop_node </p>
    
    <p>sass/tree/directive_node </p>
    
    <p>sass/tree/media_node </p>
    
    <p>sass/tree/supports_node </p>
    
    <p>sass/tree/css_import_node </p>
    
    <p>sass/tree/variable_node </p>
    
    <p>sass/tree/mixin_def_node </p>
    
    <p>sass/tree/mixin_node </p>
    
    <p>sass/tree/node </p>
    
    <p>sass/tree/trace_node </p>
    
    <p>sass/tree/node </p>
    
    <p>sass/tree/content_node </p>
    
    <p>sass/tree/function_node </p>
    
    <p>sass/tree/return_node </p>
    
    <p>sass/tree/extend_node </p>
    
    <p>sass/tree/node </p>
    
    <p>sass/tree/if_node </p>
    
    <p>sass/tree/node </p>
    
    <p>sass/tree/while_node </p>
    
    <p>sass/tree/node </p>
    
    <p>sass/tree/for_node </p>
    
    <p>sass/tree/node </p>
    
    <p>sass/tree/each_node </p>
    
    <p>sass/tree/node </p>
    
    <p>sass/tree/debug_node </p>
    
    <p>sass/tree/warn_node </p>
    
    <p>sass/tree/import_node </p>
    
    <p>sass/tree/charset_node </p>
    
    <p>sass/tree/at_root_node </p>
    
    <p>sass/tree/visitors/base </p>
    
    <p>sass/tree/visitors/perform </p>
    
    <p>sass/tree/visitors/cssize </p>
    
    <p>sass/tree/visitors/extend </p>
    
    <p>sass/tree/visitors/convert </p>
    
    <p>sass/tree/visitors/to_css </p>
    
    <p>sass/tree/visitors/deep_copy </p>
    
    <p>sass/tree/visitors/set_options </p>
    
    <p>sass/tree/visitors/check_nesting </p>
    
    <p>sass/selector </p>
    
    <p>sass/selector/simple </p>
    
    <p>sass/selector/abstract_sequence </p>
    
    <p>sass/selector/comma_sequence </p>
    
    <p>sass/selector/sequence </p>
    
    <p>sass/selector/simple_sequence </p>
    
    <p>sass/environment </p>
    
    <p>set </p>
    
    <p>sass/script </p>
    
    <p>sass/scss/rx </p>
    
    <p>sass/script/functions </p>
    
    <p>sass/script/value/helpers </p>
    
    <p>sass/script/parser </p>
    
    <p>sass/script/lexer </p>
    
    <p>sass/scss/rx </p>
    
    <p>sass/script/tree </p>
    
    <p>sass/script/tree/node </p>
    
    <p>sass/script/tree/variable </p>
    
    <p>sass/script/tree/funcall </p>
    
    <p>sass/script/functions </p>
    
    <p>sass/util/normalized_map </p>
    
    <p>sass/script/tree/operation </p>
    
    <p>sass/script/tree/unary_operation </p>
    
    <p>sass/script/tree/interpolation </p>
    
    <p>sass/script/tree/string_interpolation </p>
    
    <p>sass/script/tree/literal </p>
    
    <p>sass/script/tree/list_literal </p>
    
    <p>sass/script/tree/map_literal </p>
    
    <p>sass/script/value </p>
    
    <p>sass/script/value/base </p>
    
    <p>sass/script/value/string </p>
    
    <p>sass/script/value/number </p>
    
    <p>sass/script/value/color </p>
    
    <p>sass/script/value/bool </p>
    
    <p>sass/script/value/deprecated_false </p>
    
    <p>sass/script/value/null </p>
    
    <p>sass/script/value/list </p>
    
    <p>sass/script/value/arg_list </p>
    
    <p>sass/script/value/map </p>
    
    <p>sass/scss </p>
    
    <p>sass/scss/rx </p>
    
    <p>sass/scss/script_lexer </p>
    
    <p>sass/scss/script_parser </p>
    
    <p>sass/scss/parser </p>
    
    <p>set </p>
    
    <p>sass/scss/static_parser </p>
    
    <p>sass/script/css_parser </p>
    
    <p>sass/script </p>
    
    <p>sass/script/css_lexer </p>
    
    <p>sass/scss/css_parser </p>
    
    <p>sass/script/css_parser </p>
    
    <p>sass/stack </p>
    
    <p>sass/error </p>
    
    <p>sass/importers </p>
    
    <p>sass/importers/base </p>
    
    <p>sass/importers/filesystem </p>
    
    <p>set </p>
    
    <p>sass/importers/deprecated_path </p>
    
    <p>sass/shared </p>
    
    <p>sass/media </p>
    
    <p>sass/supports </p>
    
    <p>sass/railtie </p>
    
    <p>sass/features </p>
    
    <p>set </p>
    
    <p>sprockets </p>
    
    <p>sprockets/version </p>
    
    <p>sprockets/eco_template </p>
    
    <p>tilt </p>
    
    <p>tilt/string </p>
    
    <p>tilt/template </p>
    
    <p>tilt/erb </p>
    
    <p>tilt/template </p>
    
    <p>tilt/etanni </p>
    
    <p>tilt/template </p>
    
    <p>tilt/haml </p>
    
    <p>tilt/template </p>
    
    <p>tilt/css </p>
    
    <p>tilt/template </p>
    
    <p>tilt/csv </p>
    
    <p>tilt/template </p>
    
    <p>tilt/coffee </p>
    
    <p>tilt/template </p>
    
    <p>tilt/nokogiri </p>
    
    <p>tilt/template </p>
    
    <p>tilt/builder </p>
    
    <p>tilt/template </p>
    
    <p>tilt/markaby </p>
    
    <p>tilt/template </p>
    
    <p>tilt/liquid </p>
    
    <p>tilt/template </p>
    
    <p>tilt/radius </p>
    
    <p>tilt/template </p>
    
    <p>tilt/markdown </p>
    
    <p>tilt/template </p>
    
    <p>tilt/textile </p>
    
    <p>tilt/template </p>
    
    <p>tilt/rdoc </p>
    
    <p>tilt/template </p>
    
    <p>tilt/wiki </p>
    
    <p>tilt/template </p>
    
    <p>tilt/yajl </p>
    
    <p>tilt/template </p>
    
    <p>tilt/asciidoc </p>
    
    <p>tilt/template </p>
    
    <p>tilt/plain </p>
    
    <p>tilt/template </p>
    
    <p>sprockets/ejs_template </p>
    
    <p>tilt </p>
    
    <p>sprockets/jst_processor </p>
    
    <p>tilt </p>
    
    <p>sprockets/utils </p>
    
    <p>tilt </p>
    
    <p>tilt </p>
    
    <p>sprockets </p>
    
    <p>action_dispatch/middleware/body_proxy </p>
    
    <p>active_support/whiny_nil </p>
    
    <p>active_support/deprecation </p>
    
    <p>active_support/core_ext/time/zones </p>
    
    <p>tzinfo </p>
    
    <p>tzinfo/ruby_core_support </p>
    
    <p>date </p>
    
    <p>tzinfo/offset_rationals </p>
    
    <p>tzinfo/time_or_datetime </p>
    
    <p>date </p>
    
    <p>time </p>
    
    <p>tzinfo/timezone_definition </p>
    
    <p>tzinfo/timezone_offset_info </p>
    
    <p>tzinfo/timezone_transition_info </p>
    
    <p>date </p>
    
    <p>tzinfo/timezone_index_definition </p>
    
    <p>tzinfo/timezone_info </p>
    
    <p>tzinfo/data_timezone_info </p>
    
    <p>tzinfo/linked_timezone_info </p>
    
    <p>tzinfo/timezone_period </p>
    
    <p>tzinfo/timezone </p>
    
    <p>date </p>
    
    <p>tzinfo/info_timezone </p>
    
    <p>tzinfo/data_timezone </p>
    
    <p>tzinfo/linked_timezone </p>
    
    <p>tzinfo/timezone_proxy </p>
    
    <p>tzinfo/country_index_definition </p>
    
    <p>tzinfo/country_info </p>
    
    <p>tzinfo/country </p>
    
    <p>tzinfo/country_timezone </p>
    
    <p>digest/md5 </p>
    
    <p>active_support/core_ext/module/delegation </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>active_support/core_ext/class/attribute_accessors </p>
    
    <p>rack/request </p>
    
    <p>rack/utils </p>
    
    <p>time </p>
    
    <p>action_controller/metal/exceptions </p>
    
    <p>active_support/core_ext/exception </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>active_support/core_ext/hash/keys </p>
    
    <p>active_support/core_ext/module/attribute_accessors </p>
    
    <p>active_record/railties/controller_runtime </p>
    
    <p>active_support/core_ext/module/attr_internal </p>
    
    <p>active_record/log_subscriber </p>
    
    <p>active_support/core_ext/module/attribute_accessors </p>
    
    <p>active_support/core_ext/class/attribute </p>
    
    <p>sprockets </p>
    
    <p>sprockets/base </p>
    
    <p>sprockets/asset_attributes </p>
    
    <p>pathname </p>
    
    <p>sprockets/bundled_asset </p>
    
    <p>sprockets/asset </p>
    
    <p>time </p>
    
    <p>set </p>
    
    <p>sprockets/errors </p>
    
    <p>fileutils </p>
    
    <p>set </p>
    
    <p>zlib </p>
    
    <p>sprockets/caching </p>
    
    <p>sprockets/processed_asset </p>
    
    <p>sprockets/asset </p>
    
    <p>sprockets/utils </p>
    
    <p>sprockets/processing </p>
    
    <p>sprockets/engines </p>
    
    <p>sprockets/mime </p>
    
    <p>rack/mime </p>
    
    <p>sprockets/processor </p>
    
    <p>tilt </p>
    
    <p>sprockets/utils </p>
    
    <p>sprockets/server </p>
    
    <p>time </p>
    
    <p>uri </p>
    
    <p>sprockets/static_asset </p>
    
    <p>sprockets/asset </p>
    
    <p>fileutils </p>
    
    <p>zlib </p>
    
    <p>sprockets/trail </p>
    
    <p>sprockets/errors </p>
    
    <p>pathname </p>
    
    <p>pathname </p>
    
    <p>sprockets/charset_normalizer </p>
    
    <p>tilt </p>
    
    <p>sprockets/context </p>
    
    <p>base64 </p>
    
    <p>rack/utils </p>
    
    <p>sprockets/errors </p>
    
    <p>sprockets/utils </p>
    
    <p>pathname </p>
    
    <p>set </p>
    
    <p>sprockets/directive_processor </p>
    
    <p>pathname </p>
    
    <p>shellwords </p>
    
    <p>tilt </p>
    
    <p>yaml </p>
    
    <p>sprockets/index </p>
    
    <p>sprockets/base </p>
    
    <p>sprockets/safety_colons </p>
    
    <p>tilt </p>
    
    <p>hike </p>
    
    <p>logger </p>
    
    <p>pathname </p>
    
    <p>tilt </p>
    
    <p>pathname </p>
    
    <p>hike/extensions </p>
    
    <p>hike/normalized_array </p>
    
    <p>hike/index </p>
    
    <p>pathname </p>
    
    <p>hike/paths </p>
    
    <p>pathname </p>
    
    <p>hike/normalized_array </p>
    
    <p>digest/md5 </p>
    
    <p>active_support/cache/file_store </p>
    
    <p>action_controller/railtie </p>
    
    <p>active_support/inflector/methods </p>
    
    <p>active_support/dependencies </p>
    
    <p>rack/utils </p>
    
    <p>thread </p>
    
    <p>rack/body_proxy </p>
    
    <p>securerandom </p>
    
    <p>active_support/core_ext/string/access </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>active_support/core_ext/time/conversions </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>action_dispatch/http/request </p>
    
    <p>action_dispatch/middleware/exception_wrapper </p>
    
    <p>active_support/deprecation </p>
    
    <p>action_dispatch/http/request </p>
    
    <p>action_dispatch/middleware/exception_wrapper </p>
    
    <p>active_support/core_ext/module/delegation </p>
    
    <p>active_support/core_ext/hash/keys </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>action_dispatch/middleware/session/abstract_store </p>
    
    <p>rack/utils </p>
    
    <p>rack/request </p>
    
    <p>rack/session/abstract/id </p>
    
    <p>time </p>
    
    <p>rack/request </p>
    
    <p>rack/response </p>
    
    <p>securerandom </p>
    
    <p>action_dispatch/middleware/cookies </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>rack/session/cookie </p>
    
    <p>openssl </p>
    
    <p>rack/request </p>
    
    <p>rack/response </p>
    
    <p>rack/session/abstract/id </p>
    
    <p>active_support/core_ext/hash/conversions </p>
    
    <p>action_dispatch/http/request </p>
    
    <p>active_support/core_ext/hash/indifferent_access </p>
    
    <p>set </p>
    
    <p>active_support/core_ext/class/attribute_accessors </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>action_dispatch/http/mime_types </p>
    
    <p>rack/utils </p>
    
    <p>digest/md5 </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>thread </p>
    
    <p>monitor </p>
    
    <p>set </p>
    
    <p>active_support/core_ext/module/deprecation </p>
    
    <p>time </p>
    
    <p>rack/utils </p>
    
    <p>rack/mime </p>
    
    <p>yaml </p>
    
    <p>i18n/core_ext/hash </p>
    
    <p>i18n/core_ext/kernel/surpress_warnings </p>
    
    <p>active_support/core_ext/hash/except </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>active_support/core_ext/object/inclusion </p>
    
    <p>active_support/core_ext/enumerable </p>
    
    <p>active_support/inflector </p>
    
    <p>action_dispatch/routing/redirection </p>
    
    <p>action_dispatch/http/request </p>
    
    <p>active_support/core_ext/uri </p>
    
    <p>rack/utils </p>
    
    <p>rails/generators </p>
    
    <p>rails/generators </p>
    
    <p>rails/generators </p>
    
    <p>rails/commands/generate </p>
    
    <p>rails/generators </p>
    
    <p>active_support/core_ext/object/inclusion </p>
    
    <p>rails/generators/controller/controller/controller_generator </p>
    
    <p>generators/controller/controller/controller_generator </p>
    
    <p>rails/generators/controller/controller_generator </p>
    
    <p>generators/controller/controller_generator </p>
    
    <p>rails/generators/rails/controller/controller_generator </p>
    
    <p>active_support/core_ext/module/introspection </p>
    
    <p>rails/generators/base </p>
    
    <p>rails/generators/generated_attribute </p>
    
    <p>active_support/time </p>
    
    <p>active_support/core_ext/object/inclusion </p>
    
    <p>active_support/core_ext/object/blank </p>
    
    <p>thor/shell/basic </p>
    
    <p>tempfile </p>
    
    <p>io/console</p>
  </blockquote>
  
  <p>and then I get the error: </p>
  
  <blockquote>
    <p>/usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:253:in `require': cannot load such file -- io/console (LoadError)</p>
  </blockquote>
  
  <p>I notice that most gems have a file named after the gem. For instance, polygon has "polygon.rb": </p>
  
  <blockquote>
    <p>ls -al
    /usr/local/share/ruby/gems/2.0/gems/polyglot-0.3.4/lib/polyglot.rb </p>
    
    <p>-rw-r--r-- 1 root root 2121 Apr 17 15:13 /usr/local/share/ruby/gems/2.0/gems/polyglot-0.3.4/lib/polyglot.rb</p>
  </blockquote>
  
  <p>and sass has "sass.rb": </p>
  
  <blockquote>
    <p>[root@ip-172-31-38-140 oscar]# ls -al
    /usr/local/share/ruby/gems/2.0/gems/sass-3.3.5/lib/sass.rb </p>
    
    <p>-rw-r--r-- 1 root root 4188 Apr 17 15:23 /usr/local/share/ruby/gems/2.0/gems/sass-3.3.5/lib/sass.rb</p>
  </blockquote>
  
  <p>But not io-console: </p>
  
  <blockquote>
    <p>[root@ip-172-31-38-140 oscar]# ls -al
    /usr/local/share/ruby/gems/2.0/gems/io-console-0.4.2/lib/</p>
    
    <p>drwxr-xr-x 3 root root 4096 Apr 17 15:44 .</p>
    
    <p>drwxr-xr-x 3 root root 4096 Apr 17 15:44 ..</p>
    
    <p>drwxr-xr-x 2 root root 4096 Apr 17 15:44 console</p>
    
    <p>[root@ip-172-31-38-140 oscar]# ls -al /usr/local/share/ruby/gems/2.0/gems/io-console-0.4.2/lib/console/</p>
    
    <p>drwxr-xr-x 2 root root 4096 Apr 17 15:44 .</p>
    
    <p>drwxr-xr-x 3 root root 4096 Apr 17 15:44 ..</p>
    
    <p>-rw-r--r-- 1 root root  331 Apr 17 15:44 size.rb</p>
  </blockquote>
  
  <p>I see this file:</p>
  
  <blockquote>
    <p>/usr/local/share/ruby/gems/2.0/gems/io-console-0.4.2/console.so</p>
  </blockquote>
  
  <p>so I tried: </p>
  
  <blockquote>
    <p>ln -s /usr/local/share/ruby/gems/2.0/gems/io-console-0.4.2/console.so /usr/share/ruby/gems/2.0/console</p>
  </blockquote>
  
  <p>but that did nothing. I still get the same error. </p>
  
  <p>Full stack trace:</p>
  
  <p>rails generate controller welcome index</p>
  
  <p>/usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- io/console (LoadError)</p>
  
  <pre><code>from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require'
  
  from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
  
  from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
  
  from /usr/local/share/ruby/gems/2.0/gems/thor-0.19.1/lib/thor/shell/basic.rb:2:in `&lt;top (required)&gt;'
  
  from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
  
  from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require'
  
  from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
  
  from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
  
  from /usr/local/share/ruby/gems/2.0/gems/thor-0.19.1/lib/thor/shell/color.rb:1:in `&lt;top (required)&gt;'
  
  from /usr/local/share/ruby/gems/2.0/gems/thor-0.19.1/lib/thor/shell.rb:17:in `shell'
  
  from /usr/local/share/ruby/gems/2.0/gems/thor-0.19.1/lib/thor/base.rb:439:in `start'
  
  from /usr/local/share/ruby/gems/2.0/gems/railties-3.2.17/lib/rails/generators.rb:171:in `invoke'
  
  from /usr/local/share/ruby/gems/2.0/gems/railties-3.2.17/lib/rails/commands/generate.rb:12:in `&lt;top (required)&gt;'
  
  from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
  
  from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require'
  
  from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
  
  from /usr/local/share/ruby/gems/2.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
  
  from /usr/local/share/ruby/gems/2.0/gems/railties-3.2.17/lib/rails/commands.rb:29:in `&lt;top (required)&gt;'
  
  from script/rails:6:in `require'
  
  from script/rails:6:in `&lt;main&gt;'
  </code></pre>