Is Nokogiri platform specific?

I am using windows 7. I have installed nokogiri gem and checked out the gem specification.

In the gemfile, it says nokogiri is platform specific. s.platform = "x86-mingw32"

Does it mean that nokogiri can be installed only on windows?

Or Am I just getting line in the gemspec just because I am using windows 7??

Or Nokogiri builds upon libxml2-2.8.0, libxslt-1.1.28, zlib-1.2.8, libiconv-1.14.

Can we install nokogiri on other platforms as long as libxml, libxslt, zlib, libiconv??


Nokogiri Requires C Extensions

"x86-mingw32" means that your Nokogiri C extensions were compiled with the MinGW compiler suite. It's conceivable that you could force compilation on win32 with another compiler, but other platforms (eg Linux or OS X) will certainly require GCC, LLVM, or something else.

So, compiler needs will vary by platform. Likewise, some Ruby interpreters may or may not allow you build certain C extensions, especially on alternate platforms. Your mileage can vary a lot in this regard.

链接地址: http://www.djcxy.com/p/61064.html

上一篇: 快速,非常轻量级的相机运动检测算法?

下一篇: Nokogiri平台是否具体?