繁体   English   中英

rails_admin:安装失败-错误的文件描述符错误

rails_admin:install failing - bad file descriptor error

提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供   中文繁体   英文版本   中英对照 版本,有任何建议请联系yoyou2525@163.com。

我正在尝试利用rails_admin gem,但是当我运行命令rails g rails_admin:install出现错误的文件描述符错误。 见下文。 关于如何解决的任何想法?

 C:/Ruby27-x64/lib/ruby/2.7.0/reline/ansi.rb:120:in `raw': Bad file descriptor (Errno::EBADF)
    from C:/Ruby27-x64/lib/ruby/2.7.0/reline/ansi.rb:120:in `cursor_pos'
    from C:/Ruby27-x64/lib/ruby/2.7.0/reline.rb:349:in `may_req_ambiguous_char_width'
    from C:/Ruby27-x64/lib/ruby/2.7.0/reline.rb:208:in `inner_readline'
    from C:/Ruby27-x64/lib/ruby/2.7.0/reline.rb:188:in `readline'
    from C:/Ruby27-x64/lib/ruby/2.7.0/forwardable.rb:235:in `readline'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/line_editor/readline.rb:20:in `readline'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/line_editor.rb:7:in `readline'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/shell/basic.rb:439:in `ask_simply'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/shell/basic.rb:85:in `ask'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/shell.rb:60:in `ask'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rails_admin-2.0.2/lib/generators/rails_admin/utils.rb:13:in `ask_for'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rails_admin-2.0.2/lib/generators/rails_admin/install_generator.rb:13:in `install'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `block in invoke_all'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `each'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `map'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `invoke_all'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/group.rb:232:in `dispatch'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/base.rb:485:in `start'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.1/lib/rails/generators.rb:275:in `invoke'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.1/lib/rails/commands/generate/generate_command.rb:26:in `perform'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.1/lib/rails/command/base.rb:69:in `perform'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.1/lib/rails/command.rb:50:in `invoke'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.1/lib/rails/commands.rb:18:in `<main>'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/activesupport-6.1.1/lib/active_support/dependencies.rb:332:in `block in require'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/activesupport-6.1.1/lib/active_support/dependencies.rb:299:in `load_dependency'
    from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/activesupport-6.1.1/lib/active_support/dependencies.rb:332:in `require'
    from bin/rails:4:in `<main>'

系统规格:

  • Windows 10 x64
  • 红宝石2.7.2p137
  • 轨道6.1.1
问题暂未有回复.您可以查看右边的相关问题.
1 rails_admin路由错误

我已经为我的应用程序RailsAdmin安装了,但无法转到管理面板。 授权后,我有路由错误: /config/routes.rb /config/initializers/rails_admin.rb /app/models/ability.rb 我也有管理员模 ...

2 文件描述符错误

我正在学习文件描述符,我写了这段代码: ,但我得到了: Error writing the file:: Bad file descriptor 我不知道会出现什么问题,因为这是一个非常简单的例子。 ...

3 文件描述符错误

如果我尝试执行以下代码 'test'是任意文件的地方,我得到: 但是,如果我只更改fout行以使用临时文件: 没有错误。 有人知道为什么吗? 我原本预计第一个案例会起作用,但我必须做错事。 在此先感谢您的帮助! ...

4 错误的文件描述符。 为什么?

我到处搜索过,唯一了解到fdUp[READ]文件描述符不正确的fdUp[READ]是我之前是否已关闭它。 我不相信我这样做,也无法弄清楚原因。 ...

2018-09-24 15:35:19 1 75   c/ unix
6 错误 - 接受()失败:错误的文件描述符

我必须实现两个必须通过 TCP 交互的进程,基本上是服务器和客户端之间的文件传输(学校作业)。 一切都适用于第一次文件传输,但是当客户端结束其作业时,服务器因error - accept() failed: Bad file descriptor崩溃error - accept() failed: ...

7 安装pip时出现错误文件描述符错误

每当我尝试安装 pip 时,我总是收到此错误。 请帮忙。 我不知道如何解决这个问题,我尝试使用修改方法使用默认的 python 可执行文件进行操作,还尝试了 get-pip.py 文件方法,但没有任何效果。 我也检查了我的路径变量,所以脚本文件夹在那里,但没有安装 pip。 ...

8 Rails安装Windows 7错误的文件描述符mysql2

在过去的1天里,我只尝试并得到了这一点, gem install mysql2 -v'0.2.6'#成功 什么是错误的文件描述符? 我在这里遵循了Ruby on rails:耙中止了错误的文件描述符,但无法正常工作 我非常不确定这两个文件 C:\\ Prog ...

10 接受失败的无效参数,后跟错误的文件描述符

我们有一台在过去几个月中运行良好的服务器。 但是,昨天突然,服务器无法接受带有“无效参数”和随后带有“错误文件描述符”的连接。 我检查过的每个站点/建议都说, bind()和accept()之前应该有一个listen() accept() 。 我这样做了,我还在检查listen()上的 ...

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2022 STACKOOM.COM