Skip to content

Instantly share code, notes, and snippets.

@ruedap
Forked from mochiz/gist:4736183
Last active December 14, 2015 05:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruedap/5035744 to your computer and use it in GitHub Desktop.
Save ruedap/5035744 to your computer and use it in GitHub Desktop.
ruby2.0.0-p0のインストール

ruby2.0.0-p0のインストール

$ brew update
$ brew upgrade rbenv
$ cd ~/.rbenv/plugins/ruby-build
$ git pull
$ brew install openssl
$ brew install readline

-Wshorten-64-to-32と警告が出るので無視するようexport CFLAGS=-Wno-error=shorten-64-to-32する ※2.0.0-p0インストール時にopensslのディレクトリを指定するようRUBY_CONFIGURE_OPTS="--with-openssl-dir=brew --prefix openssl"を追加する

$ brew link readline --force
$ export CFLAGS=-Wno-error=shorten-64-to-32
$ CONFIGURE_OPTS="--with-readline-dir=/usr/local --with-openssl-dir=`brew --prefix openssl`" RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p0
$ brew unlink readline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment