LoginSignup
3
3

More than 5 years have passed since last update.

FreeBSDでnokogiriをインストールする(簡単な)方法

Posted at

依存ライブラリをpkgで入れておく

  • libiconv
  • libxml2
  • libxslt

pkgconfをpkgでインストール

これ重要

--with-xml2-dirなどライブラリのありかをオプションで指定する方法がよく紹介されてるけど、pkgconf(pkg-config)が入っていればよしなに探してくれる。

build時に--use-system-libraliesを指定

bundle config nokogiri "--use-syste-libraries"
bundle install

素のgemを使う場合は

gem install nokogiri -- --use-system-libraries

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3