2011-08-01 4 views
1

Windows XP가 설치되어 있고 buildr을 실행하려고하는데 이전에 Ruby를 사용한 적이 없습니다. 내 JDK Windows에서 buildr을 실행할 수 없습니다.

  • 를 가리 키도록 Ruby Installer
  • 설정 JAVA_HOME의 ENV 변수를 사용하여 Windows 용 루비 1.8.6 설치

    1. 는 다음 란 : 나는 즉의 buildr 웹 사이트에 instructions을 따라 보석이 설치 buildr --platform mswin32.

    Fetching: rake-0.8.7.gem (100%)
    Fetching: builder-2.1.2.gem (100%)
    WARNING: builder-2.1.2 has an invalid nil value for @cert_chain
    Fetching: net-ssh-2.0.23.gem (100%)
    Fetching: net-sftp-2.0.4.gem (100%)
    Fetching: rubyzip-0.9.4.gem (100%)
    Fetching: highline-1.5.1.gem (100%)
    Fetching: json_pure-1.4.3.gem (100%)
    Fetching: rubyforge-2.0.3.gem (100%)
    Fetching: hoe-2.3.3.gem (100%)
    Fetching: rjb-1.3.2-x86-mswin32-60.gem (100%)
    Fetching: atoulme-Antwrap-0.7.1.gem (100%)
    Fetching: diff-lcs-1.1.2.gem (100%)
    Fetching: rspec-expectations-2.1.0.gem (100%)
    Fetching: rspec-mocks-2.1.0.gem (100%)
    Fetching: rspec-core-2.1.0.gem (100%)
    ***************************

    Thank you for installing rspec-core-2.1.0

    Please be sure to look at the upgrade instructions to see what might have
    changed since the last release:


    http://github.com/rspec/rspec-core/blob/master/Upgrade.markdown

    ***************************
    Fetching: rspec-2.1.0.gem (100%)
    Fetching: xml-simple-1.0.12.gem (100%)
    Fetching: minitar-0.5.3.gem (100%)
    Fetching: buildr-1.4.6-x86-mswin32.gem (100%)
    To get started run buildr --help
    Successfully installed rake-0.8.7
    Successfully installed builder-2.1.2
    Successfully installed net-ssh-2.0.23
    Successfully installed net-sftp-2.0.4
    Successfully installed rubyzip-0.9.4
    Successfully installed highline-1.5.1
    Successfully installed json_pure-1.4.3
    Successfully installed rubyforge-2.0.3
    Successfully installed hoe-2.3.3
    Successfully installed rjb-1.3.2-x86-mswin32-60
    Successfully installed atoulme-Antwrap-0.7.1
    Successfully installed diff-lcs-1.1.2
    Successfully installed rspec-expectations-2.1.0
    Successfully installed rspec-mocks-2.1.0
    Successfully installed rspec-core-2.1.0
    Successfully installed rspec-2.1.0
    Successfully installed xml-simple-1.0.12
    Successfully installed minitar-0.5.3
    Successfully installed buildr-1.4.6-x86-mswin32
    19 gems installed
    Installing ri documentation for rake-0.8.7...
    Installing ri documentation for builder-2.1.2...
    ERROR: While generating documentation for builder-2.1.2
    ... MESSAGE:
    Unhandled special: Special: type=17, text=""
    ... RDOC args: --ri --op C:/Ruby187/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation --quiet

    1. 란 buildr --help를 다음과 같은 오류 있어요 : 문서에 대한 오류를 제외하고 확인을 설치하는 듯 (즉 중요한인지 아닌지 모르는)

    C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:926:in 'report_activate_error': RubyGem version error: buildr(1.4.6 not >= 0) (Gem::LoadError)
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:244:in 'activate_dep'
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:236:in 'activate'
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:1307:in 'gem'
    from C:/Ruby187/bin/buildr:18

    buildr _1.4.6 _ --help

    하지만 난 그냥 t을 가지고 :

    것은 내가 그것을 버전을주는 시도 그는 다음을 제외하고 동일한 오류가 발생했습니다 :

    'report_activate_error': RubyGem version error: buildr(1.4.6 not = 1.4.6) (Gem::LoadError)

    다른 사람이 발생 했습니까?

    감사

    UPDATE : 나는 JRuby를 설치하고 나를 위해 일했다. 초기 쟁점에 대한 피드백은 만족 스럽습니다. 지금은 JRuby를 고수 할 것입니다.

  • 답변

    1

    이 알려진 문제입니다 : https://issues.apache.org/jira/browse/BUILDR-580

    권장 사항은 하지 실행 gem update --system입니다.

    +0

    답장을 보내 주셔서 감사합니다. 이것은 보석 업데이트 - 시스템을 실행 한 적이 없다는 점을 제외하고는 동일한 오류입니다. – Ross

    +0

    ''gem update'를 전혀 실행하지 않았습니다. – yclian

    0

    독립 실행 형 및 PIK 설치시 Windows에서 동일한 문제가 발생합니다.

    pik install ruby 1.8.7 
    -- use it -- 
    gem install buildr --platform mswin32 --no-rdoc --no-ri 
    C:/Users/yclian/.pik/rubies/[email protected]/lib/ruby/site_ruby/1.8/rubygems.rb:926:in `report_activate_error': RubyGem version error: buildr(1.4.6 not >= 0) (Gem::LoadError) 
        from C:/Users/yclian/.pik/rubies/[email protected]/lib/ruby/site_ruby/1.8/rubygems.rb:244:in `activate_dep' 
        from C:/Users/yclian/.pik/rubies/[email protected]/lib/ruby/site_ruby/1.8/rubygems.rb:236:in `activate' 
        from C:/Users/yclian/.pik/rubies/[email protected]/lib/ruby/site_ruby/1.8/rubygems.rb:1307:in `gem' 
        from C:/Users/yclian/.pik/rubies/[email protected]/bin/buildr:18 
    

    JRuby는 해결 방법입니다.

    pik install jruby 
    -- use it -- 
    jruby -S gem install buildr 
    buildr --help 
    buildr [-f rakefile] {options} targets... 
    -- happy --