macにnokogiri入れるときに詰まる件
バカだからnokogiriインストールで詰まった.
n回目の事案なのにいちいちggってるのアホっぽいから書いておく.
はじめに
brew uninstall nokogiri
しておこうか.
bundle config build.nokogiri --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib/ bundle install
やら
gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib/
で,解決.
参考に/usr/localの下にlibxml2とかがあるときのやつを載せておく.linkすればわかるよな.多分.
brew install libxml2 libxslt brew link libxml2 libxslt --force bundle config build.nokogiri --use-system-libraries --with-xml2-include=/usr/local/include/libxml2 --with-xml2-lib=/usr/lib/ bundle install