Redmine安装:错误

我完成了redmine的所有安装步骤并配置了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我收到错误,如下所示 在此处输入图像描述


至于错误消息“ 错误消息:Redmine需要Bundler 1.0.21(您使用的是1.0.15)。请使用gem install bundler安装更新的版本。 ”我安装了捆绑版本

  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,  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,  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 (= 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 

尝试删除旧版本的bundler。

尝试

 gem uninstall bundler 

并删除所有的Bundler版本。

在此之后,再次安装捆绑包。

 gem install bundler -v 1.0.21 

我希望这对你有用。

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

1使用Phusion Passenger安装apache:

 user@user:~gem install passenger 
  1. 将RubyGems bin目录添加到$ PATH

    一个。

    /etc/bash.bashrc-在end export中写入PATH = $ PATH:/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

一个。 按照指令输出i。 在/ etc / apache2 / mods-available / 1中创建两个文件.ss​​enger.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

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. 用户名@用户:〜乘客内存统计

Apache配置

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

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

    RailsEnv开发RackBaseURI / redmine选项索引FollowSymLinks MultiViews AllowOverride All Order允许,拒绝允许所有SetEnv RAILS_RELATIVE_URL_ROOT“/ redmine”

    `user @ user:~sudo service apache2 restart

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