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

Alphonse Cuccurullo
Alphonse Cuccurullo
2,513 Points

It won't let me install bundle. =(

I am slowly getting the hang of it. There seem's to be a problem tho. I am trying to install bundler through the command promp but for some reason it say's this. "C:/ruby22/lib/ruby/gems/2.2.0/extension/x86-mingw32/2.2.0/json-1.8.3/gem_make.out an error occurred while installing json (1.8.3), and bundler cannot continue. Make sure that 'gem install json -v 1.8.3 succeeds before bundling."

So i don't get it to be honest with you. I already installed rails an ruby. i Set up my rails folder an stuff but don't see where the error is coming from. I know i need bundler because it really get's rid of alot of the dependency problem's. Please help

5 Answers

Seth Reece
Seth Reece
32,867 Points

Hi Alphonse,

Did you try:

gem install json -v 1.8.3

in your console?

"x86-mingw32" tells me that you have the 32 bit dev kit installed. Did you install 32 bit version of Ruby, or 64 bit?

Alphonse Cuccurullo
Alphonse Cuccurullo
2,513 Points

Yes i have the 64 bit and yea i tried the gem install json -v 1.8.3. An it say's failed exit code 2 gem files will remain installed in ruby/gems/2.2.0/gems/json-1.8.3 for inspection. Results logged to c:/Ruby22/lib/ruby/gems/2.2.0/extentions/x86-mingw32/2.2.0/json-1.8.3/gem_make.out an error has occurred while installing json(1.8.3), and bundler cannot continue. Make sure that gem installjson -v'1.8.3' succeeds before bundling.

i go to the gem list command an it said that i have json version 1.8.1 n it doesnt even let me update it. So for some reason it's not letting me get the json version.

Seth Reece
Seth Reece
32,867 Points

You need to make sure you install the 64 bit devkit then. The x86-mingw32 folder in your path is 32 bit. Should be x64-mingw32.

Alphonse Cuccurullo
Alphonse Cuccurullo
2,513 Points

Really but that doesn't make any sense to me because im in my download's an it say's i downloaded Devkit-mingw64-64-4.7.2-20130224-14. there isn't an 32 bit anywhere.

Alphonse Cuccurullo
Alphonse Cuccurullo
2,513 Points

Wait question would i need rubyX64 bit as well?

Seth Reece
Seth Reece
32,867 Points

Yea, on the ruby download page you want to make sure you have 64 bit. You may want to try v. 2.1.7 if you run into problems with 2.2.3 on Windows. I know there was some issues, but those might be fixed by now. I haven't kept up on that issue because I don't use windows for rails.

Alphonse Cuccurullo
Alphonse Cuccurullo
2,513 Points

So i tried the 2.1.7 version an made it farther however now it's giving me an error for installing rail's. says this.... ' ERROR installing Rails: invalid gem:package is corrupt, exception while verifying: undefined method 'size ' for nil:Nilclass (noMethodError) in C:/Ruby21/lib/ruby/gems/2.1.0/cache/nokogiri-1.6.7.rc3-x86-mingw32.gem.

Alphonse Cuccurullo
Alphonse Cuccurullo
2,513 Points

So i tried the 2.1.7 version an made it farther however now it's giving me an error for installing rail's. says this.... ' ERROR installing Rails: invalid gem:package is corrupt, exception while verifying: undefined method 'size ' for nil:Nilclass (noMethodError) in C:/Ruby21/lib/ruby/gems/2.1.0/cache/nokogiri-1.6.7.rc3-x86-mingw32.gem.

Alphonse Cuccurullo
Alphonse Cuccurullo
2,513 Points

However for some reason i got the json 1.8.3 now. This is so weird

Seth Reece
Seth Reece
32,867 Points

You might try uninstalling 2.2.3 completely and deleting it's folder. Make sure the 2.1.7 is the 4th link from the top on the downloads page, and the last option for the devkit.

Alphonse Cuccurullo
Alphonse Cuccurullo
2,513 Points

Well i did what you told me and it still not letting rail's upload. it is slightly different tho. it say this. 'ERROR INSTALLING RAILS: invalid gem:package is corrupt,exception while verifying: undefined method size for nil:NILCLASS (NoMethodError) in C:/ruby21-x64/lib/ruby/gems/2.1.0/cache/thread_safe-0.3.5.gem. . Oh another thing i feel like i should state even tho i have ruby installed for some reason i cant save a file to .rb. Is this relevant to the problem?