Help us understand the problem. What is going on with this article?

Macport と anyenv を使っているときに ruby-build を使って最新の ruby をインストールする方法

More than 3 years have passed since last update.

てきとーめも.

前略

Ruby をあんまり使わない職場で(中略) Ruby 2.2.2 と Ruby 2.3.0 での挙動の差を見ることになった. しかし Ruby 2.3.0 をまだ入れたことはなく, rbenv install -l で出てくる最新のものは 2.3.0-dev だった. 2.3.0 入れねば.

pull しても出てこない...

状況

  • 以前 Macport を使っていたが今は Homebrew.
  • anyenv 経由で rbenv を入れている.
  • よくわからんなぁと思って ~/.rbenv 以下にも rbenv を入れた.

対処

  • anyenv で入る rbenv~/.anyevn/envs/rbenv/bin/rbenv で, そこから叩かれるべき rbenv-install~/.anyevn/envs/rbenv/plugins/ruby-build 以下にいる.
  • rbenv の中を見てみると rbenv install -l/usr/local/bin/rbenv-install を叩いている. (多分 Macport で入ったやつな気がする.)
  • mv /usr/local/bin/rbenv-install{,.bak} すると rbenv install -l で叩く rbenv-install は正しくなったが, 参照する share/ruby-build が正しくないらしく, 改善せず.
  • rbenv-install を直に叩くと正しいものが出てくる.
  • ~/.anyevn/envs/rbenv/rbenv.d/plugins/ruby-build は pull したけど ~/.anyevn/envs/rbenv/plugins/ruby-build はまだ pull してなかった \(^o^)/
  • pull して終わり.
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした