OpenSSL error installing ruby 2.0.0-p195 on Mac with rbenv

后端 未结 7 1273
别那么骄傲
别那么骄傲 2021-02-04 06:05

I\'m trying to install Ruby 2.0.0-p195 using rbenv on a Mac (Mountain Lion) and got this error.

BUILD FAILED

Inspect or clean up the working tree at /var/folde         


        
7条回答
  •  南方客
    南方客 (楼主)
    2021-02-04 07:07

    This issue came up again for me with Mac OS 10.9.5

    Mac upgraded the command-line tools and that upgraded openssl, which broken rbenv.

    I tried all of these solutions, but none of them worked. Everything was up-to-date, but I couldn't install any new gems or build rubies.

    My solution was to:

    1. Remove the ruby version (for me it was 2.1.1)
    2. Brew uninstall ruby-build and rbenv
    3. Brew Re-install rbenv and ruby-build

    Hope this helps you if you encounter it too!

提交回复
热议问题