2013-08-07 3 views
1

필자의 PC에서 오랫동안 RakeFile을 사용하고 있습니다. Mac으로 전환했습니다. 같은 레이크 파일을 가진 모노 EXE 파일을 실행하고 싶지만 맥에서도 실행되지 않습니다. gem install albacore을 달았지만 올바르게 작동하지 않는 것 같습니다. 제발 조언.Rakefile Mac의 Albacore

require 'albacore' 
require 'rubygems' 
require 'ftools' 
.... 
    class Exec 
    include RunCommand 
    include YAMLConfig 
    include Logging 

    def initialize 
    @path_to_command='' 
    @parameters = [] 
    super() 
    end 

    def execute 
    result = run_command "Exec", "" 

    failure_message = 'Exec Failed. See Build Log For Detail' 
    fail_with_message failure_message if !result 
    end 
end 

UPDATE : 여기

rake aborted! no such file to load -- albacore 

내 레이크 파일의 시작입니다 : 내가 그것을 실행하려고하면

나는이 오류가 다양한 콘솔 출력

[email protected] 
$ sudo gem install albacore 
Password: 
Successfully installed albacore-0.3.5 
1 gem installed 
Installing ri documentation for albacore-0.3.5... 
Installing RDoc documentation for albacore-0.3.5... 

[email protected] 
$ rake database:Sandbox 
(in /Users/Chris/projects/DFT) 
rake aborted! 
no such file to load -- albacore 
/Users/Chris/projects/DFT/rakefile:1:in `require' 
(See full trace by running task with --trace) 

[email protected] 
$ gem list 

*** LOCAL GEMS *** 

albacore (0.3.5) 
rubyzip (0.9.9) 
+0

gem install이 올바르게 작동하지 않는 것 같으면 오류 메시지가 나타 났습니까? '보석 목록'을 쓰면 albacore가 보입니까? rvm, rbenv 또는 chruby와 같은 루비 버전 관리자를 사용하고 있습니까? 번들러를 사용하고 있습니까? 레이크 파일을 실행하려고 할 때'rake aborted' 오류가 발생했을 때 어떤 명령을 사용하고 있습니까? – carols10cents

+0

@carolclarinet 출력으로 내 질문을 업데이트했습니다. –

답변

1

GEM_HOME과 LOAD_ 같은 문제가있는 것 같습니다. 통로. 정확한 문제를 진단하고 수정하는 여러 가지 방법이 있습니다 in this question.