我正在尝试运行一个中间人项目,有人可以帮我解决这个错误吗?
$ bundle install
/Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/digest.rb:16:in `const_missing': library not found for class Digest::MD5 -- digest/md5 (LoadError)
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/source/rubygems/remote.rb:26:in `cache_slug'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/fetcher/compact_index.rb:107:in `cache_path'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/fetcher/compact_index.rb:83:in `compact_index_client'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/cli.rb:643:in `warn_on_outdated_bundler'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/cli.rb:24:in `block in dispatch'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor.rb:384:in `dispatch'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/cli.rb:22:in `dispatch'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/cli.rb:13:in `start'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/exe/bundle:30:in `block in <top (required)>'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/exe/bundle:22:in `<top (required)>'
from /Users/tarik/.rbenv/versions/2.4.0/bin/bundle:22:in `load'
from /Users/tarik/.rbenv/versions/2.4.0/bin/bundle:22:in `<main>'
尝试服务中间人时出现类似错误
$ middleman serve
/Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin17/digest/sha1.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)
Referenced from: /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin17/digest/sha1.bundle
Reason: image not found - /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin17/digest/sha1.bundle
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/source/git.rb:4:in `<top (required)>'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/lockfile_parser.rb:122:in `<class:LockfileParser>'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/lockfile_parser.rb:14:in `<module:Bundler>'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/lockfile_parser.rb:13:in `<top (required)>'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/definition.rb:2:in `<top (required)>'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler.rb:129:in `definition'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler.rb:95:in `setup'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/setup.rb:9:in `<top (required)>'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/middleman-core-3.3.8/lib/middleman-core/load_paths.rb:29:in `setup_load_paths'
from /Users/tarik/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/middleman-core-3.3.8/bin/middleman:10:in `<top (required)>'
from /Users/tarik/.rbenv/versions/2.4.0/bin/middleman:22:in `load'
from /Users/tarik/.rbenv/versions/2.4.0/bin/middleman:22:in `<main>'
请让我知道是否需要其他信息。
2.4.0
安装可能存在问题。建议重新安装它,看看是否可以解决问题。