Ошибка при попытке доступа к Rails Sever на Mac book pro - PullRequest
0 голосов
/ 07 сентября 2018

Я в настоящее время на Mac OS Mojave 10.14 Beta, используя

  • Рельсы 5.2.1
  • Рубин 2.3.7p456
  • Mysql Ver 8.0.12 для macos10.13 на x86_64 (MySQL Community Server - GPL)

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

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

rails new sept_07 -d mysql

После этой команды I 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 и pass, и создал базу данных с именем sept_07, чтобы она соответствовала базе данных в файле database.yml.

Любая помощь очень ценится

Спасибо

...