OpenSSL error installing ruby 2.0.0-p195 on Mac with rbenv

后端 未结 7 1265
别那么骄傲
别那么骄傲 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:05

    Upgrading to the latest version of ruby-build fixed the problem for me:

    Like the OP, I got

    BUILD FAILED
    
    Inspect or clean up the working tree at /Users/me/.rbenv/sources/2.0.0-p247
    Results logged to /var/folders/3x/y_8y8vr53ws_kxj97km79q5h0000gn/T/ruby-build.20130704172404.3106.log
    
    Last 10 log lines:
    installing default gems:      /Users/me/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
                                  bigdecimal 1.2.0
                                  io-console 0.4.2
                                  json 1.7.7
                                  minitest 4.3.2
                                  psych 2.0.0
                                  rake 0.9.6
                                  rdoc 4.0.0
                                  test-unit 2.0.0.0
    The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
    

    but installing the latest version of ruby-build, via

    # Don't forget brew doctor and brew update if required
    brew upgrade ruby-build
    

    fixed it.

    Ruby-build had some changes between when the OP asked and now, which would explain why it worked for me, but not for the OP using the latest stable version of ruby-build.

提交回复
热议问题