我完成了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, < 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 :(得分:0)
尝试删除旧版本的bundler。
答案 1 :(得分:0)
尝试
gem uninstall bundler
并删除所有的Bundler版本。
在此之后,再次安装捆绑包。
gem install bundler -v 1.0.21
我希望这对你有用。
答案 2 :(得分:0)
参考 - http://www.modrails.com/documentation/Users%20guide%20Apache.html 按照步骤
1使用Phusion Passenger安装apache:
user@user:~gem install passenger
将RubyGems bin目录添加到$ PATH
一个。
/etc/bash.bashrc-在最终导出中写入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
passenger-install-apache2-module
一个。按照说明作为输出 一世。在/ etc / apache2 / mods-available /中创建两个文件 乘客 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
用户@用户:〜乘客存储器统计
Apache配置
user @ user:~ln -s /home/user/redmine-2.3/public / var / www / redmine
user @ user:~sudo gedit / etc / apache2 / sites-available / default
RailsEnv开发 RackBaseURI / redmine 选项索引FollowSymLinks MultiViews AllowOverride All 订单允许,拒绝 允许所有人 SetEnv RAILS_RELATIVE_URL_ROOT“/ redmine”
`user @ user:~sudo service apache2 restart
user@user:~firefox http://localhost/redmine`