2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Rails インストール時に nokogiri 云々でコケる件

Last updated at Posted at 2015-04-05

環境

  • OS X Yosemite 10.10.1
  • Homebrew 0.9.5
  • gem 2.4.6

前提

  • Homebrewをインストールしている
  • Gemをインストールしている

必要なファイルをインストールする

$ brew tap homebrew/dupes
$ brew install libxml2 libxslt libiconv
$ brew link --force libxml2
$ brew link --force libxslt
$ brew link --force libiconv

一応 ターミナルを再起動してくんさい

nokogiri をインストール

gem install nokogiri -- --use-system-libraries --with-iconv-dir="$(brew --prefix libiconv)" --with-xml2-config="$(brew --prefix libxml2)/bin/xml2-config" --with-xslt-config="$(brew --prefix libxslt)/bin/xslt-config"

僕はこれで無事 rails をインストールできましたとさ!

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?