English 中文(简体)
铁路中C级轨道
原标题:Running C processes in Rails
  • 时间:2009-11-07 13:24:29
  •  标签:

我发出这样的呼吁:

价值=<代码>/模拟_annealing

Which is a C Object file, but Rails tells me it cannot find that file. I put it in the same dir that the rest of the models files (since it s called by one of those models), but I guess it should be in any other place.

我在鲁比拉以外审判了这段话,并做了大量工作。

我必须做些什么?

最佳回答

说:

<代码>/模拟_annealing

页: 1 这就是<代码>。 如果档案存放在其他地方,你需要为之提供途径,或将这条道路添加到环境上可变的美元。 因此,你应将这一行文改为:

www.un.org/spanish/ga/president

问题回答

The best option is to use an absolute path for running the program. For ex., you can create a directory "bin" under your rails application top level directory. Place your program under "bin" directory. Then you can execute the program something like:

cmd = "#{RAILS_ROOT}/bin/cbin arg1 arg2"
value = `#{cmd}`




相关问题
热门标签