LoadError - library not found for class Digest::SHA1 — digest/sha1

前端 未结 3 1192
独厮守ぢ
独厮守ぢ 2021-02-13 02:07

When running pod install it runs into a problem when installing yoga. Seems to be a problem with my ruby environment?

$ pod install
Ana         


        
相关标签:
3条回答
  • 2021-02-13 02:54

    there is issue with ruby version. Install latest

    brew install ruby
    

    below command will overwrite the previous version

    brew link --overwrite ruby
    

    close this terminal and open new terminal.check your version

    ruby -v
    

    check issue resolve or not

    ruby -r digest/sha1 -e 'p Digest::SHA1'
    

    expected output : Digest::SHA1

    0 讨论(0)
  • 2021-02-13 03:01

    Since this worked me, I am posting it as a comment.

    After running

    rbenv uninstall 2.5.1
    

    if the below command is giving you an error (with ruby not installing)

    rbenv install 2.5.1
    

    maybe run this (for mac path)

    RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2q rbenv install 2.3.5
    
    0 讨论(0)
  • 2021-02-13 03:08

    For the me problem started after an unsolicited system update.

    Uninstalling ruby and installing it again solved the issue:

    rbenv uninstall 2.5.1
    rbenv install 2.5.1
    
    0 讨论(0)
提交回复
热议问题