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 trialRandy Carter-Jones
3,109 PointsHELP!!! I'm trying to run bundle exec rails server and I'm getting and load error message nokogiri cannot load such file
Everytime I go to run bundle exec rails server I receive this error message below. Can someone help me resolve this issue thanks
C:/ROW/Ruby22/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x86-mingw32/lib/nokogiri .rb:29:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
3 Answers
Merritt Lawrenson
13,477 PointsRuby/Rails is known for having a lot of problems with windows, especially when loading gems and libraries. I highly highly recommend skipping forward to the video about how to set up the treehouse vm with vagrant. This is how i personally code on windows - inside a linux command line. The great part of vagrant is it keeps the files you're working on indies the normal windows file tree so you can still use sublime or your choice of text editor to do the coding in windows, but let the vagrant command line virtual machine do the executing in linux. The vagrant vm is easy to set up, and eliminates all the fuss of trying to figure out why things don't work out just like in the videos.
You could also try an online ide like nitrous.io or cloud9, which brings together the text editor, file structure, and command line in one web interface you can log into from anywhere.
Ryan Drake
12,587 PointsTry removing nokogiri from your gemfile, running bundle and then adding it back in to install it again.
Randy Carter-Jones
3,109 PointsMy follow Developers I figured out the issue with Rudy installer for windows. There is version 2.2.1 devkit for some reason is not compatible with win7 and/or win 8.1. I was forced to roll back to version 1.9.3 and install that dev kit plus all the need gems to install rails properly so that "bundle exec rails server" would work. You can locate all the need gem information at www.rubygems.org.
P.S. Ryan Drake Thanks for reply to my call for help.
Anthony Lucio
20,431 PointsAnthony Lucio
20,431 PointsStart over and install Ruby 2.0. Not Ruby 2.2.