我使用的是红宝石的进程的宝石,以创建一个自定义的守护我的轨项目。唯一的问题是,当我试图开始的进程 ruby lib/daemons/test_ctl start 它失败,将不会开始。日志文件有这样的输出。

# Logfile created on Wed Oct 22 16:14:23 +0000 2008 by /  
*** below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally \*\*\*  
# MissingSourceFile: no such file to load -- utf8proc_native  
*** below you find all exception objects found in memory, some of them may have been thrown in your application, others may just be in memory because they are standard exceptions ***  
# NoMemoryError: failed to allocate memory>  
# SystemStackError: stack level too deep>  
# fatal: exception reentered>  
# LoadError: no such file to load -- daemons>  
# LoadError: no such file to load -- active_support>  
# MissingSourceFile: no such file to load -- lib/string>  
# MissingSourceFile: no such file to load -- utf8proc_native>  

这甚至发生在我生成程序(从轨插件),并尝试运行。没有任何人知道如何解决这个问题?

有帮助吗?

解决方案

好吧,其实我找到了答案,这个问题。我需要两个自定义中的文件 config/environment.rb.我用相对道路的名称,因为该进程是执行在轨道主要的目录不能找到这两个文件。后使它们的绝对路径,它解决了这一问题。

其他提示

我只花了30分钟试图解决一个类似的错误,当试图获得程序的插件:

LoadError: no such file to load -- active_support

由于某些原因,它没有找到 active_support lib,尽管它是安装。(也许是因为我有冻结轨).
在我的情况下,解决这个是使用绝对路径active_support我
ctl文件(例如: lib/daemons/mailer_ctl).

我需要改变第5行:

   require 'active_support'

 require './vendor/rails/activesupport/lib/active_support.rb'
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top