安装

下载安装包,解压缩

不安装rmagick,mysql,postgresql

$ bundle install --without development test rmagick mysql postgresql

 

$ bundle install

出错信息

Gem files will remain installed in /home/admin/.bundler/tmp/6155/gems/mysql2-0.3.11 for inspection.
Results logged to /home/admin/.bundler/tmp/6155/gems/mysql2-0.3.11/ext/mysql2/gem_make.out
An error occured while installing mysql2 (0.3.11), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling.

$ sudo yum install mysql-devel

http://stackoverflow.com/questions/3608287/installing-mysql2-gem-for-rails-3

 

出错信息

Gem files will remain installed in /home/admin/.bundler/tmp/12842/gems/pg-0.14.0 for inspection.
Results logged to /home/admin/.bundler/tmp/12842/gems/pg-0.14.0/ext/gem_make.out
An error occured while installing pg (0.14.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.14.0'` succeeds before bundling.

在Gemfile中删除postgresql相关的依赖

 

出错信息

Gem files will remain installed in /home/admin/.bundler/tmp/18797/gems/rmagick-2.13.1 for inspection.
Results logged to /home/admin/.bundler/tmp/18797/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
An error occured while installing rmagick (2.13.1), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.

Ubuntu

$ apt-get install imagemagick libmagickwand-dev

http://stackoverflow.com/questions/5201689/rmagick-gem-install-cant-find-magick-config

 

设置

$ cp database.yml.example database.yml

修改config/database.yml,设置production环境使用sqlite3

 

$ rake generate_secret_token

$ RAILS_ENV=production rake db:migrate

$ RAILS_ENV=production rake redmine:load_default_data

 

启动

$ ruby script/rails server webrick -e production

 

参考

http://www.redmine.org/projects/redmine/wiki/RedmineInstall

相关文章:

  • 2021-04-27
  • 2022-01-18
  • 2021-11-17
  • 2021-12-02
  • 2022-01-17
  • 2021-12-03
  • 2021-12-14
猜你喜欢
  • 2021-09-26
  • 2021-07-04
  • 2022-12-23
  • 2021-07-09
  • 2021-05-04
  • 2021-04-27
相关资源
相似解决方案