hack のためのネタ帳, etc,,,

公式ページ等

参考になるページ等

install

以下のようにすれば install 出来る。
gem install nokogiri
ただし Cygwin では libxml2-devel, libxslt-devel が必要だった

追記: 2014-03-18
Cygwin に install したところ、以下のような感じで documentation のコンパイルで沈黙してしまい1時間くらい放置しても進まない。
$ gem install nokogiri
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.6.1
Parsing documentation for nokogiri-1.6.1
unable to convert "\xE4" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/x86_64-pc-cygwin/ports/libxml2/2.8.0/libxml2-2.8.0/doc/examples/testWriter.c, skipping
unable to convert "\xF8" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/x86_64-pc-cygwin/ports/libxml2/2.8.0/libxml2-2.8.0/entities.c, skipping
予め libxml2-devel, libxslt-devel をいれておいても駄目。
いつの頃からか nokogiri の方で libxml2, libxslt を調達するようになっているらしく、マルチバイト対応で腐ってるみたい。
タグ

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます