When running pod install
it runs into a problem when installing yoga
. Seems to be a problem with my ruby environment?
$ pod install
Ana
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
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
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