Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/52.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 运行Rails控制台时Bootsnap::LoadPathCache::FallbackScan_Ruby On Rails_Ruby_Rubygems - Fatal编程技术网

Ruby on rails 运行Rails控制台时Bootsnap::LoadPathCache::FallbackScan

Ruby on rails 运行Rails控制台时Bootsnap::LoadPathCache::FallbackScan,ruby-on-rails,ruby,rubygems,Ruby On Rails,Ruby,Rubygems,最近,当我试图运行rails控制台时,出现了以下错误 我使用gem install安装了gems,并正确配置了gem文件。 我试图通过修改.bashrc来改变路径,但没有任何效果 [eduardo@arch server]$ rails c Traceback (most recent call last): bin/rails: Bootsnap::LoadPathCache::FallbackScan 31: from /home/eduardo/Projetos/r

最近,当我试图运行
rails控制台时,出现了以下错误

我使用
gem install
安装了gems,并正确配置了gem文件。 我试图通过修改.bashrc来改变路径,但没有任何效果

[eduardo@arch server]$ rails c
    Traceback (most recent call last):
    bin/rails: Bootsnap::LoadPathCache::FallbackScan
    31: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in block in require'
    30: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
    29: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require_with_bootsnap_lfi'
    28: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register'
    27: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in block in require_with_bootsnap_lfi'
    26: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require'
    25: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/commands.rb:18:in <main>'
    24: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/command.rb:44:in invoke'
    23: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/command.rb:70:in find_by_namespace'
    22: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/command/behavior.rb:39:in lookup'
    21: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/command/behavior.rb:39:in each'
    20: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/command/behavior.rb:40:in block in lookup'
    19: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/command/behavior.rb:40:in each'
    18: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/command/behavior.rb:44:in block (2 levels) in lookup'
    17: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in require'
    16: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in load_dependency'
    15: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in block in require'
    14: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
    13: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require_with_bootsnap_lfi'
    12: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register'
    11: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in block in require_with_bootsnap_lfi'
    10: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require'
    9: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/commands/console/console_command.rb:3:in <main>'
    8: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in require'
    7: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in load_dependency'
    6: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in block in require'
    5: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:26:in require'
    4: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:40:in rescue in require'
    3: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require_with_bootsnap_lfi'
    2: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:89:in register'
    1: from /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in block in require_with_bootsnap_lfi'
    /home/eduardo/Projetos/rails/server/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require': cannot load such file -- irb (LoadError)
Rails和Ruby版本:

[eduardo@arch ~]$ rails -v
Rails 6.0.2.1
[eduardo@arch ~]$ ruby -v
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]

您试图更改安装目录的what?路径,或者至少尝试过。请删除Ruby,删除rbenv,重新安装这两个文件,
bundle install
,然后重试。欢迎使用SO!请使用正确的语法和拼写;“i”->“i”,“rails”->“rails”等等。因此,它不是留言板或论坛,更像是一本在线参考书,这些东西都很重要。当前公开的Github问题是否与您的问题有关?
[eduardo@arch ~]$ rails -v
Rails 6.0.2.1
[eduardo@arch ~]$ ruby -v
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]