rbenv installed ruby 2.1.2 cannot load such file — zlib on MAC OSX 10.9.2

前端 未结 1 1690
忘了有多久
忘了有多久 2021-01-03 09:42

I\'m install ruby 2.1.2 via rbenv, and rbenv is installed by homebrew on my MAC OSX 10.9.2, ruby global is successful set to 2.1.2, but when i try to run gem install, get so

相关标签:
1条回答
  • 2021-01-03 10:10

    You need to install the zlib development headers.

    xcode-select --install
    

    In OS X 10.9, the command line developer tools are now installed on demand. So after running this also zlib and zlib-devel should be available.

    0 讨论(0)
提交回复
热议问题