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

[Ruby] rbenv install --listで "dyld: Library not loaded: " というエラーの解決方法

More than 1 year has passed since last update.

環境

Mac OS X 10.13 (Hight Sierra)
rbenv 1.1.1-6-g2d7cefe

エラーの内容

$ rbenv install --list Available versions: dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.4.dylib
Referenced from: /usr/local/bin/awk   Reason: image not found
/Users/username/.anyenv/envs/rbenv/plugins/ruby-build/bin/ruby-build: 1165 行: 54305 終了                  sed 'h; s/[+-]/./g; s/.p\([[:digit:]]\)/.z.\1/; s/$/.z/; G; s/\n/ /'      54307                       | LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n

rbenvはawkを利用しているようで、それが依存解決できてないようだ。

解決方法

$ brew upgrade gawk

でgawkをアップデートしたところ、解決。

参考:
https://github.com/atomantic/dotfiles/issues/23

jshimazu
流しのエンジニア DMM.com → 面白法人カヤック → Pivolab(フリーランス) 守備範囲はWebならだいたいOK、フロントエンドが得意です。 PHP / Ruby / Python / Javascript / HTML / CSS / Ruby on Rails / React / Vue.js / AWS / GCP
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