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

Anybody know how to fix this error while trying to install the Rails gem?

UPDATE: I tried doing gem install rails again, and after about 5min hanging on "Installing ri documentation for rails-4.1.4", it gave me "1 gem installed" and that was it, no errors. Am I good to go now, or do I still need to address the previous error?

Everything was going fine until installing the Rails gem. It worked for a while, installing things, then ended with these lines:

Installing ri documentation for actionpack-4.1.4

ERROR:    While executing gem . . . (Errno::EINVAL)

    Invalid argument - ./ActionDispatch/Routing/Mapper/Scoping/:

I have no idea what this means, except that it's related to something called actionpack. Can anybody help?

Windows 7 is my system.

2 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Only one way to be sure:

  • create a project by running this command: rails new my_project

  • if it gets created successfully, do cd my_project and rails server

  • open your browser and go to http://localhost:3000/

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

And I always tell people to use a virtual machine with Linux for Rails development (my personal preference: VMWare Player + Ubuntu). I worked on WIndows for a few months and it was a pain.

Alright, so I got a new project created, and when I started the rails server, it gave me the first few lines you see in the video, then tons of other lines, none stating specifically error. localhost:3000 does nothing, so I assume something still needs fixing.

I'm definitely going to move to my Mac, maybe even my Linux VM for this.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Yeah, so something definitely went wrong and moving to Mac or Linux should save you some of the frustration in the long run :).

James demby
James demby
10,296 Points

I am getting the same thing are the original, but while I wait for the second gem install rails I get all of these "unable to convert "......." skipping

I wish they explained using the VM before this step. It seems like that would fix a lot of the issue if you just got people out of windows.