Ruby -v dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib

前端 未结 5 1702
轻奢々
轻奢々 2021-01-01 11:31

I\'ve been trying to run a script in the terminal and every time I do I get:

$ ruby directory.rb
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
  R         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-01 12:08

    I just encountered similar issue and was able to resolve it following an answer from superuser.

    brew update && brew install gmp && rvm reinstall 2.1.4
    

    Seems this was an issue with libgmp.10.dylib.

提交回复
热议问题