yasuoza diary

web and life

Advanced ruby install via rbenv in OSX

Parallel compile

1
$ MAKE_OPTS="-j 4" rbenv install 2.1.0

Above example compiles ruby with 4 workers.

Readline support

1
2
$ brew install readline
$ RUBY_CONFIGURE_OPTS=--with-readline-dir=`brew --prefix readline` rbenv install 2.1.0

Mixed

1
$ MAKE_OPTS="-j 4" RUBY_CONFIGURE_OPTS=--with-readline-dir=`brew --prefix readline` rbenv install 2.1.0

Comments