1
0

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.

rubyのtrunkをさっくりbuildしてchrubyから使えるようにする

Last updated at Posted at 2016-07-29

推奨できる物かは知らないけど個人的に楽

Mac OS X + zsh + chruby

ruby_version=$(grep '#define RUBY_VERSION' version.h | grep -o -E '[0-9.]+')
ruby_bin=ruby-${ruby_version}dev.$(git rev-parse --short trunk)
./configure --prefix="$HOME/.rubies/$ruby_bin" --disable-install-doc --with-openssl-dir="$(brew --prefix openssl)"
make install
source /usr/local/share/chruby/chruby.sh
chruby "$ruby_bin"
1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?