■事前準備(必要なパッケージ追加)
yum update -y
rpm -Uvh http://fr2.rpmfind.net/linux/dag/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
yum -y install gcc make zlib-devel libyaml-devel httpd-devel openssl-devel curl-devel gcc-c++ sqlite* mysql* postgresql* ImageMagick*
■rubyインストール
mkdir ruby
cd ruby/
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
tar xvf ruby-1.9.3-p194.tar.bz2
cd ruby-1.9.3-p194
./configure
make
make install
ruby -v
cd /root/ruby/ruby-1.9.3-p194/ext/zlib
ruby extconf.rb
make
make install
cd /root/ruby/ruby-1.9.3-p194/ext/openssl
ruby extconf.rb
make
make install
■gemインストール
cd ..
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.24.tgz
tar xvf rubygems-1.8.24.tgz
cd rubygems-1.8.24
ruby setup.rb
gem install psych
gem -v
gem install bundle
gem install rails
gem install mocha
gem install rmagick
bundle install
■redmineインストール
cd ..
wget http://rubyforge.org/frs/download.php/76193/redmine-1.4.3.tar.gz
tar xvf redmine-1.4.3.tar.gz
mv redmine-1.4.3 redmine
mv redmine /usr/local/
cd /usr/local/redmine
cp config/database.yml.example config/database.yml
vi config/database.yml
---
production:
adapter: sqlite3
dbfile: db/redmine.db
timeout: 5000
---
rake generate_session_store
rake db:migrate RAILS_ENV=production
rake redmine:load_default_data RAILS_ENV=production
script/server -e production
0 件のコメント:
コメントを投稿