OpenSSL error installing ruby 2.0.0-p195 on Mac with rbenv

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

    For those who have problems installing openssl.

    I had this error on my Mac 10.8.4

    brew install openssl
    
    created directory `/usr/local/Cellar/openssl/1.0.1e/include/openssl'
    make: *** [install_sw] Error 13
    
    READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
    
    These open issues may also help:
        https://github.com/mxcl/homebrew/pull/19429
    
    1. Create a directory if it does not exist

      sudo mkdir /usr/local/etc/openssl
      
    2. Change the rights. Replace and with your name and group (e.g. serge:admin)

      sudo chown -R <username>:<group> /usr/local/etc/openssl/
      
    3. Repeat openssl installation

      brew install openssl
      
    4. Install curl-ca-bundle

      brew install curl-ca-bundle
      
    5. install ruby

      CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p195
      

    Bingo

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