質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
87.20%
Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

受付中

railsが起動しなくなってしまいました

Lala..
Lala..

総合スコア0

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

1回答

0評価

0クリップ

17閲覧

投稿2018/07/13 05:44

railsが起動しなくなっていました。
このようなエラーが出るのですがどうしたら良いでしょうか?

エラーメッセージ

/Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require': dlopen(/Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/mysql2-0.5.2/lib/mysql2/mysql2.bundle, 9): Library not loaded: /usr/local/opt/mysql/lib/libmysqlclient.21.dylib (LoadError) Referenced from: /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/mysql2-0.5.2/lib/mysql2/mysql2.bundle Reason: image not found - /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/mysql2-0.5.2/lib/mysql2/mysql2.bundle from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/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 /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in register' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/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 /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in require' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in block in require'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in load_dependency' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in require'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/mysql2-0.5.2/lib/mysql2.rb:33:in <main>' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/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 /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in register'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/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 /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in require'
from /Users/maple002/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:81:in block (2 levels) in require' from /Users/maple002/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:76:in each'
from /Users/maple002/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:76:in block in require' from /Users/maple002/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:65:in each'
from /Users/maple002/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:65:in require' from /Users/maple002/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler.rb:114:in require'
from /Users/maple002/Desktop/kaosaiyou/config/application.rb:7:in <main>' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/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 /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in register'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/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 /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in require'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in block in require' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in load_dependency'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in require' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:145:in block in perform'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in tap' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in perform'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in run' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in invoke_command'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in dispatch' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/railties-5.2.0/lib/rails/command/base.rb:65:in perform'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/railties-5.2.0/lib/rails/command.rb:46:in invoke' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in <main>'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/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 /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in register' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/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 /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in require' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in block in require'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in load_dependency' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in require'
from /Users/maple002/Desktop/kaosaiyou/bin/rails:9:in <top (required)>' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in load'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in call' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in call'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/client.rb:30:in run' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/bin/spring:49:in <top (required)>'
from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in load' from /Users/maple002/Desktop/kaosaiyou/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in <top (required)>'
from /Users/maple002/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in require' from /Users/maple002/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in require'
from /Users/maple002/Desktop/kaosaiyou/bin/spring:15:in <top (required)>' from bin/rails:3:in load'
from bin/rails:3:in `<main>'

良い質問の評価を上げる

以下のような質問は評価を上げましょう

  • 質問内容が明確
  • 自分も答えを知りたい
  • 質問者以外のユーザにも役立つ

評価が高い質問は、TOPページの「注目」タブのフィードに表示されやすくなります。

気になる質問をクリップする

クリップした質問は、後からいつでもマイページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

teratailでは下記のような質問を「具体的に困っていることがない質問」、「サイトポリシーに違反する質問」と定義し、推奨していません。

  • プログラミングに関係のない質問
  • やってほしいことだけを記載した丸投げの質問
  • 問題・課題が含まれていない質問
  • 意図的に内容が抹消された質問
  • 過去に投稿した質問と同じ内容の質問
  • 広告と受け取られるような投稿

評価を下げると、トップページの「アクティブ」「注目」タブのフィードに表示されにくくなります。

まだ回答がついていません

会員登録して回答してみよう

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
87.20%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問

同じタグがついた質問を見る

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。