我一直在尝试让一个ruby文件要求另一个ruby文件,我觉得我快疯了。我的设置如下“/raid1/ruby-code/benchmark/”中的两个文件CommandRunnerBenchmarkerBenchmarker是此时的主要程序,它需要CommandRunner,我尝试了很多不同的东西,但都没有用。以下是我放在Benchmarker开头的所有内容的列表require'CommandRunner'require'./CommandRunner'$LOAD_PATH.unshiftFile.expand_path(File.dirname($PROGRAM_NAME))r