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 trialAlphonse Cuccurullo
2,513 Points'ERROR INSTALLING RAILS: ....Help please =(
'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. .
4 Answers
Brian O'Grady
10,094 PointsThis looks like you have to check your ruby gem thread_safe-0.3.5. To do this you may want to list your gems by using the gem list command. Then checking the ruby gem by using gem check thread_safe. See if that works, if not let me know.
Brian O'Grady
10,094 Pointswhat command are you using to install the gem rails? do you have the other required gems installed with it? I know if I didnt have sqlite3 installed it may throw a fit, also make sure bundler is installed. Another question is what OS are you running this on?
Something that I did when I setup my developer environment on a windows machine is using a virturalbox vm and something called rvm. rvm allows multiple ruby environments to be setup and running as well as each environment to have their own gem installs. It makes testing and setup easy.
Alphonse Cuccurullo
2,513 PointsI used gem install rails. After setting up my library and devkit in the ruby folder. I am running rubyX64 and the dev kit 64 bit ming32. Im on windows 7 msi .Is it difficult to setup a virtual box?
Brian O'Grady
10,094 PointsSetting up a virturalbox VM isnt hard to get setup. but you will have to get a linux distro to install and know how to install it.
Another thing to check is that all of the gems are up to date. You may want to use the gem update command for that. Anything else I would try a new ruby and rails gem install.
Alphonse Cuccurullo
2,513 PointsAn i am running bundler version 1.0i don't know what i should do man =(
Alphonse Cuccurullo
2,513 PointsAlphonse Cuccurullo
2,513 PointsIt didn't it just said checking gem then left me there for awhile an processed nothing lol. Also thread_safe didnt pop up on my list either so i tried installing it an it gave me the same kinda error when i tried to install rails.