From: Luis Lavena Date: 2010-10-15T09:30:11+09:00 Subject: Re: Gem Commands with Nokogiri On Oct 14, 9:08 pm, flebber wrote: > I am on windows XP. > > trying to install nokogiri. I have the devkit installed. > > I received the error below. So I am trying to use the commands based > on its output but they are erroring for me as well. > Nokogiri already provides binaries for RubyInstaller precisely to avoid the compilation problems. https://rubygems.org/gems/nokogiri > PS C:\devkit> gem install nokogiri --with-xml2-lib --with-xslt-lib -- > platform=ruby > ERROR:  While executing gem ... (OptionParser::InvalidOption) >     invalid option: --with-xml2-lib > PS C:\devkit> gem install nokogiri --with-xml2-include --with-xslt- > include --platform=ruby > ERROR:  While executing gem ... (OptionParser::InvalidOption) >     invalid option: --with-xml2-include > PS C:\devkit> gem install xml2 --platform=ruby If you want to supply options to the gem compilation process, you to do that after --: gem install foo -- --with-my-lib Also note that you need libxml2 headers and libraries to compile against. On a second comment, seems you're using PowerShell. Batch files that modify the PATH might not work as expected inside PowerShell. > libxml2 is missing.  please visithttp://nokogiri.org/tutorials/installing_nokogiri.html > for help with installing depend > encies. If you check the installation instructions for Windows, it has already provided a binary for it so you don't need to compile it. -- Luis Lavena