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

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

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

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

Q&A

1回答

542閲覧

rails s ができません。

machamacha

総合スコア0

Ruby on Rails 6

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

0グッド

0クリップ

投稿2021/08/23 18:27

前提・実現したいこと

ここに質問の内容を詳しく書いてください。
始めてサーバーを起してみようとしているのですが以下のようなメッセージが出てきて先に進めません。

発生している問題・エラーメッセージ

C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/compile_cache/iseq.rb:30:in fetch': No such file or directory - bs_fetch:open_current_file:open (Errno::ENOENT) from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/compile_cache/iseq.rb:30:in fetch'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/compile_cache/iseq.rb:55:in load_iseq' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:138:in block in perform'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:135:in tap' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:135:in perform'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:27:in run' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in invoke_command'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor.rb:392:in dispatch' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails/command/base.rb:69:in perform'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails/command.rb:48:in invoke' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails/commands.rb:18:in <main>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require' from bin/rails:4:in <main>'

エラーメッセージ

試したこと

調べても出てこなくて困ってます。指定されたファイルが存在しない場合又は、パスのコンポーネントが既存のディレクトリを指定していない場合発生するらしいのですがよくわかりません。

補足情報(FW/ツールのバージョンなど)

ruby2.6.8
rails6.1.4.1

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

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

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

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

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

m.ts10806

2021/08/23 20:31

過去質問にも多く出てますが(なので回答にはしません)、Windowsに直にRuby環境構築するのは悪手です。茨の道。 仮想環境やWSLなどLinux上にしてください。
guest

回答1

0

Windows環境なら、Ruby+Devkitを利用してみてください。
GEMをコンパイルするための開発環境も同時にインストールされるので、直後からRailsアプリを作れます。

https://rubyinstaller.org/downloads/

投稿2021/08/24 00:21

technocore

総合スコア7247

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

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

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

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

ただいまの回答率
85.46%

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

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

質問する

関連した質問