Jekyll Not Running in OsMojave


#1

I got a new MacBook pro and with OSMojave. I transferred files using Mac Migration Assistant. When I try to update the packages or run Jekyll. I get the errors below. Any ideas as to why this is happening?

Computer Environment:

  • MacOS Mojave 10.14 (18A391)
  • ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
  • Bundler version 1.16.6
  • Jekyll version 3.8.4

Steps To Reproduce

  • Jekyll Serve
  • Console Returned
  • bundle update
    *Console Returned
          31: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `<main>'
          30: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `eval'
          29: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/bin/bundle:23:in `<main>'
          28: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/bin/bundle:23:in `load'
          27: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/exe/bundle:22:in `<top (required)>'
          26: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
          25: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/exe/bundle:30:in `block in <top (required)>'
          24: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/lib/bundler/cli.rb:18:in `start'
          23: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
          22: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/lib/bundler/cli.rb:27:in `dispatch'
          21: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
          20: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
          19: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
          18: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/lib/bundler/cli.rb:266:in `update'
          17: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/lib/bundler/cli/update.rb:61:in `run'
          16: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
          15: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
          14: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.6/lib/bundler/installer.rb:4:in `<top (required)>'
          13: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
          12: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
          11: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/dependency_installer.rb:4:in `<top (required)>'
          10: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
           9: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
           8: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/package.rb:44:in `<top (required)>'
           7: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
           6: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
           5: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/security.rb:12:in `<top (required)>'
           4: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
           3: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
           2: from /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/openssl-2.1.1/lib/openssl.rb:13:in `<top (required)>'```
           1: from /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    

```/Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require’: dlopen(/Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/openssl-2.1.1/lib/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib (LoadError)
Referenced from: /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/openssl-2.1.1/lib/openssl.bundle
Reason: image not found - /Users/patriciocabrera/.rvm/gems/ruby-2.5.1/gems/openssl-2.1.1/lib/openssl.bundle````

update_rubygems
Ignoring bigdecimal-1.3.5 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.5
/Library/Ruby/Site/2.3.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem rubygems-update (>= 0.a) with executable update_rubygems (Gem::GemNotFoundException)
from /Library/Ruby/Site/2.3.0/rubygems.rb:263:in `bin_path'
from /usr/local/bin/update_rubygems:22:in `<main>'

sudo gem update --system

  Referenced from: /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle
  Reason: image not found - /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle (LoadError)
Error loading RubyGems plugin "/Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/gem-wrappers-1.3.2/lib/rubygems_plugin.rb": dlopen(/Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
  Referenced from: /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle
  Reason: image not found - /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle (LoadError)
ERROR:  Loading command: update (LoadError)
        dlopen(/Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
  Referenced from: /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle
  Reason: image not found - /Users/patriciocabrera/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass```

#2

Here is the fix:

Steps

  1. run gem pristine --all
  2. bundle

And that is it.