Redmine安装:错误 [英] Redmine installation : Error

查看:49
本文介绍了Redmine安装:错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完成了 redmine 的所有安装步骤并配置了 apache

I finish all the installtion step for redmine and configure apache

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

在运行但 localhost/redmine 时出现错误,如下所示!

while runing but localhost/redmine i am getting error as shown below !

由于错误消息错误消息:Redmine 需要 Bundler 1.0.21(您使用的是 1.0.15).请使用 gem install bundler 安装更新版本.我安装 bundler 版本

As ber the error message "Error message: Redmine requires Bundler 1.0.21 (you're using 1.0.15). Please install a newer version with gem install bundler. "i install bundler version

 sree@sree:/$ sudo gem install bundler -v 1.0.21
    Successfully installed bundler-1.0.21

仍然出现同样的错误

***************************************************************************
sree@sree:/$ 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

推荐答案

参考 - http://www.modrails.com/documentation/Users%20guide%20Apache.html按照步骤

1 使用 Phusion Passenger 安装 apache:

1 Install apache with Phusion Passenger:

user@user:~gem install passenger

  1. 将 RubyGems bin 目录添加到您的 $PATH

  1. add the RubyGems bin directory to your $PATH

一个.

/etc/bash.bashrc- 写在最后 export PATH=$PATH:/home/user/.rvm/gems/ruby-1.9.3-p448/bin

/etc/bash.bashrc- write in end export PATH=$PATH:/home/user/.rvm/gems/ruby-1.9.3-p448/bin

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

passenger-install-apache2-module

一个.按照说明作为输出一世.在/etc/apache2/mods-available/中创建两个文件1. 乘客.负载LoadModulepassenger_module/home/user/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.14/buildout/apache2/mod_passenger.so

a. Follow the instruction as output i. Create two files inside /etc/apache2/mods-available/ 1. passenger.load LoadModule passenger_module /home/user/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.14/buildout/apache2/mod_passenger.so

passenger.conf

passenger.conf

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

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. user@user:~passenger-memory-stats

  1. user@user:~passenger-memory-stats

Apache 配置

  1. user@user:~ln –s/home/user/redmine-2.3/public/var/www/redmine

  1. user@user:~ln –s /home/user/redmine-2.3/public /var/www/redmine

user@user:~sudo gedit/etc/apache2/sites-available/default

user@user:~sudo gedit /etc/apache2/sites-available/default

RailsEnv 开发RackBaseURI/redmine选项索引 FollowSymLinks MultiViews允许覆盖所有命令允许,拒绝所有人都允许SetEnv RAILS_RELATIVE_URL_ROOT /redmine"

RailsEnv development RackBaseURI /redmine Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow, deny Allow from all SetEnv RAILS_RELATIVE_URL_ROOT "/redmine"

`user@user:~sudo service apache2 restart

`user@user:~sudo service apache2 restart

user@user:~firefox http://localhost/redmine`

这篇关于Redmine安装:错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