gpt4 book ai didi

java - Jruby - 工头 gem 没有运行

转载 作者:行者123 更新时间:2023-11-30 09:41:35 26 4
gpt4 key购买 nike

我正在运行 JRUBY 应用程序。偶然发现了一个叫做工头的伟大 gem : https://github.com/ddollar/foreman

但是我发现 - JVM 不支持 fork :

 foreman startNotImplementedError: fork is not available on this platform
fork at org/jruby/RubyKernel.java:1657
fork_with_io at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:32
run_process at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:44
run at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:19
with_environment at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:64
run at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:18
chdir at org/jruby/RubyDir.java:466
run at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/process.rb:17
spawn at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/procfile_entry.rb:17
map at org/jruby/RubyArray.java:2336
spawn at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/procfile_entry.rb:15
spawn_processes at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/engine.rb:63
each at org/jruby/RubyArray.java:1609
spawn_processes at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/engine.rb:61
start at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/engine.rb:45
start at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/lib/foreman/cli.rb:28
__send__ at org/jruby/RubyBasicObject.java:1772
send at org/jruby/RubyKernel.java:1972
run at /home/charlie/.rvm/gems/jruby-head/gems/thor-0.14.6/lib/thor/task.rb:21
invoke_task at /home/charlie/.rvm/gems/jruby-head/gems/thor-0.14.6/lib/thor/invocation.rb:118
dispatch at /home/charlie/.rvm/gems/jruby-head/gems/thor-0.14.6/lib/thor.rb:263
start at /home/charlie/.rvm/gems/jruby-head/gems/thor-0.14.6/lib/thor/base.rb:389
(root) at /home/charlie/.rvm/gems/jruby-head/gems/foreman-0.36.1/bin/foreman:7
load at org/jruby/RubyKernel.java:996
(root) at /home/charlie/.rvm/gems/jruby-head/bin/foreman:19

这是一种耻辱,因为我喜欢经营 Foreman 的想法。有谁知道解决上述问题的方法,或者可以在 JRUBY 环境中运行的替代方案

最佳答案

感谢这个 gem 的创造者的出色工作,现在可以在 Jruby 中使用

https://github.com/ddollar/foreman

在 Jruby 1.6.6 中运行良好

关于java - Jruby - 工头 gem 没有运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8963912/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com