Redmine/インストール
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。
#contents
Redmineのインストールは、Rubyを入れたりmongrelってのを入...
** ruby のインストール [#m836ba3a]
[root@www ~]# yum install ruby rdoc ruby-devel
Total download size: 2.6 M
Is this ok [y/N]: y
Complete!
[root@www ~]# rpm -qa | grep ruby
ruby-1.8.5-5.el5_4.8
ruby-libs-1.8.5-5.el5_4.8
ruby-rdoc-1.8.5-5.el5_4.8
ruby-irb-1.8.5-5.el5_4.8
ruby-devel-1.8.5-5.el5_4.8
[root@www ~]#
[root@centos redmine-1.0.0]# yum install mysql-devel
** checkinstall のインストール [#mffa9f0b]
[root@www ~]# yum install checkinstall
これがNGの場合は、rpmforgeがインストールされてない可能性...
** rubygems のインストール [#ha158ce1]
[root@www tmp]# yum install rpm-build
Total download size: 722 k
Is this ok [y/N]: y
Complete!
[root@www tmp]# wget http://rubyforge.org/frs/download.p...
--2010-07-27 10:40:32-- http://rubyforge.org/frs/downlo...
100%[===================================================...
[root@www tmp]# tar xzf rubygems-1.3.5.tgz
[root@www tmp]# cd rubygems-1.3.5
[root@www rubygems-1.3.5]# checkinstall -R "ruby setup.rb"
いろいろ聞いてきますが、基本デフォルトでOK。
checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanche...
This software is released under the GNU GPL.
========================= Installation results =========...
RubyGems 1.3.5 installed
********************************************************...
Done. The new package has been saved to
/usr/src/redhat/RPMS/i386/rubygems-1.3.5-1.i386.rpm
You can install it in your system anytime using:
rpm -i rubygems-1.3.5-1.i386.rpm
********************************************************...
[root@www rubygems-1.3.5]# rpm -Uvh /usr/src/redhat/RPMS...
準備中... ###############################...
1:rubygems ############################...
[root@www rubygems-1.3.5]#
[root@www rubygems-1.3.5]# rpm -qa | grep rubygems
rubygems-1.3.5-1
**rubygems でmongrelをインストール [#jb05525e]
[root@www rubygems-1.3.5]# gem install mongrel
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed gem_plugin-0.2.3
Successfully installed daemons-1.1.0
Successfully installed fastthread-1.0.7
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5
5 gems installed
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for daemons-1.1.0...
Installing ri documentation for fastthread-1.0.7...
Installing ri documentation for cgi_multipart_eof_fix-2....
Installing ri documentation for mongrel-1.1.5...
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for daemons-1.1.0...
Installing RDoc documentation for fastthread-1.0.7...
Installing RDoc documentation for cgi_multipart_eof_fix-...
Installing RDoc documentation for mongrel-1.1.5...
** rubygems でrailsをインストール、稼動確認 [#ua9a9c80]
[root@www rubygems-1.3.5]# cd /tmp/
[root@www tmp]# gem install rails
Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.8
Successfully installed activerecord-2.3.8
Successfully installed rack-1.1.0
Successfully installed actionpack-2.3.8
Successfully installed actionmailer-2.3.8
Successfully installed activeresource-2.3.8
Successfully installed rails-2.3.8
8 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.8...
Installing ri documentation for activerecord-2.3.8...
Installing ri documentation for rack-1.1.0...
Installing ri documentation for actionpack-2.3.8...
Installing ri documentation for actionmailer-2.3.8...
Installing ri documentation for activeresource-2.3.8...
Installing ri documentation for rails-2.3.8...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for activesupport-2.3.8...
Installing RDoc documentation for activerecord-2.3.8...
Installing RDoc documentation for rack-1.1.0...
Installing RDoc documentation for actionpack-2.3.8...
Installing RDoc documentation for actionmailer-2.3.8...
Installing RDoc documentation for activeresource-2.3.8...
Installing RDoc documentation for rails-2.3.8...
[root@www tmp]#
[root@www tmp]# gem list
*** LOCAL GEMS ***
actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (2.3.8)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.0)
fastthread (1.0.7)
gem_plugin (0.2.3)
mongrel (1.1.5)
rack (1.1.0)
rails (2.3.8)
rake (0.8.7)
[root@www tmp]#
[root@www tmp]# rails rails-demo
[root@www tmp]# cd rails-demo/
[root@www rails-demo]#
[root@www rails-demo]# mongrel_rails start -d -p 3000 -e...
** Ruby version is not up-to-date; loading cgi_multipart...
[root@www rails-demo]# nmap localhost
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at ...
Interesting ports on www.masatom.in (127.0.0.1):
Not shown: 1665 closed ports
PORT STATE SERVICE
3000/tcp open ppp
Nmap finished: 1 IP address (1 host up) scanned in 0.099...
[root@www rails-demo]#
port番号3000 でmongrelが起動しました。
** mysql-rubyのインストール [#re1c5831]
[root@centos tmp]# wget http://rubyforge.org/frs/downloa...
[root@centos tmp]# tar xzf mysql-ruby-2.7.7.tar.gz
[root@centos tmp]# cd mysql-ruby-2.7.7
[root@centos mysql-ruby-2.7.7]# ruby extconf.rb --with-m...
checking for mysql_ssl_set()... yes
checking for mysql.h... yes
creating Makefile
[root@centos mysql-ruby-2.7.7]# make
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -DHAVE_MY...
-I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -...
--param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tab...
-D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -...
-fexceptions -fstack-protector --param=ssp-buffer-size=4...
-fasynchronous-unwind-tables -Wall -fno-strict-aliasing ...
mysql.c: In function ‘stmt_execute’:
mysql.c:1393: 警告: ‘t.time_type’ is used uninitialized ...
mysql.c:1406: 警告: ‘t.time_type’ is used uninitialized ...
gcc -shared -L"/usr/lib" -o mysql.so mysql.o -lruby -r...
-lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -lpthre...
[root@centos mysql-ruby-2.7.7]# make install
/usr/bin/install -c -m 0755 mysql.so /usr/lib/ruby/site_...
**redmineのインストール・設定、mysqlのデータベースの作成 ...
***redmineのインストール [#z2652bf5]
[root@centos tmp]# wget http://rubyforge.org/frs/downloa...
Saving to: `redmine-1.0.0.tar.gz'
100%[=======================================>] 4,703,623...
12:38:26 (921 KB/s) - `redmine-1.0.0.tar.gz' を保存しま...
[root@centos tmp]# cd opt
[root@centos opt]# tar xzf /tmp/redmine-1.0.0.tar.gz
[root@centos opt]# cd redmine-1.0.0
*** mysqlのデータベースの作成 [#e67d6182]
[root@centos redmine-1.0.0]# mysql -u root -p
mysql> grant all privileges on redmine.* to redmine iden...
mysql> quit
[root@db ~]# mysql -uredmine -p
Enter password:
mysql> create database redmine;
Query OK, 1 row affected (0.00 sec)
mysql> quit
Bye
[root@centos redmine-1.0.0]# cp -pfr ./config/database.y...
[root@centos redmine-1.0.0]# rake config/initializers/se...
[root@centos redmine-1.0.0]# rake db:migrate RAILS_ENV="...
(in /tmp/redmine-1.0.0)
rake aborted!
RubyGem version error: rack(1.1.0 not ~> 1.0.1)
(See full trace by running task with --trace)
なんだか失敗するみたいなので、メッセージ通り別バージョン...
[root@centos redmine-1.0.0]# gem install rack --version ...
Successfully installed rack-1.0.1
1 gem installed
Installing ri documentation for rack-1.0.1...
Installing RDoc documentation for rack-1.0.1...
[root@centos redmine-1.0.0]#
[root@centos redmine-1.0.0]# rake db:migrate RAILS_ENV="...
[root@centos redmine-1.0.0]# rake redmine:load_default_d...
(in /tmp/redmine-1.0.0)
Select language: bg, bs, ca, cs, da, de, el, en, en-GB, ...
mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sr, sr-CY, sv...
====================================
Default configuration data loaded.
[root@centos redmine-1.0.0]#
[root@db redmine-1.0.0]# mysqlshow redmine -uredmine -p
でテーブルが作られた確認することができます。
***Redmineを起動してみる [#f063ea6a]
[root@centos redmine-1.0.0]# script/server -e production
** Ruby version is not up-to-date; loading cgi_multipart...
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Processing WelcomeController#index (for 192.168.183.1 at...
Parameters: {"action"=>"index", "controller"=>"welcome"}
Rendering template within layouts/base
Rendering welcome/index
Completed in 82ms (View: 30, DB: 13) | 200 OK [http://19...
http://[hostname]:3000
にアクセスして以下のような画面が出てくれば、インストール...
#ref(redmine.png)
admin /admin でログインすることができます。
ここまでインストールは完了です。さいごに Apacheと連係する...
**関連リンク [#w57bda3d]
-[[CentOS5.1にredmineをインストール - cactusman日誌>http:...
----
この記事は
#vote(おもしろかった[1],そうでもない[0])
- この記事は相当古い記事で、いまはインストールもずいぶん...
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
終了行:
// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。
#contents
Redmineのインストールは、Rubyを入れたりmongrelってのを入...
** ruby のインストール [#m836ba3a]
[root@www ~]# yum install ruby rdoc ruby-devel
Total download size: 2.6 M
Is this ok [y/N]: y
Complete!
[root@www ~]# rpm -qa | grep ruby
ruby-1.8.5-5.el5_4.8
ruby-libs-1.8.5-5.el5_4.8
ruby-rdoc-1.8.5-5.el5_4.8
ruby-irb-1.8.5-5.el5_4.8
ruby-devel-1.8.5-5.el5_4.8
[root@www ~]#
[root@centos redmine-1.0.0]# yum install mysql-devel
** checkinstall のインストール [#mffa9f0b]
[root@www ~]# yum install checkinstall
これがNGの場合は、rpmforgeがインストールされてない可能性...
** rubygems のインストール [#ha158ce1]
[root@www tmp]# yum install rpm-build
Total download size: 722 k
Is this ok [y/N]: y
Complete!
[root@www tmp]# wget http://rubyforge.org/frs/download.p...
--2010-07-27 10:40:32-- http://rubyforge.org/frs/downlo...
100%[===================================================...
[root@www tmp]# tar xzf rubygems-1.3.5.tgz
[root@www tmp]# cd rubygems-1.3.5
[root@www rubygems-1.3.5]# checkinstall -R "ruby setup.rb"
いろいろ聞いてきますが、基本デフォルトでOK。
checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanche...
This software is released under the GNU GPL.
========================= Installation results =========...
RubyGems 1.3.5 installed
********************************************************...
Done. The new package has been saved to
/usr/src/redhat/RPMS/i386/rubygems-1.3.5-1.i386.rpm
You can install it in your system anytime using:
rpm -i rubygems-1.3.5-1.i386.rpm
********************************************************...
[root@www rubygems-1.3.5]# rpm -Uvh /usr/src/redhat/RPMS...
準備中... ###############################...
1:rubygems ############################...
[root@www rubygems-1.3.5]#
[root@www rubygems-1.3.5]# rpm -qa | grep rubygems
rubygems-1.3.5-1
**rubygems でmongrelをインストール [#jb05525e]
[root@www rubygems-1.3.5]# gem install mongrel
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed gem_plugin-0.2.3
Successfully installed daemons-1.1.0
Successfully installed fastthread-1.0.7
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5
5 gems installed
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for daemons-1.1.0...
Installing ri documentation for fastthread-1.0.7...
Installing ri documentation for cgi_multipart_eof_fix-2....
Installing ri documentation for mongrel-1.1.5...
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for daemons-1.1.0...
Installing RDoc documentation for fastthread-1.0.7...
Installing RDoc documentation for cgi_multipart_eof_fix-...
Installing RDoc documentation for mongrel-1.1.5...
** rubygems でrailsをインストール、稼動確認 [#ua9a9c80]
[root@www rubygems-1.3.5]# cd /tmp/
[root@www tmp]# gem install rails
Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.8
Successfully installed activerecord-2.3.8
Successfully installed rack-1.1.0
Successfully installed actionpack-2.3.8
Successfully installed actionmailer-2.3.8
Successfully installed activeresource-2.3.8
Successfully installed rails-2.3.8
8 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.8...
Installing ri documentation for activerecord-2.3.8...
Installing ri documentation for rack-1.1.0...
Installing ri documentation for actionpack-2.3.8...
Installing ri documentation for actionmailer-2.3.8...
Installing ri documentation for activeresource-2.3.8...
Installing ri documentation for rails-2.3.8...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for activesupport-2.3.8...
Installing RDoc documentation for activerecord-2.3.8...
Installing RDoc documentation for rack-1.1.0...
Installing RDoc documentation for actionpack-2.3.8...
Installing RDoc documentation for actionmailer-2.3.8...
Installing RDoc documentation for activeresource-2.3.8...
Installing RDoc documentation for rails-2.3.8...
[root@www tmp]#
[root@www tmp]# gem list
*** LOCAL GEMS ***
actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (2.3.8)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.0)
fastthread (1.0.7)
gem_plugin (0.2.3)
mongrel (1.1.5)
rack (1.1.0)
rails (2.3.8)
rake (0.8.7)
[root@www tmp]#
[root@www tmp]# rails rails-demo
[root@www tmp]# cd rails-demo/
[root@www rails-demo]#
[root@www rails-demo]# mongrel_rails start -d -p 3000 -e...
** Ruby version is not up-to-date; loading cgi_multipart...
[root@www rails-demo]# nmap localhost
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at ...
Interesting ports on www.masatom.in (127.0.0.1):
Not shown: 1665 closed ports
PORT STATE SERVICE
3000/tcp open ppp
Nmap finished: 1 IP address (1 host up) scanned in 0.099...
[root@www rails-demo]#
port番号3000 でmongrelが起動しました。
** mysql-rubyのインストール [#re1c5831]
[root@centos tmp]# wget http://rubyforge.org/frs/downloa...
[root@centos tmp]# tar xzf mysql-ruby-2.7.7.tar.gz
[root@centos tmp]# cd mysql-ruby-2.7.7
[root@centos mysql-ruby-2.7.7]# ruby extconf.rb --with-m...
checking for mysql_ssl_set()... yes
checking for mysql.h... yes
creating Makefile
[root@centos mysql-ruby-2.7.7]# make
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -DHAVE_MY...
-I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -...
--param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tab...
-D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -...
-fexceptions -fstack-protector --param=ssp-buffer-size=4...
-fasynchronous-unwind-tables -Wall -fno-strict-aliasing ...
mysql.c: In function ‘stmt_execute’:
mysql.c:1393: 警告: ‘t.time_type’ is used uninitialized ...
mysql.c:1406: 警告: ‘t.time_type’ is used uninitialized ...
gcc -shared -L"/usr/lib" -o mysql.so mysql.o -lruby -r...
-lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -lpthre...
[root@centos mysql-ruby-2.7.7]# make install
/usr/bin/install -c -m 0755 mysql.so /usr/lib/ruby/site_...
**redmineのインストール・設定、mysqlのデータベースの作成 ...
***redmineのインストール [#z2652bf5]
[root@centos tmp]# wget http://rubyforge.org/frs/downloa...
Saving to: `redmine-1.0.0.tar.gz'
100%[=======================================>] 4,703,623...
12:38:26 (921 KB/s) - `redmine-1.0.0.tar.gz' を保存しま...
[root@centos tmp]# cd opt
[root@centos opt]# tar xzf /tmp/redmine-1.0.0.tar.gz
[root@centos opt]# cd redmine-1.0.0
*** mysqlのデータベースの作成 [#e67d6182]
[root@centos redmine-1.0.0]# mysql -u root -p
mysql> grant all privileges on redmine.* to redmine iden...
mysql> quit
[root@db ~]# mysql -uredmine -p
Enter password:
mysql> create database redmine;
Query OK, 1 row affected (0.00 sec)
mysql> quit
Bye
[root@centos redmine-1.0.0]# cp -pfr ./config/database.y...
[root@centos redmine-1.0.0]# rake config/initializers/se...
[root@centos redmine-1.0.0]# rake db:migrate RAILS_ENV="...
(in /tmp/redmine-1.0.0)
rake aborted!
RubyGem version error: rack(1.1.0 not ~> 1.0.1)
(See full trace by running task with --trace)
なんだか失敗するみたいなので、メッセージ通り別バージョン...
[root@centos redmine-1.0.0]# gem install rack --version ...
Successfully installed rack-1.0.1
1 gem installed
Installing ri documentation for rack-1.0.1...
Installing RDoc documentation for rack-1.0.1...
[root@centos redmine-1.0.0]#
[root@centos redmine-1.0.0]# rake db:migrate RAILS_ENV="...
[root@centos redmine-1.0.0]# rake redmine:load_default_d...
(in /tmp/redmine-1.0.0)
Select language: bg, bs, ca, cs, da, de, el, en, en-GB, ...
mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sr, sr-CY, sv...
====================================
Default configuration data loaded.
[root@centos redmine-1.0.0]#
[root@db redmine-1.0.0]# mysqlshow redmine -uredmine -p
でテーブルが作られた確認することができます。
***Redmineを起動してみる [#f063ea6a]
[root@centos redmine-1.0.0]# script/server -e production
** Ruby version is not up-to-date; loading cgi_multipart...
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Processing WelcomeController#index (for 192.168.183.1 at...
Parameters: {"action"=>"index", "controller"=>"welcome"}
Rendering template within layouts/base
Rendering welcome/index
Completed in 82ms (View: 30, DB: 13) | 200 OK [http://19...
http://[hostname]:3000
にアクセスして以下のような画面が出てくれば、インストール...
#ref(redmine.png)
admin /admin でログインすることができます。
ここまでインストールは完了です。さいごに Apacheと連係する...
**関連リンク [#w57bda3d]
-[[CentOS5.1にredmineをインストール - cactusman日誌>http:...
----
この記事は
#vote(おもしろかった[1],そうでもない[0])
- この記事は相当古い記事で、いまはインストールもずいぶん...
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
ページ名: