LoginSignup
2
1

More than 5 years have passed since last update.

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

Last updated at Posted at 2018-03-22

環境

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

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