2013-08-23 2 views
1

내가 레드 마인에 대한 모든 installtion 단계를 완료하고 아파치레드 마인 설치 오류

[email protected]:/usr/share/redmine$ rails -v 
Rails 3.2.13 
[email protected]:/usr/share/redmine$ ruby -v 
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux] 
[email protected]:/usr/share/redmine$ bundle -v 
Bundler version 1.3.5 

들이받은 상태지만 enter image description here 아래와 같이 내가 오류를 얻고 로컬 호스트/레드 마인 구성! 오류 메시지 BER로


"오류 메시지가 :. 레드 마인은 Bundler를 1.0.21 필요 은 (는 1.0.15를 사용하는) gem install bundler으로 최신 버전을 설치하시기 바랍니다."내가 들러 버전

설치
[email protected]:/$ sudo gem install bundler -v 1.0.21 
    Successfully installed bundler-1.0.21 

는 여전히 같은 오류

*************************************************************************** 
[email protected]:/$ ruby --version 
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux] 

을 받고
Gem.lock 
GEM 
    remote: https://rubygems.org/ 
    specs: 
    actionmailer (3.2.13) 
     actionpack (= 3.2.13) 
     mail (~> 2.5.3) 
    actionpack (3.2.13) 
     activemodel (= 3.2.13) 
     activesupport (= 3.2.13) 
     builder (~> 3.0.0) 
     erubis (~> 2.7.0) 
     journey (~> 1.0.4) 
     rack (~> 1.4.5) 
     rack-cache (~> 1.2) 
     rack-test (~> 0.6.1) 
     sprockets (~> 2.2.1) 
    activemodel (3.2.13) 
     activesupport (= 3.2.13) 
     builder (~> 3.0.0) 
    activerecord (3.2.13) 
     activemodel (= 3.2.13) 
     activesupport (= 3.2.13) 
     arel (~> 3.0.2) 
     tzinfo (~> 0.3.29) 
    activeresource (3.2.13) 
     activemodel (= 3.2.13) 
     activesupport (= 3.2.13) 
    activesupport (3.2.13) 
     i18n (= 0.6.1) 
     multi_json (~> 1.0) 
    arel (3.0.2) 
    builder (3.0.0) 
    capybara (2.0.3) 
     mime-types (>= 1.16) 
     nokogiri (>= 1.3.3) 
     rack (>= 1.0.0) 
     rack-test (>= 0.5.4) 
     selenium-webdriver (~> 2.0) 
     xpath (~> 1.0.0) 
    childprocess (0.3.9) 
     ffi (~> 1.0, >= 1.0.11) 
    coderay (1.0.9) 
    erubis (2.7.0) 
    fastercsv (1.5.5) 
    ffi (1.9.0) 
    hike (1.2.3) 
    i18n (0.6.1) 
    journey (1.0.4) 
    jquery-rails (2.0.3) 
     railties (>= 3.1.0, < 5.0) 
     thor (~> 0.14) 
    json (1.8.0) 
    mail (2.5.4) 
     mime-types (~> 1.16) 
     treetop (~> 1.4.8) 
    metaclass (0.0.1) 
    mime-types (1.24) 
    mocha (0.13.3) 
     metaclass (~> 0.0.1) 
    multi_json (1.7.9) 
    mysql2 (0.3.13) 
    net-ldap (0.3.1) 
    nokogiri (1.5.10) 
    polyglot (0.3.3) 
    rack (1.4.5) 
    rack-cache (1.2) 
     rack (>= 0.4) 
    rack-openid (1.3.1) 
     rack (>= 1.1.0) 
     ruby-openid (>= 2.1.8) 
    rack-ssl (1.3.3) 
     rack 
    rack-test (0.6.2) 
     rack (>= 1.0) 
    rails (3.2.13) 
     actionmailer (= 3.2.13) 
     actionpack (= 3.2.13) 
     activerecord (= 3.2.13) 
     activeresource (= 3.2.13) 
     activesupport (= 3.2.13) 
     bundler (~> 1.0) 
     railties (= 3.2.13) 
    railties (3.2.13) 
     actionpack (= 3.2.13) 
     activesupport (= 3.2.13) 
     rack-ssl (~> 1.3.2) 
     rake (>= 0.8.7) 
     rdoc (~> 3.4) 
     thor (>= 0.14.6, < 2.0) 
    rake (10.1.0) 
    rdoc (3.12.2) 
     json (~> 1.4) 
    rmagick (2.13.2) 
    ruby-openid (2.2.3) 
    rubyzip (0.9.9) 
    selenium-webdriver (2.35.0) 
     childprocess (>= 0.2.5) 
     multi_json (~> 1.0) 
     rubyzip 
     websocket (~> 1.0.4) 
    shoulda (3.3.2) 
     shoulda-context (~> 1.0.1) 
     shoulda-matchers (~> 1.4.1) 
    shoulda-context (1.0.2) 
    shoulda-matchers (1.4.1) 
     activesupport (>= 3.0.0) 
    sprockets (2.2.2) 
     hike (~> 1.2) 
     multi_json (~> 1.0) 
     rack (~> 1.0) 
     tilt (~> 1.1, != 1.3.0) 
    thor (0.18.1) 
    tilt (1.4.1) 
    treetop (1.4.15) 
     polyglot 
     polyglot (>= 0.3.1) 
    tzinfo (0.3.37) 
    websocket (1.0.7) 
    xpath (1.0.0) 
     nokogiri (~> 1.3) 
    yard (0.8.7) 

