Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Error while installing rails

Getting this error when try to install rails .Any ideas what could be wrong?

ERROR: While executing gem ... (Errno::EINVAL) Invalid argument - ./ActionDispatch/Routing/Mapper/Scoping/:

C:\Users\Djeet>gem install rails Fetching: i18n-0.6.9.gem (100%) Successfully installed i18n-0.6.9 Fetching: thread_safe-0.3.3.gem (100%) Successfully installed thread_safe-0.3.3 Fetching: tzinfo-1.1.0.gem (100%) Successfully installed tzinfo-1.1.0 Fetching: minitest-5.3.3.gem (100%) Successfully installed minitest-5.3.3 Fetching: activesupport-4.1.0.gem (100%) Successfully installed activesupport-4.1.0 Fetching: rack-1.5.2.gem (100%) Successfully installed rack-1.5.2 Fetching: rack-test-0.6.2.gem (100%) Successfully installed rack-test-0.6.2 Fetching: builder-3.2.2.gem (100%) Successfully installed builder-3.2.2 Fetching: erubis-2.7.0.gem (100%) Successfully installed erubis-2.7.0 Fetching: actionview-4.1.0.gem (100%) Successfully installed actionview-4.1.0 Fetching: actionpack-4.1.0.gem (100%) Successfully installed actionpack-4.1.0 Fetching: activemodel-4.1.0.gem (100%) Successfully installed activemodel-4.1.0 Fetching: arel-5.0.1.20140414130214.gem (100%) Successfully installed arel-5.0.1.20140414130214 Fetching: activerecord-4.1.0.gem (100%) Successfully installed activerecord-4.1.0 Fetching: mime-types-1.25.1.gem (100%) Successfully installed mime-types-1.25.1 Fetching: polyglot-0.3.4.gem (100%) Successfully installed polyglot-0.3.4 Fetching: treetop-1.4.15.gem (100%) Successfully installed treetop-1.4.15 Fetching: mail-2.5.4.gem (100%) Successfully installed mail-2.5.4 Fetching: actionmailer-4.1.0.gem (100%) Successfully installed actionmailer-4.1.0 Fetching: thor-0.19.1.gem (100%) Successfully installed thor-0.19.1 Fetching: railties-4.1.0.gem (100%) Successfully installed railties-4.1.0 Fetching: hike-1.2.3.gem (100%) Successfully installed hike-1.2.3 Fetching: multi_json-1.9.2.gem (100%) Successfully installed multi_json-1.9.2 Fetching: tilt-1.4.1.gem (100%) Successfully installed tilt-1.4.1 Fetching: sprockets-2.12.0.gem (100%) Successfully installed sprockets-2.12.0 Fetching: sprockets-rails-2.1.3.gem (100%) Successfully installed sprockets-rails-2.1.3 Fetching: rails-4.1.0.gem (100%) Successfully installed rails-4.1.0 Parsing documentation for i18n-0.6.9 Installing ri documentation for i18n-0.6.9 Parsing documentation for thread_safe-0.3.3 Installing ri documentation for thread_safe-0.3.3 Parsing documentation for tzinfo-1.1.0 Installing ri documentation for tzinfo-1.1.0 Parsing documentation for minitest-5.3.3 Installing ri documentation for minitest-5.3.3 Parsing documentation for activesupport-4.1.0 unable to convert "\x80" from ASCII-8BIT to UTF-8 for lib/active_su unicode_tables.dat, skipping Installing ri documentation for activesupport-4.1.0 Parsing documentation for rack-1.5.2 Installing ri documentation for rack-1.5.2 Parsing documentation for rack-test-0.6.2 Installing ri documentation for rack-test-0.6.2 Parsing documentation for builder-3.2.2 Installing ri documentation for builder-3.2.2 Parsing documentation for erubis-2.7.0 Installing ri documentation for erubis-2.7.0 Parsing documentation for actionview-4.1.0 Installing ri documentation for actionview-4.1.0 Parsing documentation for actionpack-4.1.0 Installing ri documentation for actionpack-4.1.0 ERROR: While executing gem ... (Errno::EINVAL) Invalid argument - ./ActionDispatch/Routing/Mapper/Scoping/:

