简体   繁体   English

Rails应用程序加载错误,无法使用“ rais s”命令启动应用程序,而是出现了错误

[英]Rails app Load Error, Couldn't start the app with 'rais s' command, instead I'm getting error

My rails local development was just fine, but suddenly the every thing is broken after trying RubyMine, I was just using sublime text as editor for my projects and then wanted to tryout RubyMine. 我的rails本地开发很好,但是在尝试RubyMine之后突然一切都坏了,我只是使用sublime文本作为项目的编辑器,然后想试用RubyMine。

Now at this stage I can't start any application with 'rails s' command. 现在,在此阶段,我无法使用“ rails s”命令启动任何应用程序。 I tried install new app with 'rails new myapp' but the problem still exists. 我尝试使用“ rails new myapp”安装新应用,但问题仍然存在。

I am new for rails and I am stuck, any help would be appreciated!! 我是新来的人,我被卡住了,任何帮助将不胜感激! Thanks! 谢谢!

here is the error I am getting 这是我得到的错误

hemps-MBP:experiment hemp$ rails s
Traceback (most recent call last):
    58: from bin/rails:3:in `<main>'
    57: from bin/rails:3:in `load'
    56: from /Users/hemp/Documents/tutorials/ROR/experiment/bin/spring:15:in `<top (required)>'
    55: from /Users/hemp/Documents/tutorials/ROR/experiment/bin/spring:15:in `require'
    54: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
    53: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
    52: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
    51: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
    50: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
    49: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
    48: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
    47: from /Users/hemp/Documents/tutorials/ROR/experiment/bin/rails:9:in `<top (required)>'
    46: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
    45: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
    44: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
    43: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
    42: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
    41: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
    40: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
    39: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
    38: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/commands.rb:18:in `<main>'
    37: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/command.rb:46:in `invoke'
    36: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/command/base.rb:65:in `perform'
    35: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
    34: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
    33: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
    32: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `perform'
    31: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `tap'
    30: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:145:in `block in perform'
    29: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
    28: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
    27: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
    26: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
    25: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
    24: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
    23: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
    22: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
    21: from /Users/hemp/Documents/tutorials/ROR/experiment/config/application.rb:7:in `<main>'
    20: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.5/lib/bundler.rb:114:in `require'
    19: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.5/lib/bundler/runtime.rb:65:in `require'
    18: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.5/lib/bundler/runtime.rb:65:in `each'
    17: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.5/lib/bundler/runtime.rb:76:in `block in require'
    16: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.5/lib/bundler/runtime.rb:76:in `each'
    15: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.5/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
    14: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
    13: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
    12: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
    11: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
    10: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
     9: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/sqlite3-1.3.13/lib/sqlite3.rb:2:in `<main>'
     8: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/sqlite3-1.3.13/lib/sqlite3.rb:6:in `rescue in <main>'
     7: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
     6: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
     5: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
     4: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
     3: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
     2: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
     1: from /Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
/Users/hemp/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require': dlopen(/Users/hemp/.rvm/gems/ruby-2.5.1/gems/sqlite3-1.3.13/lib/sqlite3/sqlite3_native.bundle, 9): Symbol not found: _rb_cFixnum (LoadError)
  Referenced from: /Users/hemp/.rvm/gems/ruby-2.5.1/gems/sqlite3-1.3.13/lib/sqlite3/sqlite3_native.bundle
  Expected in: flat namespace
 in /Users/hemp/.rvm/gems/ruby-2.5.1/gems/sqlite3-1.3.13/lib/sqlite3/sqlite3_native.bundle - /Users/hemp/.rvm/gems/ruby-2.5.1/gems/sqlite3-1.3.13/lib/sqlite3/sqlite3_native.bundle
hemps-MBP:experiment hemp$ 

Seems the issue with Gemfile. 似乎与Gemfile有关。 Please remove the gem sqlite3 and try once. 请删除宝石sqlite3,然后重试一次。 If it's not resolved then try to use diff ruby version using RVM. 如果无法解决,请尝试通过RVM使用diff ruby​​版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试启动Rails服务器时出现错误,提示它无法(carrier_wave)无法加载雾 - I'm getting an error when I try to start my rails server that it can't (carrier_wave) can't load fog 我不知道为什么我在Rails应用程序中出现此错误:表单中的第一个参数不能包含nil或为空错误 - I can't figure out why I'm getting this error in rails app: First argument in form cannot contain nil or be empty error 试图在rails“ rails s”上启动服务器,但我不断出错 - trying to start server on rails “ rails s” and i keep getting error 代码学校截屏视频-从零开始使用Rails应用程序-第1部分错误:找不到带有“ id”的旅程= - Code School Screencast - Rails App From Scratch - Part 1 Error: Couldn't find Trip with 'id'= Rails:通过关联获取错误,找不到关联 - Rails :through associations getting error, couldn't find association Rails、gems、require、zsh 和错误消息! 由于与“require”相关的问题,我无法加载我的应用程序 - Rails, gems, require, zsh and an error message! I can't load my app because of an issue related to “require” 获取无法解析Rails中的ruby中的YAML错误 - Getting couldn't parse YAML error in ruby on rails 在rails -v / rails new app上出错 - getting error on rails -v / rails new app 当我用ruby 1.9.3运行我的rails4.0应用程序时出现uintptr_t错误 - When I run my rails4.0 app with ruby 1.9.3 getting uintptr_t error 当我用独角兽启动我的Rails应用程序时出现奇怪的错误 - Weird error when I start my rails app with unicorn
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM