redmine在windows上安装初体验
来源:百度文库 编辑:神马文学网 时间:2024/05/10 20:28:40
16:31 2010-4-22
参考资料:http://www.redmine.org/wiki/1/RedmineInstall
1、检出源码
D:\02_study\17-redmine\redmine
http://redmine.rubyforge.org/svn/tags/0.9.3
--偶直接下载源码:D:\02_study\17-redmine\redmine-0.9.3
2、创建数据库
Enter password: ***
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.42-community MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database redmine character set utf8;
Query OK, 1 row affected (0.03 sec)
mysql> create user'redmine'@'localhost' identified by '123';
Query OK, 0 rows affected (0.01 sec)
mysql> grant all privileges on redmine.* to'redmine'@'localhost';
Query OK, 0 rows affected (0.03 sec)
3、Copy config/database.yml.example to config/database.yml ,并修改
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password:123
encoding: utf8
4、Generate a session store secret.
D:\>cd D:\02_study\17-redmine\redmine-0.9.3
D:\02_study\17-redmine\redmine-0.9.3>set RAILS_ENV=production rake config/initializers/session_store.rb
C:\Documents and Settings\shulihua>rake db:migrate
'rake' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Documents and Settings\shulihua>RAILS_ENV=production rake db:migrate
'RAILS_ENV' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
放弃
17:24 2010-4-22
参考资料:http://movingboy.javaeye.com/blog/344463
1、安装ruby
运行rubyinstaller-1.8.7-p249-rc2.exe
C:\Documents and Settings\shulihua>ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
2、安装rubygems
下载RubyGems 1.3.1 :http://rubyforge.org/frs/download.php/45906/rubygems-1.3.1.zip
D:\02_study\17-redmine\rubygems-1.3.1>ruby setup.rb
mkdir -p C:/Ruby/lib/ruby/site_ruby/1.8
mkdir -p C:/Ruby/bin
install -c -m 0644 rbconfig/datadir.rb C:/Ruby/lib/ruby/site_ruby/1.8/rbconfig/d
......
RubyGems installed the following executables:
C:/Ruby/bin/gem
If `gem` was installed by a previous RubyGems installation, you may need
to remove it by hand.
3、安装rake
D:\02_study\17-redmine\rubygems-1.3.1>gem install rake
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...
4、安装Rails
下载:Rails 2.2.2 :http://rubyforge.org/frs/download.php/47183/rails-2.2.2.zip
D:\02_study\17-redmine\rails-2.2.2\rails>gem install rails -v=2.2.2 --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out (http://gems.rubyforge.org/gems/activesupport-2.2.2.gem)
--有error
15:02 2010-4-23
接上文:尝试直接安装:gem install rails
D:\02_study\17-redmine\rails-2.2.2\rails>gem install rails
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out (http://gems.rubyforge.org/gems/activesupport-2.3.5.gem)
直接到网站上下载了gem文件再安装:
D:\02_study\17-redmine>gem install rails-2.3.5.gem
Successfully installed activesupport-2.3.5
Successfully installed activerecord-2.3.5
Successfully installed rack-1.0.1
Successfully installed actionpack-2.3.5
Successfully installed actionmailer-2.3.5
Successfully installed activeresource-2.3.5
Successfully installed rails-2.3.5
7 gems installed
Installing ri documentation for activesupport-2.3.5...
Installing ri documentation for activerecord-2.3.5...
Installing ri documentation for rack-1.0.1...
Installing ri documentation for actionpack-2.3.5...
Installing ri documentation for actionmailer-2.3.5...
Installing ri documentation for activeresource-2.3.5...
Installing RDoc documentation for activesupport-2.3.5...
Installing RDoc documentation for activerecord-2.3.5...
Installing RDoc documentation for rack-1.0.1...
Installing RDoc documentation for actionpack-2.3.5...
Installing RDoc documentation for actionmailer-2.3.5...
Installing RDoc documentation for activeresource-2.3.5...
5、6、7、12:安装配置mysql
上面已操作
13、在Redmine 目录下运行
D:\02_study\17-redmine\redmine-0.9.3>rake db:migrate RAILS_ENV="production"
(in D:/02_study/17-redmine/redmine-0.9.3)
rake aborted!
syntax error on line 14, col 2: ` encoding: utf8'
搜得解决办法:In the config/database.yml file there needs to be a space before the password
故将config/database.yml ,修改password(密码前加空格)
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: 123
encoding: utf8
再运行:
D:\02_study\17-redmine\redmine-0.9.3>rake db:migrate RAILS_ENV="production"
(in D:/02_study/17-redmine/redmine-0.9.3)
rake aborted!
A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb
(See full trace by running task with --trace)
解决办法:Generate a session store secret. This is required on the trunk version of Redmine at r2493 or above and the released 0.8.7 version or above.
Redmine stores session data in cookies by default, which requires a secret to be generated. This can be done by running:
执行:
D:\02_study\17-redmine\redmine-0.9.3>rake config/initializers/session_store.rb
(in D:/02_study/17-redmine/redmine-0.9.3)
再运行:
D:\02_study\17-redmine\redmine-0.9.3>rake db:migrate RAILS_ENV="production"
(in D:/02_study/17-redmine/redmine-0.9.3)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install
the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql
(See full trace by running task with --trace)
运行gem install mysql
再运行
D:\02_study\17-redmine\redmine-0.9.3>rake db:migrate RAILS_ENV="production"
......
== AddIndexOnChangesetsScmid: migrating ======================================
-- add_index(:changesets, [:repository_id, :scmid], {:name=>:changesets_repos_sc
mid})
-> 0.0937s
== AddIndexOnChangesetsScmid: migrated (0.0937s) =============================
,,,,貌似成功了,接着下一步
14、运行
D:\02_study\17-redmine\redmine-0.9.3>rake redmine:load_default_data RAILS_ENV="p
roduction"
(in D:/02_study/17-redmine/redmine-0.9.3)
Select language: bg, bs, ca, cs, da, de, el, en, es, fi, fr, gl, he, hr, hu, id,
it, ja, ko, lt, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sr, sv, th, tr, uk, vi,
zh, zh-TW [en] zh
====================================
Default configuration data loaded.
15、运行redmine
D:\02_study\17-redmine\redmine-0.9.3>ruby script/server webrick -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting onhttp://0.0.0.0:3000
在IE中访问:http://localhost:3000/
成功
16、用默认的用户admin(密码admin)登录
参考资料:http://www.redmine.org/wiki/1/RedmineInstall
1、检出源码
D:\02_study\17-redmine\redmine
http://redmine.rubyforge.org/svn/tags/0.9.3
--偶直接下载源码:D:\02_study\17-redmine\redmine-0.9.3
2、创建数据库
Enter password: ***
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.42-community MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database redmine character set utf8;
Query OK, 1 row affected (0.03 sec)
mysql> create user'redmine'@'localhost' identified by '123';
Query OK, 0 rows affected (0.01 sec)
mysql> grant all privileges on redmine.* to'redmine'@'localhost';
Query OK, 0 rows affected (0.03 sec)
3、Copy config/database.yml.example to config/database.yml ,并修改
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password:123
encoding: utf8
4、Generate a session store secret.
D:\>cd D:\02_study\17-redmine\redmine-0.9.3
D:\02_study\17-redmine\redmine-0.9.3>set RAILS_ENV=production rake config/initializers/session_store.rb
C:\Documents and Settings\shulihua>rake db:migrate
'rake' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Documents and Settings\shulihua>RAILS_ENV=production rake db:migrate
'RAILS_ENV' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
放弃
17:24 2010-4-22
参考资料:http://movingboy.javaeye.com/blog/344463
1、安装ruby
运行rubyinstaller-1.8.7-p249-rc2.exe
C:\Documents and Settings\shulihua>ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
2、安装rubygems
下载RubyGems 1.3.1 :http://rubyforge.org/frs/download.php/45906/rubygems-1.3.1.zip
D:\02_study\17-redmine\rubygems-1.3.1>ruby setup.rb
mkdir -p C:/Ruby/lib/ruby/site_ruby/1.8
mkdir -p C:/Ruby/bin
install -c -m 0644 rbconfig/datadir.rb C:/Ruby/lib/ruby/site_ruby/1.8/rbconfig/d
......
RubyGems installed the following executables:
C:/Ruby/bin/gem
If `gem` was installed by a previous RubyGems installation, you may need
to remove it by hand.
3、安装rake
D:\02_study\17-redmine\rubygems-1.3.1>gem install rake
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...
4、安装Rails
下载:Rails 2.2.2 :http://rubyforge.org/frs/download.php/47183/rails-2.2.2.zip
D:\02_study\17-redmine\rails-2.2.2\rails>gem install rails -v=2.2.2 --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out (http://gems.rubyforge.org/gems/activesupport-2.2.2.gem)
--有error
15:02 2010-4-23
接上文:尝试直接安装:gem install rails
D:\02_study\17-redmine\rails-2.2.2\rails>gem install rails
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out (http://gems.rubyforge.org/gems/activesupport-2.3.5.gem)
直接到网站上下载了gem文件再安装:
D:\02_study\17-redmine>gem install rails-2.3.5.gem
Successfully installed activesupport-2.3.5
Successfully installed activerecord-2.3.5
Successfully installed rack-1.0.1
Successfully installed actionpack-2.3.5
Successfully installed actionmailer-2.3.5
Successfully installed activeresource-2.3.5
Successfully installed rails-2.3.5
7 gems installed
Installing ri documentation for activesupport-2.3.5...
Installing ri documentation for activerecord-2.3.5...
Installing ri documentation for rack-1.0.1...
Installing ri documentation for actionpack-2.3.5...
Installing ri documentation for actionmailer-2.3.5...
Installing ri documentation for activeresource-2.3.5...
Installing RDoc documentation for activesupport-2.3.5...
Installing RDoc documentation for activerecord-2.3.5...
Installing RDoc documentation for rack-1.0.1...
Installing RDoc documentation for actionpack-2.3.5...
Installing RDoc documentation for actionmailer-2.3.5...
Installing RDoc documentation for activeresource-2.3.5...
5、6、7、12:安装配置mysql
上面已操作
13、在Redmine 目录下运行
D:\02_study\17-redmine\redmine-0.9.3>rake db:migrate RAILS_ENV="production"
(in D:/02_study/17-redmine/redmine-0.9.3)
rake aborted!
syntax error on line 14, col 2: ` encoding: utf8'
搜得解决办法:In the config/database.yml file there needs to be a space before the password
故将config/database.yml ,修改password(密码前加空格)
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: 123
encoding: utf8
再运行:
D:\02_study\17-redmine\redmine-0.9.3>rake db:migrate RAILS_ENV="production"
(in D:/02_study/17-redmine/redmine-0.9.3)
rake aborted!
A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb
(See full trace by running task with --trace)
解决办法:Generate a session store secret. This is required on the trunk version of Redmine at r2493 or above and the released 0.8.7 version or above.
Redmine stores session data in cookies by default, which requires a secret to be generated. This can be done by running:
执行:
D:\02_study\17-redmine\redmine-0.9.3>rake config/initializers/session_store.rb
(in D:/02_study/17-redmine/redmine-0.9.3)
再运行:
D:\02_study\17-redmine\redmine-0.9.3>rake db:migrate RAILS_ENV="production"
(in D:/02_study/17-redmine/redmine-0.9.3)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install
the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql
(See full trace by running task with --trace)
运行gem install mysql
再运行
D:\02_study\17-redmine\redmine-0.9.3>rake db:migrate RAILS_ENV="production"
......
== AddIndexOnChangesetsScmid: migrating ======================================
-- add_index(:changesets, [:repository_id, :scmid], {:name=>:changesets_repos_sc
mid})
-> 0.0937s
== AddIndexOnChangesetsScmid: migrated (0.0937s) =============================
,,,,貌似成功了,接着下一步
14、运行
D:\02_study\17-redmine\redmine-0.9.3>rake redmine:load_default_data RAILS_ENV="p
roduction"
(in D:/02_study/17-redmine/redmine-0.9.3)
Select language: bg, bs, ca, cs, da, de, el, en, es, fi, fr, gl, he, hr, hu, id,
it, ja, ko, lt, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sr, sv, th, tr, uk, vi,
zh, zh-TW [en] zh
====================================
Default configuration data loaded.
15、运行redmine
D:\02_study\17-redmine\redmine-0.9.3>ruby script/server webrick -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting onhttp://0.0.0.0:3000
在IE中访问:http://localhost:3000/
成功
16、用默认的用户admin(密码admin)登录
redmine在windows上安装初体验
如何在局域网安装Redmine
在windows上安装CVS
在windows上安装CVS
在Windows上安装Squid - Windows - 知道越多越多不知道
如何安装redmine
在WINDOWS XP系统上安装了SQL server服务器版
在WINDOWS XP系统上安装了SQL server服务器版
windows 7 汉化版最新安装体验
windows 7 汉化版最新安装体验
在bluehost上搭建redmine - Googol的日志 - 网易博客
首发翻译 简单教程:在 PC 上体验 Windows Phone 7
mysql-5.1.37-NOINSTALL版本在Windows系统上的配置安装
Redmine
上网本上安装Windows 7
windows 7 汉化版最新安装体验 - WINDOWS XP - 360百科
在Windows XP下安装Windows2000- -
Trac在Windows下的安装配置
在Windows XP下安装Windows2000- -017
Oracle10g RAC with ocfs在windows安装
在WINDOWS下安装MRTG全攻略
在WINDOWS下安装MRTG全攻略
在Windows XP下安装Windows2000- -A
Windows 安装