cogito ergo sum
CentOS 5.5にRedmine 1.0.1をインストール
CentOS 5.5にRedmine 1.01を導入する方法です。
手順概要
1) ソースの展開とコピー
2) 設定ファイルの編集
3) データベースの初期化
4) production DBへのmigrate
5) パーミッションの設定
6) 動かす
前提条件
mysql、mysql-develが導入されていること(UTF8)
redmine用のデータベースが作成されていること
Rubyが導入されいること (1.8.7導入手順)
Ruby Gemsが導入されていること (1.3.7導入手順)
Railsが導入されていること (2.3.5導入手順)
Rackが導入されいていること (1.0.1導入手順 )
1) ソースの展開とコピー
# wget http://rubyforge.org/frs/download.php/72201/redmine-1.0.1.tar.gz # tar zxvf redmine-1.0.1.tar.gz # cp -r redmine-1.0.1 /home/redmine
2) 設定ファイルの編集
# cd /home/redmine/ # cp config/database.yml.example config/database.yml # vi config/database.yml production: adapter: mysql database: redmine host: localhost username: ********* password: *********
*の部分はmysqlの設定にあわせる。
3) データベースの初期化
# rake generate_session_store
4) production DBへのmigrate
# RAILS_ENV=production rake db:migrate Select language: bg, bs, ca, cs, da, de, el, en, en-GB, es, eu, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en]
5) パーミッションの設定
# chown -R redmine:redmine files log tmp public/plugin_assets # chmod -R 755 files log tmp public/plugin_assets
6) 動かす
# /usr/bin/mongrel_rails start -d -c /home/redmine/ -e production -p 80
※) mysql-develが入ってないときに表示されるエラー
# RAILS_ENV=production rake db:migrate
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for mysql_ssl_set()... no
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-mysql-config
--without-mysql-config
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
コメントを残す