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

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

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

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

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

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

Q&A

1回答

1521閲覧

rails: rails sでエラー

dxo

総合スコア16

Ruby on Rails 5

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

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

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

0グッド

1クリップ

投稿2019/05/12 05:56

ruby on rails5

エラー内容

: $ rails s
=> Booting Puma
=> Rails 5.1.6 application starting in development
=> Run rails server -h for more startup options
Exiting
/Users/
/Desktop//vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in require': cannot load such file -- bindex (LoadError) from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in block in require'
from /Users/
/Desktop//vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in load_dependency' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in require'
from /Users/
/Desktop//vendor/bundle/ruby/2.2.0/gems/web-console-3.5.1/lib/web_console/railtie.rb:9:in block in <class:Railtie>' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/initializable.rb:30:in instance_exec'
from /Users/
/Desktop//vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/initializable.rb:30:in run' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/initializable.rb:59:in block in run_initializers'
from /Users/
/.rbenv/versions/2.2.5/lib/ruby/2.2.0/tsort.rb:226:in block in tsort_each' from /Users/********/.rbenv/versions/2.2.5/lib/ruby/2.2.0/tsort.rb:348:in block (2 levels) in each_strongly_connected_component'
from /Users//.rbenv/versions/2.2.5/lib/ruby/2.2.0/tsort.rb:429:in each_strongly_connected_component_from' from /Users/********/.rbenv/versions/2.2.5/lib/ruby/2.2.0/tsort.rb:347:in block in each_strongly_connected_component'
from /Users/
/.rbenv/versions/2.2.5/lib/ruby/2.2.0/tsort.rb:345:in each' from /Users/********/.rbenv/versions/2.2.5/lib/ruby/2.2.0/tsort.rb:345:in call'
from /Users//.rbenv/versions/2.2.5/lib/ruby/2.2.0/tsort.rb:345:in each_strongly_connected_component' from /Users/********/.rbenv/versions/2.2.5/lib/ruby/2.2.0/tsort.rb:224:in tsort_each'
from /Users/
/.rbenv/versions/2.2.5/lib/ruby/2.2.0/tsort.rb:203:in tsort_each' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/initializable.rb:58:in run_initializers'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/application.rb:353:in initialize!' from /Users/********/Desktop/********/config/environment.rb:5:in <top (required)>'
from config.ru:3:in require_relative' from config.ru:3:in block in <main>'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in instance_eval' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in initialize'
from config.ru:in new' from config.ru:in <main>'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in eval' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in new_from_string'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/rack-2.0.5/lib/rack/builder.rb:40:in parse_file' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/rack-2.0.5/lib/rack/server.rb:319:in build_app_and_options_from_config'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/rack-2.0.5/lib/rack/server.rb:219:in app' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:24:in app'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/rack-2.0.5/lib/rack/server.rb:354:in wrapped_app' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:80:in log_to_stdout'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:42:in start' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:135:in block in perform'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:130:in tap' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:130:in perform'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/thor-0.20.0/lib/thor/command.rb:27:in run' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in invoke_command'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/thor-0.20.0/lib/thor.rb:387:in dispatch' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/command/base.rb:63:in perform'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/command.rb:44:in invoke' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/railties-5.1.6/lib/rails/commands.rb:16:in <top (required)>'
from /Users//Desktop//bin/rails:9:in require' from /Users/********/Desktop/********/bin/rails:9:in <top (required)>'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in load' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in call'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in call' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/spring-2.0.2/lib/spring/client.rb:30:in run'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/spring-2.0.2/bin/spring:49:in <top (required)>' from /Users/********/Desktop/********/vendor/bundle/ruby/2.2.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in load'
from /Users//Desktop//vendor/bundle/ruby/2.2.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in <top (required)>' from /Users/********/Desktop/********/bin/spring:15:in require'
from /Users//Desktop//bin/spring:15:in <top (required)>' from bin/rails:3:in load'
from bin/rails:3:in `<main>'
: ********$

以上のエラーが出てしまいます!どうすれば良いのでしょうか?

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

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

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

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

gouf

2019/06/28 06:17

「bundle install」は実行されましたか
guest

回答1

0

cannot load such file -- bindex という部分が主なエラー要因になっていそうだと思いました。

RailsのバージョンもRubyのバージョンも古いので、gemで問題が発生しているのかもしれないと思いました。

Rails5.1.6(ruby2.2)というバージョン環境が必須でなければ、
もう少し最新に近いバージョンで再度、作り直すか、それぞれアップデート頂くのもよいかなと思いました。
現状で、すでに、Ruby 2.6系列までのサポートが終了しているようでした。
https://www.famlog.jp/article/4416

投稿2023/02/22 14:41

hujuu

総合スコア14

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

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

アカウントをお持ちの方は

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問