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 Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

Error

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

Benjamin Huang
Benjamin Huang
1,712 Points

Sorry for the hijack but I see that OP never replied so...

I just got this error while install rails as well. It appears right after "Installing ri documentation for actionpack-4.0.4"

7 Answers

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey parampam paramich where are you getting this error? Can you provide any more information?

Shiraj Ganguly
Shiraj Ganguly
12,608 Points

Im getting this error too. It happens after I do gem install rails

As Benjamin above says, it happens after "Installing ri documentation for actionpack-4.0.4"

Im on windows 7 with 32 bit ruby and devkit installed.

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Shiraj Ganguly can you type gem env and paste the output here in a response?

Shiraj Ganguly
Shiraj Ganguly
12,608 Points

I think everything is working fine now somehow, I didn't really change anything, just uninstalled and reinstalled ruby and rails. Here's the output though, if that helps anyone.

RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.14
  - RUBY VERSION: 2.0.0 (2014-02-24 patchlevel 451) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/Ruby200/lib/ruby/gems/2.0.0
  - RUBY EXECUTABLE: C:/Ruby200/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby200/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - C:/Ruby200/lib/ruby/gems/2.0.0
     - C:/Users/shiraj/.gem/ruby/2.0.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--no-rdoc --no-ri"
     - "update" => "--no-rdoc --no-ri"
  - REMOTE SOURCES:
     - https://rubygems.org/
Benjamin Huang
Benjamin Huang
1,712 Points
RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.14
  - RUBY VERSION: 2.0.0 (2014-02-24 patchlevel 451) [x64-mingw32]
  - INSTALLATION DIRECTORY: C:/Ruby200-x64/lib/ruby/gems/2.0.0
  - RUBY EXECUTABLE: C:/Ruby200-x64/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby200-x64/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x64-mingw32
  - GEM PATHS:
     - C:/Ruby200-x64/lib/ruby/gems/2.0.0
     - C:/Users/Ben Huang/.gem/ruby/2.0.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
Josh Saint Jacque
Josh Saint Jacque
11,839 Points

I was having the exact same issue, installing rails on windows 7 32-bit. I ran gem install rails again and it worked fine.

I would recommend trying again and seeing if it gets through.

I am on a Windows 7 laptop, and also had to run the gem install rails twice.