PLATFORMS 
    ruby 

DEPENDENCIES 
    activerecord-jdbc-adapter (= 1.2.5) 
    activerecord-jdbcmysql-adapter 
    builder (= 3.0.0) 
    capybara (~> 2.0.0) 
    coderay (~> 1.0.9) 
    fastercsv (~> 1.5.0) 
    i18n (~> 0.6.0) 
    jquery-rails (~> 2.0.2) 
    mocha (~> 0.13.3) 
    mysql2 (~> 0.3.11) 
    net-ldap (~> 0.3.1) 
    nokogiri (< 1.6.0) 
    rack-openid 
    rails (= 3.2.13) 
    rdoc (>= 2.4.2) 
    rmagick (>= 2.0.0) 
    ruby-openid (~> 2.2.3) 
    shoulda (~> 3.3.2) 
    yard 


    [1]: http://i.stack.imgur.com/Jhcpo.png 

답변

0

참조 -

1 Phusion 여객와 아파치를 설치 단계에 따라 http://www.modrails.com/documentation/Users%20guide%20Apache.html :

[email protected]:~gem install passenger 
  1. 은 $ PATH에

    에 젬 bin 디렉토리를 추가합니다.

    /etc/bash.bashrc- 최종 수출 PATH = $ PATH에 쓰기 :

    B /home/user/.rvm/gems/ruby-1.9.3-p448/bin. export PATH=$PATH:/home/user/.rvm/gems/ruby-1.9.3-p448/bin

  2. passenger-install-apache2-module

를 실행합니다. 출력 제가 같은 명령을 따른다. 두 개의 파일을 생성 내부의/etc/아파치/개조-가능/ 1 passenger.load 을 LoadModule passenger_module /home/user/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.14/buildout/ 아파치/mod_passenger.so

passenger.conf

PassengerDefaultRuby /home/user/.rvm/wrappers/ruby-1.9.3-p448/ruby PassengerRoot /home/user/.rvm/gems/ruby- 1.9.3-p448/gems/passenger-4.0.14

  1. 사용자 @ 사용자 : ~ 여객 메모리 통계

아파치 설정

  1. 사용자 @ 사용자 : ~ LN -s/홈/사용자/레드 마인 -2.3/public/var/www/redmine

  2. 사용자 @ 사용자 : ~ sudo gedit/etc/apache2/sites-avai lable가/

    RailsEnv 개발 RackBaseURI/레드 마인 옵션 색인 FollowSymLinks를 MultiViews를 에 AllowOverride 모든 주문 허용 기본적 는 "/ 레드 마인"

    '사용자 @ 사용자의 모든 적인 SetEnv RAILS_RELATIVE_URL_ROOT에서 허용 거부 : ~ sudo 서비스 apache2 다시 시작

    [email protected]:~firefox http://localhost/redmine` 
    
0

봅니다 들러의 이전 버전을 제거합니다.

+0

예 제거되었습니다. 이제는 bundler-1.3.5가 여전히 오류를 알 수 없으므로 어디에서 1.0.15 ?? – guny

0

gem uninstall bundler 

을 시도하고 당신이 가지고있는 모든 들러 버전을 제거합니다. 이 후

다시 들러를 설치합니다.

gem install bundler -v 1.0.21 

나는이 작품이 당신에게 희망이된다.

+0

여전히 동일한 오류가 발생하지 않을 것입니다. 응용 프로그램이 시작 중에 (즉 config/environment.rb 평가 중) 종료되었습니다. 오류 메시지는 아래에서 확인할 수 있습니다. 이 문제를 해결하려면 오류 메시지의 지침을 따르십시오. 오류 메시지 : Redmine을 사용하려면 Bundler 1.0.21 (1.0.15 사용)이 필요합니다. 'gem install bundler'로 최신 버전을 설치하십시오. 응용 프로그램 루트 : /usr/share/redmine – guny

+0

어떻게 bundler 1.0.15 참조가 좋을까요? – guny

+0

Redmine에서는 preinitializer.rb 파일에서 bundler 1.0.21에 대한 참조를 찾을 수 있습니다. 'if Gem :: Version.new (Bundler :: VERSION) kamusett

관련 문제