尝试访问mac book pro上的rails服务器时出错

ruyhziif  于 2021-06-20  发布在  Mysql
关注(0)|答案(0)|浏览(210)

我目前在MacOSMojave10.14beta上使用
轨道5.2.1
Ruby2.3.7p456
mysql 8.0.12版,适用于x86\U 64上的macos10.13(mysql社区服务器-gpl)
我已经用这个方法安装了所有的东西
在使用命令创建新的ruby应用程序之后

rails new sept_07 -d mysql

在那命令之后我 cd 到了2007年9月,我执行了这个命令

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>'

我试着检查了sept\u07文件夹中的database.yml,更改了用户名和密码match mysql user和pass,并创建了一个名为sept\u07的数据库,以匹配database.yml文件中的数据库。
非常感谢您的帮助
谢谢

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题