Ошибка при попытке доступа к Rails Sever на Mac book pro

В настоящее время я использую бета-версию Mac OS Mojave 10.14, используя

  • Рельсы 5.2.1
  • Руби 2.3.7p456
  • Mysql версии 8.0.12 для macos10.13 на x86_64 (сервер сообщества MySQL — GPL)

Я установил все, используя этот метод, из здесь

После создания нового приложения Ruby с помощью команды

rails new sept_07 -d mysql

После этой команды я cd зашел в sept_07, затем запустил эту команду

bundle install

После завершения установки я запускаю команду

rails server

И меня встречают эти ошибки

/Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require': dlopen(/Library/Ruby/Gems/2.3.0/gems/mysql2-0.5.2/lib/mysql2/mysql2.bundle, 0x0009): dependent dylib 'libssl.1.0.0.dylib' not found for '/Library/Ruby/Gems/2.3.0/gems/mysql2-0.5.2/lib/mysql2/mysql2.bundle' - /Library/Ruby/Gems/2.3.0/gems/mysql2-0.5.2/lib/mysql2/mysql2.bundle (LoadError)
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
from /Library/Ruby/Gems/2.3.0/gems/mysql2-0.5.2/lib/mysql2.rb:33:in `<main>'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Library/Ruby/Site/2.3.0/bundler/runtime.rb:81:in `block (2 levels) in require'
from /Library/Ruby/Site/2.3.0/bundler/runtime.rb:76:in `each'
from /Library/Ruby/Site/2.3.0/bundler/runtime.rb:76:in `block in require'
from /Library/Ruby/Site/2.3.0/bundler/runtime.rb:65:in `each'
from /Library/Ruby/Site/2.3.0/bundler/runtime.rb:65:in `require'
from /Library/Ruby/Site/2.3.0/bundler.rb:114:in `require'
from /Users/matt/Documents/Aurora University/Semesters/Fall 2018/DataBase/Projects/sept07/config/application.rb:7:in `<main>'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
from /Library/Ruby/Gems/2.3.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:145:in `block in perform'
from /Library/Ruby/Gems/2.3.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `tap'
from /Library/Ruby/Gems/2.3.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `perform'
from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
from /Library/Ruby/Gems/2.3.0/gems/railties-5.2.1/lib/rails/command/base.rb:65:in `perform'
from /Library/Ruby/Gems/2.3.0/gems/railties-5.2.1/lib/rails/command.rb:46:in `invoke'
from /Library/Ruby/Gems/2.3.0/gems/railties-5.2.1/lib/rails/commands.rb:18:in `<main>'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
from /Users/matt/Documents/Aurora University/Semesters/Fall 2018/DataBase/Projects/sept07/bin/rails:9:in `<top (required)>'
from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:70:in `require'
from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:70:in `require'
from /Users/matt/Documents/Aurora University/Semesters/Fall 2018/DataBase/Projects/sept07/bin/spring:15:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'

Я попытался проверить файл database.yml в папке sept_07 и изменить имя пользователя и пароль, соответствующие пользователю mysql и пройти, и создал базу данных с именем sept_07, чтобы она соответствовала базе данных в файле database.yml.

Любая помощь приветствуется

Спасибо


person Matt    schedule 07.09.2018    source источник
comment
Привет, столкнулся с похожей проблемой при запуске Mojave prod 10.14.2. Вы нашли решение?   -  person Seb    schedule 19.02.2019