首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >第一次尝试运行rails时出现gems错误

第一次尝试运行rails时出现gems错误
EN

Stack Overflow用户
提问于 2022-02-06 13:36:11
回答 1查看 238关注 0票数 2

在尝试安装rails时,我得到了这个错误。我也无法安装sqlite3,所以我只尝试了: gem安装sqlite3 --而且它似乎成功了。错误:

代码语言:javascript
复制
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>'
EN

回答 1

Stack Overflow用户

发布于 2022-07-03 05:36:35

我也有同样的错误,我通过更改项目路径C:\rails\my-first-app来解决它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71007722

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档