Liunx RedHat 9 下面Redmin的安装手册
# wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
# cd rubygems-1.3.5
# ruby setup.rb
3、Rake安装
#
gem install rake
//
直接使用
gem
命令安装
rake.
//
也可以下载安装地址:
http://rubyforge.org/frs/download.php/56872/rake-0.8.7.tgz
4、Ruby on Rails
# gem install rails
(注意:如果安装不成功,可能是RubyGems版本太低,可以用gem -v update 升级)
5、Redmine安装
# wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz
# tar zxvf redmine-0.8.4.tar.gz
# mv redmine-0.8.4 /usr/local/redmine
# cd /usr/local/redmine/config
设置数据库参数
# cp database.yml.example database.yml
# vi database.yml
production:
adapter: mysql
database:redmine
host: localhost
username: redmineuser
password: redminepw
encoding: utf8
保存退出
:wq
# wget http://download.mysql.cn/download_file/gz/5.0/mysql-5.0.22.tar.gz
# tar zxvf mysql-5.0.22.tar.gz
# cd mysql-5.0.22
# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data/ --without-innodb --without-debug --with-extra-charsets=gbk --with-extra-charsets=all --enable-assembler --with-pthread --enable-thread-safe-client --with-client-ldflags=-all-static
配置成功出现“Thank you for choosing MySQL!”提示。
# make && make install
create database redmine default character set utf8;
redmine
.* to root;
redmine
.* to root@localhost;
redmine
.* to redmineuser;
redmine
.* to redmineuser @localhost;
(注意此时的目录一定要在
redmine/
config
里,不然会出错,本文后面有错误信息。)
# rake db:migrate RAILS_ENV="production" //
创
建
表
rake redmine:load_default_data RAILS_ENV="production" /
/
加
载
默
认
配置
启
动
WEB
服
务
ruby script/server
webrick -e production
或
# ruby /usr/local/redmine/script/server webrick -e production
# ruby script/server webrick -e production
-d
或
# ruby /usr/local/redmine/script/server webrick -e production –d