在尝试安装rails时,我得到了这个错误。我也无法安装sqlite3,所以我只尝试了: gem安装sqlite3 --而且它似乎成功了。错误:
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/compile_cache/iseq.rb:60:in `fetch': No such file or directory - bs_fetch:
open_current_file:fstat (Errno::ENOENT)
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/compile_cache/iseq.rb:60:in `fetch'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/compile_cache/iseq.rb:85:in `load_iseq'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from C:/Ruby31-x64/lib/ruby/3.1.0/yaml.rb:4:in `<main>'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/compile_cache/yaml.rb:58:in `init!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/compile_cache/yaml.rb:38:in `install!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/compile_cache.rb:26:in `setup'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap.rb:71:in `setup'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap.rb:112:in `default_setup'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.10.3/lib/bootsnap/setup.rb:5:in `<top (required)>'
from C:/Users/cctv0/Desktop/ruby-projects/friends/friends/config/boot.rb:4:in `require'
from C:/Users/cctv0/Desktop/ruby-projects/friends/friends/config/boot.rb:4:in `<top (required)>'
from bin/rails:3:in `require_relative'
from bin/rails:3:in `<main>'发布于 2022-07-03 05:36:35
我也有同样的错误,我通过更改项目路径C:\rails\my-first-app来解决它。
https://stackoverflow.com/questions/71007722
复制相似问题