7
7

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-build の --enable-load-relative オプション

Last updated at Posted at 2013-09-24
$ MAKE_OPTS="-j 4" RUBY_CONFIGURE_OPTS="--enable-load-relative" rbenv install 2.0.0-p195

のように --enable-load-relative を有効にして ruby をビルドすれば、~/.rbenv/versions 以下のディレクトリ名を変更できるようになる。例えば、以下のように haikanko という名前に変更して、haikanko ruby として使うとか。

$ cp -a ~/.rbenv/versions/2.0.0-p195 ~/.rbenv/versions/haikanko
$ rbenv local haikanko

ruby のバージョンをあげても同じ名前で動かせるので、アプリの起動スクリプトの修正が不要になったりする。

合わせて読みたい: ruby-build(rbenv) でビルド時に名前を指定する

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?