3 Answers

Update is retried the command and it said "1 gem installed" while video show"27 gems installed" .I understand that number of gems can change. Is there anything i a missing.Thanks in advance.

C:\Users\Djeet>gem install rails Successfully installed rails-4.1.0 Parsing documentation for rails-4.1.0 unable to convert "\xFF" from ASCII-8BIT to UTF-8 for guides/assets/images/aksha ysurve.jpg, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/belon gs_to.png, skipping unable to convert "\xF4" from ASCII-8BIT to UTF-8 for guides/assets/images/book_ icon.gif, skipping unable to convert "\x91" from ASCII-8BIT to UTF-8 for guides/assets/images/bulle t.gif, skipping unable to convert "\xF5" from ASCII-8BIT to UTF-8 for guides/assets/images/chapt ers_icon.gif, skipping unable to convert "\xF5" from ASCII-8BIT to UTF-8 for guides/assets/images/check bullet.gif, skipping unable to convert "\xF4" from ASCII-8BIT to UTF-8 for guides/assets/images/credi ts_pic_blank.gif, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/csrf. png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/edge badge.png, skipping unable to convert "\x9E" from ASCII-8BIT to UTF-8 for guides/assets/images/favic on.ico, skipping unable to convert "\xF0" from ASCII-8BIT to UTF-8 for guides/assets/images/featu re_tile.gif, skipping unable to convert "\xF0" from ASCII-8BIT to UTF-8 for guides/assets/images/foote r_tile.gif, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/fxn.p ng, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/article_with_comments.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/challenge.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/confirm_dialog.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/forbidden_attributes_for_new_article.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/form_with_errors.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/index_action_with_edit_link.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/new_article.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/rails_welcome.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/routing_error_no_controller.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/routing_error_no_route_matches.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/show_action_for_articles.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/template_is_missing_articles_new.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/unknown_action_create_for_articles.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/getti ng_started/unknown_action_new_for_articles.png, skipping unable to convert "\xF0" from ASCII-8BIT to UTF-8 for guides/assets/images/grey_ bullet.gif, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/habtm .png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/has_m any.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/has_m any_through.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/has_o ne.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/has_o ne_through.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/heade r_backdrop.png, skipping unable to convert "\xF0" from ASCII-8BIT to UTF-8 for guides/assets/images/heade r_tile.gif, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/i18n/ demo_html_safe.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/i18n/ demo_localized_pirate.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/i18n/ demo_translated_en.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/i18n/ demo_translated_pirate.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/i18n/ demo_translation_missing.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/i18n/ demo_untranslated.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/1.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/10.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/11.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/12.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/13.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/14.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/15.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/2.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/3.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/4.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/5.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/6.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/7.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/8.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /callouts/9.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /caution.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /example.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /home.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /important.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /next.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /note.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /prev.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /tip.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /up.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons /warning.png, skipping unable to convert "\xF5" from ASCII-8BIT to UTF-8 for guides/assets/images/nav_a rrow.gif, skipping unable to convert "\xFF" from ASCII-8BIT to UTF-8 for guides/assets/images/oscar delben.jpg, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/polym orphic.png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/radar .png, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/rails 4_features.png, skipping unable to convert "\xFF" from ASCII-8BIT to UTF-8 for guides/assets/images/rails _guides_kindle_cover.jpg, skipping unable to convert "\xEC" from ASCII-8BIT to UTF-8 for guides/assets/images/rails _guides_logo.gif, skipping unable to convert "\x8C" from ASCII-8BIT to UTF-8 for guides/assets/images/rails _logo_remix.gif, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/sessi on_fixation.png, skipping unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_g rey.gif, skipping unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_i nfo.gif, skipping unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_n ote.gif, skipping unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_r ed.gif, skipping unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_y ellow.gif, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_y ellow.png, skipping unable to convert "\xFF" from ASCII-8BIT to UTF-8 for guides/assets/images/vijay dev.jpg, skipping Installing ri documentation for rails-4.1.0 1 gem installed

