Wednesday, July 26, 2017

Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)

I had grunt process defined to compile the sass files, it was working fine until I had to reinstall my brew and it end up breaking the sass compile compass. Below was the setting -

 compass: {
                options: {
                    cssDir: 'static/css',
                    raw: 'Sass::Script::Number.precision = 10\n::Encoding.default_external = \'utf-8\'\n',
                    sourcemap: true
                },
                styleSass: {
                    options: {
                        sassDir: '<%= appConfig.src.sass %>',
                        specify: ['<%= appConfig.src.sass %>/demo.sass', '<%= appConfig.src.sass %>/style.sass']
                    }
                },
....

On running the grunt, it failed with following error -

Running "compass:styleSass" (compass) task
Warning: Command failed: /bin/sh -c compass --version
/Users/J/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require': dlopen(/Users/J/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin14.1.0/digest/sha1.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)
  Referenced from: /Users/J/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin14.1.0/digest/sha1.bundle
  Reason: image not found - /Users/J/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin14.1.0/digest/sha1.bundle
from /Users/J/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:i

if you run into an issue, do the following to fix it -

$ brew remove openssl
$ brew install openssl
or 

$ brew reinstall openssl

It should fix it!

No comments:

Post a Comment