cannot load such file — openssl (LoadError)

后端 未结 6 592
旧巷少年郎
旧巷少年郎 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:22

    Check what rubies are installed:

    rvm list
    

    Then make sure to use one of the installed rubies:

    rvm use 1.9.3-p327
    

    And test if openssl is available:

    ruby -ropenssl -e "puts :OK"
    

    It will print OK if openssl is enabled, otherwise you will get exception

    In case of exception =>

    UPDATE:

    new version of rvm has improved automation support:

    rvm get stable
    rvm autolibs enable
    rvm reinstall all --force
    

    OLD:

    run:

    rvm requirements run force
    rvm pkg remove
    

    Followed by:

    rvm reinstall all --force
    

    This instruction is not OSX specific, it will work on all platforms, although on OSX it will work best with HomeBrew, when it's not installed only list of required software will be shown and you need to install it manually.

提交回复
热议问题