cannot load such file — openssl (LoadError)

后端 未结 6 580
旧巷少年郎
旧巷少年郎 2021-01-31 02:57

In OS X in rvm how do I check if openssl is configured properly? I get the cannot load such file -- openssl (LoadError) And I have tried everything in Rails 3 - no

6条回答
  •  生来不讨喜
    2021-01-31 03:18

    Many years later, the solution is changed because of brew upgrading, this works now:

    # pull full brew git repo
    git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow
    
    # generate new brew tap repo
    brew tap-new $USER/old-openssl
    
    # extract openssl 1.0.2t forumlar to $USER/old-openssl
    brew extract --version=1.0.2t openssl $USER/old-openssl
    
    # install old openssl from $USER/old-openssl repo
    brew install openssl@1.0.2t
    
    # reinstall ruby
    rvm reinstall 2.3.4 --with-openssl-dir=`brew --prefix openssl@1.0.2t`
    

提交回复
热议问题