Further running into errors

C:\Users\Djeet\Documents\testapp>bundle exec rails server DL is deprecated, please use Fiddle => Booting WEBrick => Rails 4.1.0 application starting in development on http://0.0.0.0:3000 => Run rails server -h for more startup options => Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding opti on) => Ctrl-C to shutdown server Exiting C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:199:in rescue in cre ate_default_data_source': No timezone data source could be found. To resolve this, either install TZ Info::Data (e.g. by runninggem install tzinfo-data) or specify a zoneinfo directory usingTZInfo ::DataSource.set(:zoneinfo, zoneinfo_path). (TZInfo::DataSourceNotFound) from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:196:in create_default_data_source' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:62:in b lock in get' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:61:ins ynchronize' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:61:in g et' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/timezone.rb:601:indat a_source' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/timezone.rb:114:in get ' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/timezone_proxy.rb:84:in real_timezone' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/timezone_proxy.rb:52:in period_for_utc' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/timezone.rb:524:incur rent_period' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/core_ext /object/try.rb:45:in public_send' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/core_ext /object/try.rb:45:intry' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/values/t ime_zone.rb:223:in utc_offset' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/values/t ime_zone.rb:396:inblock in []' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/values/t ime_zone.rb:396:in tap' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/values/t ime_zone.rb:396:in[]' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/core_ext /time/zones.rb:60:in find_zone!' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/railtie. rb:20:inblock in <class:Railtie>' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/initializable.rb:30:in instance_exec' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/initializable.rb:30:in run' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/initializable.rb:55:in block in run_initializers' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:150:inblock in tsort_each' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:183:in block (2 levels) in each_strongly_connec ted_component' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:219:ineach_strongly_connected_component_from' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:182:in block in each_strongly_connected_compone nt' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:180:ineach' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:180:in each_strongly_connected_component' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:148:intsort_each' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/initializable.rb:54:in run_initializers' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/application.rb:288:in initialize!' from C:/Users/Djeet/Documents/testapp/config/environment.rb:5:in <top (required)>' from C:/Users/Djeet/Documents/testapp/config.ru:3:inrequire' from C:/Users/Djeet/Documents/testapp/config.ru:3:in block in <main>' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:ininstance_ eval' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in initializ e' from C:/Users/Djeet/Documents/testapp/config.ru:innew' from C:/Users/Djeet/Documents/testapp/config.ru:in <main>' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:ineval' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in new_from_ string' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:inparse_fil e' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in build_app _and_options_from_config' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:inapp' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/server.rb:50: in app' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:inwrapped_a pp' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/server.rb:130 :in log_to_stdout' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/server.rb:67: instart' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/commands_task s.rb:81:in block in server' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/commands_task s.rb:76:intap' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/commands_task s.rb:76:in server' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/commands_task s.rb:40:inrun_command!' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands.rb:17:in <to p (required)>' from bin/rails:4:inrequire' from bin/rails:4:in `<main>'

anguswhiston
anguswhiston
17,225 Points

The reason for the 1 gem installed versus 27 is because the first time you ran it, it seems you installed all of the gems except 1. Only the final gem failed and gave the error Invalid argument - ./ActionDispatch/Routing/Mapper/Scoping/

As for the second and third things you posted, I'm not sure what's going on. Obviously it says there's an issue converting, the error message reads "unable to convert "\x89" from ASCII-8BIT to UTF-8". Again I have no idea what this relates to or why it's happening. Might be worth a google search though.

Can you not continue the lessons, from that first post it seems you have all the gems?