railsのローカル環境でmysqlを導入したいのですが以下のエラーが出てうまくいきません。
どうすればいいでしょうか?

環境

ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin17]
Rails 5.0.7.1
mysql Ver 8.0.12 for osx10.14 on x86_64 (Homebrew)

Gemfile

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.7', '>= 5.0.7.1'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
gem 'mysql2'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platform: :mri
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '~> 3.0.5'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
#gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'tzinfo-data'

行ったこと

$bundle install

Fetching gem metadata from https://rubygems.org/../Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/compact_index_client/updater.rb:111: [BUG] Segmentation fault at 0x00000000000054
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin17]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:                    
     * ~/Library/Logs/CrashReporter                                         
     * /Library/Logs/CrashReporter                                          
     * ~/Library/Logs/DiagnosticReports                                     
     * /Library/Logs/DiagnosticReports                                      
   for more details.                                                        
Don't forget to include the above Crash Report log file in bug reports.     

-- Control frame information -----------------------------------------------
c:0013 p:---- s:0053 e:000052 CFUNC  :read
c:0012 p:0028 s:0049 e:000047 BLOCK  /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/compact_index_client/updater. [FINISH]
c:0011 p:0021 s:0046 e:000045 METHOD /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/shared_helpers.rb:118
c:0010 p:0034 s:0039 E:0009d8 METHOD /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/compact_index_client/updater.
c:0009 p:0040 s:0035 e:000034 METHOD /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/compact_index_client.rb:88
c:0008 p:0010 s:0028 e:000027 BLOCK  /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/compact_index_client.rb:55 [FINISH]
c:0007 p:0011 s:0025 e:000024 LAMBDA /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/fetcher/compact_index.rb:88 [FINISH]
c:0006 p:0014 s:0021 e:000020 METHOD /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/worker.rb:64
c:0005 p:0045 s:0015 e:000013 BLOCK  /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/worker.rb:59 [FINISH]
c:0004 p:---- s:0011 e:000010 CFUNC  :loop
c:0003 p:0009 s:0008 e:000007 METHOD /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/worker.rb:56
c:0002 p:0010 s:0004 e:000003 BLOCK  /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/worker.rb:90 [FINISH]
c:0001 p:---- s:0002 e:000001 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/worker.rb:56:in `process_queue'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/worker.rb:56:in `loop'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/worker.rb:59:in `block in process_queue'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/worker.rb:64:in `apply_func'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/fetcher/compact_index.rb:88:in `block (3 levels) in compact_index_client'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/compact_index_client.rb:55:in `block in dependencies'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/compact_index_client.rb:88:in `update_info'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/compact_index_client/updater.rb:110:in `checksum_for_file'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/shared_helpers.rb:118:in `filesystem_access'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/compact_index_client/updater.rb:111:in `block in checksum_for_file'
/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.16.3/lib/bundler/compact_index_client/updater.rb:111:in `read'

-- Machine register context ------------------------------------------------
 rax: 0x0000000000000000 rbx: 0x000000000000004c rcx: 0x0000000000000007
 rdx: 0x0000000000000028 rdi: 0x0000000000000008 rsi: 0x0000000111a66198
 rbp: 0x000070000bc94850 rsp: 0x000070000bc94790  r8: 0x0000000000000000
  r9: 0xffffffff00000000 r10: 0x0000000000000000 r11: 0x0000000000000203
 r12: 0x000000010c01bdb0 r13: 0x0000000000000000 r14: 0x0000000000000008
 r15: 0x000000010be5abb0 rip: 0x000000010be52d2a rfl: 0x0000000000010202

-- C level backtrace information -------------------------------------------
0   ruby                                0x000000010bf70a59 rb_vm_bugreport + 377
1   ruby                                0x000000010be14704 rb_bug_context + 452
2   ruby                                0x000000010bee5b24 sigsegv + 68
3   libsystem_platform.dylib            0x00007fff7df71b3d _sigtramp + 29
4   ruby                                0x000000010be52d2a io_read + 122
5   ???                                 0x0000000000000000 0x0 + 0

-- Other runtime information -----------------------------------------------

* Loaded script: /Users/shimazutsunehiko/.rbenv/versions/2.3.0/bin/bundle

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/2.3.0/x86_64-darwin17/enc/encdb.bundle
    5 /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/2.3.0/x86_64-
...

/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/2.3.0/psych/visitors/visitor.rb
  281 /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/2.3.0/psych/visitors/json_tree.rb
  288 
...

/Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/2.3.0/psych/visitors/depth_first.rb
  289 /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/2.3.0/psych/visitors.rb
  290 /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/2.3.0/psych/parser.rb
  293 /Users/shimazutsunehiko/.rbenv/versions/2.3.0/lib/ruby/2.3.0/psych/deprecated.rb
...

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap: 6