Windows上安装Redmine-2.6.0的日志(话说这个软件还是不如JIRA好用,话说是不是再尝试一下trac?)

C:\redmine-2.6.0>gem install bundler

Fetching: bundler-1.6.2.gem (100%)

Successfully installed bundler-1.6.2

1 gem installed

Installing ri documentation for bundler-1.6.2...

Installing RDoc documentation for bundler-1.6.2...

C:\redmine-2.6.0>bundle install

Don‘t run Bundler as root. Bundler can ask for sudo if it is needed, and

installing your bundle as root will break this application for all non-root

users on this machine.

Please configure your config/database.yml first

Fetching gem metadata from https://rubygems.org/.........

Resolving dependencies...

Installing rake 10.3.2

Installing i18n 0.6.11

Installing multi_json 1.10.1

Installing activesupport 3.2.19

Installing builder 3.0.4

Installing activemodel 3.2.19

Installing erubis 2.7.0

Installing journey 1.0.4

Installing rack 1.4.5

Installing rack-cache 1.2

Installing rack-test 0.6.2

Installing hike 1.2.3

Installing tilt 1.4.1

Installing sprockets 2.2.3

Installing actionpack 3.2.19

Installing mime-types 1.25.1

Installing polyglot 0.3.5

Installing treetop 1.4.15

Installing mail 2.5.4

Installing actionmailer 3.2.19

Installing arel 3.0.3

Installing tzinfo 0.3.42

Installing activerecord 3.2.19

Installing activeresource 3.2.19

Using bundler 1.6.2

Installing mini_portile 0.6.0

Installing nokogiri 1.6.3.1

Installing xpath 2.0.0

Installing capybara 2.1.0

Installing ffi 1.9.6

Installing childprocess 0.5.5

Installing coderay 1.1.0

Installing rack-ssl 1.3.4

Gem::InstallError: The ‘json‘ native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit

from ‘http://rubyinstaller.org/downloads‘ and follow the instructions

at ‘http://github.com/oneclick/rubyinstaller/wiki/Development-Kit‘

An error occurred while installing json (1.8.1), and Bundler cannot continue.

Make sure that `gem install json -v ‘1.8.1‘` succeeds before bundling.

C:\redmine-2.6.0>c:\DevKit-tdm-32-4.5.2-20111229-1559-sfx\devkitvars.bat

Adding the DevKit to PATH...

C:\redmine-2.6.0>bundle install

Don‘t run Bundler as root. Bundler can ask for sudo if it is needed, and

installing your bundle as root will break this application for all non-root

users on this machine.

Fetching gem metadata from https://rubygems.org/.........

Resolving dependencies...

Using rake 10.3.2

Using i18n 0.6.11

Using multi_json 1.10.1

Using activesupport 3.2.19

Using builder 3.0.4

Using activemodel 3.2.19

Using erubis 2.7.0

Using journey 1.0.4

Using rack 1.4.5

Using rack-cache 1.2

Using rack-test 0.6.2

Using hike 1.2.3

Using tilt 1.4.1

Using sprockets 2.2.3

Using actionpack 3.2.19

Using mime-types 1.25.1

Using polyglot 0.3.5

Using treetop 1.4.15

Using mail 2.5.4

Using actionmailer 3.2.19

Using arel 3.0.3

Using tzinfo 0.3.42

Using activerecord 3.2.19

Using activeresource 3.2.19

Using bundler 1.6.2

Using mini_portile 0.6.0

Using nokogiri 1.6.3.1

Using xpath 2.0.0

Using capybara 2.1.0

Using ffi 1.9.6

Using childprocess 0.5.5

Using coderay 1.1.0

Using rack-ssl 1.3.4

Installing json 1.8.1

Installing rdoc 3.12.2

Installing thor 0.19.1

Installing railties 3.2.19

Installing jquery-rails 3.1.2

Installing metaclass 0.0.4

Installing mocha 1.0.0

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

C:/Ruby193/bin/ruby.exe extconf.rb

checking for ruby/thread.h... no

checking for rb_thread_blocking_region()... yes

checking for rb_wait_for_single_fd()... yes

checking for rb_hash_dup()... yes

checking for rb_intern3()... yes

checking for mysql_query() in -lmysqlclient... no

checking for main() in -lm... yes

checking for mysql_query() in -lmysqlclient... no

checking for main() in -lz... no

checking for mysql_query() in -lmysqlclient... no

checking for main() in -lsocket... no

checking for mysql_query() in -lmysqlclient... no

checking for main() in -lnsl... no

checking for mysql_query() in -lmysqlclient... no

checking for main() in -lmygcc... no

checking for mysql_query() in -lmysqlclient... 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=C:/Ruby193/bin/ruby

--with-mysql-dir

--without-mysql-dir

--with-mysql-include

--without-mysql-include=${mysql-dir}/include

--with-mysql-lib

--without-mysql-lib=${mysql-dir}/lib

--with-mysql-config

--without-mysql-config

--with-mysql-dir

--without-mysql-dir

--with-mysql-include

--without-mysql-include=${mysql-dir}/include

--with-mysql-lib

--without-mysql-lib=${mysql-dir}/lib

--with-mysqlclientlib

--without-mysqlclientlib

--with-mlib

--without-mlib

--with-mysqlclientlib

--without-mysqlclientlib

--with-zlib

--without-zlib

--with-mysqlclientlib

--without-mysqlclientlib

--with-socketlib

--without-socketlib

--with-mysqlclientlib

--without-mysqlclientlib

--with-nsllib

--without-nsllib

--with-mysqlclientlib

--without-mysqlclientlib

--with-mygcclib

--without-mygcclib

--with-mysqlclientlib

--without-mysqlclientlib

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.16 for inspection.

Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.16/ext/mysql2/gem_make.out

An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue.

Make sure that `gem install mysql2 -v ‘0.3.16‘` succeeds before bundling.

参考http://blog.sina.com.cn/s/blog_5791a6400100qkip.html,

解决了mysql2的问题后,

c:\redmine-2.6.0>bundle install

Don‘t run Bundler as root. Bundler can ask for sudo if it is needed, and

installing your bundle as root will break this application for all non-root

users on this machine.

Fetching gem metadata from https://rubygems.org/.........

Resolving dependencies...

Using rake 10.3.2

Using i18n 0.6.11

Using multi_json 1.10.1

Using activesupport 3.2.19

Using builder 3.0.4

Using activemodel 3.2.19

Using erubis 2.7.0

Using journey 1.0.4

Using rack 1.4.5

Using rack-cache 1.2

Using rack-test 0.6.2

Using hike 1.2.3

Using tilt 1.4.1

Using sprockets 2.2.3

Using actionpack 3.2.19

Using mime-types 1.25.1

Using polyglot 0.3.5

Using treetop 1.4.15

Using mail 2.5.4

Using actionmailer 3.2.19

Using arel 3.0.3

Using tzinfo 0.3.42

Using activerecord 3.2.19

Using activeresource 3.2.19

Using bundler 1.6.2

Using mini_portile 0.6.0

Using nokogiri 1.6.3.1

Using xpath 2.0.0

Using capybara 2.1.0

Using ffi 1.9.6

Using childprocess 0.5.5

Using coderay 1.1.0

Using rack-ssl 1.3.4

Using json 1.8.1

Using rdoc 3.12.2

Using thor 0.19.1

Using railties 3.2.19

Using jquery-rails 3.1.2

Using metaclass 0.0.4

Using mocha 1.0.0

Using mysql2 0.3.16

Installing net-ldap 0.3.1

Installing ruby-openid 2.3.0

Installing rack-openid 1.4.2

Installing rails 3.2.19

Installing rbpdf 1.18.2

Installing redcarpet 2.3.0

Installing request_store 1.0.5

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

C:/Ruby193/bin/ruby.exe extconf.rb

checking for Ruby version >= 1.8.5... yes

无效驱动器规格。

Unable to get ImageMagick version

*** 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=C:/Ruby193/bin/ruby

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2.13.3 for inspection.

Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2.13.3/ext/RMagick/gem_make.out

An error occurred while installing rmagick (2.13.3), and Bundler cannot

continue.

Make sure that `gem install rmagick -v ‘2.13.3‘` succeeds before bundling.

C:\Ruby193\lib\ruby\gems\1.9.1\gems\rmagick-2.13.3\ext\RMagick\extconf.rb

if RUBY_PLATFORM =~ /mswin/

abort <<END_MSWIN

+----------------------------------------------------------------------------+

| This rmagick gem is for use only on Linux, BSD, OS X, and similar systems  |

| that have a gnu or similar toolchain installed. The rmagick-win32 gem is a |

| pre-compiled version of RMagick bundled with ImageMagick for use on        |

| Microsoft Windows systems. The rmagick-win32 gem is available on RubyForge.|

| See http://rmagick.rubyforge.org/install-faq.html for more information.    |

+----------------------------------------------------------------------------+

END_MSWIN

end

这个怎么办?

C:\redmine-2.6.0\Gemfile:

platforms :mri, :mingw do

# Optional gem for exporting the gantt to a PNG file, not supported with jruby

group :rmagick do

# RMagick 2 supports ruby 1.9

# RMagick 1 would be fine for ruby 1.8 but Bundler does not support

# different requirements for the same gem on different platforms

gem "rmagick", ">= 2.0.0"

end

我想可以注释掉这里的依赖?

c:\redmine-2.6.0>bundle install

Don‘t run Bundler as root. Bundler can ask for sudo if it is needed, and

installing your bundle as root will break this application for all non-root

users on this machine.

Fetching gem metadata from https://rubygems.org/.........

Resolving dependencies...

Using rake 10.3.2

Using i18n 0.6.11

Using multi_json 1.10.1

Using activesupport 3.2.19

Using builder 3.0.4

Using activemodel 3.2.19

Using erubis 2.7.0

Using journey 1.0.4

Using rack 1.4.5

Using rack-cache 1.2

Using rack-test 0.6.2

Using hike 1.2.3

Using tilt 1.4.1

Using sprockets 2.2.3

Using actionpack 3.2.19

Using mime-types 1.25.1

Using polyglot 0.3.5

Using treetop 1.4.15

Using mail 2.5.4

Using actionmailer 3.2.19

Using arel 3.0.3

Using tzinfo 0.3.42

Using activerecord 3.2.19

Using activeresource 3.2.19

Using bundler 1.6.2

Using mini_portile 0.6.0

Using nokogiri 1.6.3.1

Using xpath 2.0.0

Using capybara 2.1.0

Using ffi 1.9.6

Using childprocess 0.5.5

Using coderay 1.1.0

Using rack-ssl 1.3.4

Using json 1.8.1

Using rdoc 3.12.2

Using thor 0.19.1

Using railties 3.2.19

Using jquery-rails 3.1.2

Using metaclass 0.0.4

Using mocha 1.0.0

Using mysql2 0.3.16

Using net-ldap 0.3.1

Using ruby-openid 2.3.0

Using rack-openid 1.4.2

Using rails 3.2.19

Using rbpdf 1.18.2

Using redcarpet 2.3.0

Using request_store 1.0.5

Installing rubyzip 1.1.6

Installing websocket 1.2.1

Installing selenium-webdriver 2.43.0

Installing shoulda-context 1.0.2

Installing shoulda-matchers 1.4.1

Installing shoulda 3.3.2

Installing yard 0.8.7.6

Your bundle is complete!

Use `bundle show [gemname]` to see where a bundled gem is installed.

然后

set RAILS_ENV=production #注意,之前配置过config/database.yaml!

rake db:migrate

rake redmine:load_default_data

c:\redmine-2.6.0>ruby script/rails server -e production

=> Booting WEBrick

=> Rails 3.2.19 application starting in production on http://0.0.0.0:3000

=> Call with -d to detach

=> Ctrl-C to shutdown server

[2014-11-01 21:02:58] INFO  WEBrick 1.3.1

[2014-11-01 21:03:00] INFO  ruby 1.9.3 (2013-11-22) [i386-mingw32]

[2014-11-01 21:03:00] INFO  WEBrick::HTTPServer#start: pid=7448 port=3000

OK,尝试访问:http://localhost:3000/

ArgumentError (A secret is required to generate an integrity hash for cookie session data. Use config.secret_token = "some secret phrase of at least 30 characte

rs"in config/initializers/secret_token.rb):

actionpack (3.2.19) lib/action_dispatch/middleware/cookies.rb:319:in `ensure_secret_secure‘

actionpack (3.2.19) lib/action_dispatch/middleware/cookies.rb:284:in `initialize‘

actionpack (3.2.19) lib/action_dispatch/middleware/cookies.rb:231:in `new‘

actionpack (3.2.19) lib/action_dispatch/middleware/cookies.rb:231:in `signed‘

actionpack (3.2.19) lib/action_dispatch/middleware/session/cookie_store.rb:50:in `block in unpacked_cookie_data‘

actionpack (3.2.19) lib/action_dispatch/middleware/session/abstract_store.rb:57:in `stale_session_check!‘

actionpack (3.2.19) lib/action_dispatch/middleware/session/cookie_store.rb:48:in `unpacked_cookie_data‘

rack (1.4.5) lib/rack/session/cookie.rb:107:in `extract_session_id‘

actionpack (3.2.19) lib/action_dispatch/middleware/session/abstract_store.rb:53:in `block in extract_session_id‘

actionpack (3.2.19) lib/action_dispatch/middleware/session/abstract_store.rb:57:in `stale_session_check!‘

actionpack (3.2.19) lib/action_dispatch/middleware/session/abstract_store.rb:53:in `extract_session_id‘

rack (1.4.5) lib/rack/session/abstract/id.rb:43:in `load_session_id!‘

rack (1.4.5) lib/rack/session/abstract/id.rb:32:in `[]‘

rack (1.4.5) lib/rack/session/abstract/id.rb:267:in `current_session_id‘

rack (1.4.5) lib/rack/session/abstract/id.rb:273:in `session_exists?‘

rack (1.4.5) lib/rack/session/abstract/id.rb:107:in `exists?‘

rack (1.4.5) lib/rack/session/abstract/id.rb:127:in `load_for_read!‘

rack (1.4.5) lib/rack/session/abstract/id.rb:64:in `has_key?‘

actionpack (3.2.19) lib/action_dispatch/middleware/flash.rb:258:in `ensure in call‘

actionpack (3.2.19) lib/action_dispatch/middleware/flash.rb:259:in `call‘

rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context‘

rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call‘

actionpack (3.2.19) lib/action_dispatch/middleware/cookies.rb:341:in `call‘

activerecord (3.2.19) lib/active_record/query_cache.rb:64:in `call‘

activerecord (3.2.19) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call‘

actionpack (3.2.19) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call‘

activesupport (3.2.19) lib/active_support/callbacks.rb:405:in `_run__727186977__call__662192871__callbacks‘

activesupport (3.2.19) lib/active_support/callbacks.rb:405:in `__run_callback‘

activesupport (3.2.19) lib/active_support/callbacks.rb:385:in `_run_call_callbacks‘

activesupport (3.2.19) lib/active_support/callbacks.rb:81:in `run_callbacks‘

actionpack (3.2.19) lib/action_dispatch/middleware/callbacks.rb:27:in `call‘

actionpack (3.2.19) lib/action_dispatch/middleware/remote_ip.rb:31:in `call‘

actionpack (3.2.19) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call‘

actionpack (3.2.19) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call‘

railties (3.2.19) lib/rails/rack/logger.rb:32:in `call_app‘

railties (3.2.19) lib/rails/rack/logger.rb:16:in `block in call‘

activesupport (3.2.19) lib/active_support/tagged_logging.rb:22:in `tagged‘

railties (3.2.19) lib/rails/rack/logger.rb:16:in `call‘

actionpack (3.2.19) lib/action_dispatch/middleware/request_id.rb:22:in `call‘

rack (1.4.5) lib/rack/methodoverride.rb:21:in `call‘

rack (1.4.5) lib/rack/runtime.rb:17:in `call‘

activesupport (3.2.19) lib/active_support/cache/strategy/local_cache.rb:72:in `call‘

rack (1.4.5) lib/rack/lock.rb:15:in `call‘

actionpack (3.2.19) lib/action_dispatch/middleware/static.rb:63:in `call‘

rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward‘

rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch‘

rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup‘

rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!‘

rack-cache (1.2) lib/rack/cache/context.rb:51:in `call‘

railties (3.2.19) lib/rails/engine.rb:484:in `call‘

railties (3.2.19) lib/rails/application.rb:231:in `call‘

rack (1.4.5) lib/rack/content_length.rb:14:in `call‘

railties (3.2.19) lib/rails/rack/log_tailer.rb:17:in `call‘

rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service‘

C:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service‘

C:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run‘

C:/Ruby193/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread‘

修改configuration.yml!

时间: 2024-10-07 14:06:40

Windows上安装Redmine-2.6.0的日志(话说这个软件还是不如JIRA好用,话说是不是再尝试一下trac?)的相关文章

在windows下安装redmine及相关问题

转载注明出处,adousen的博客http://blog.csdn.net/adousen redmine是一个ticket驱动项目管理工具,与trac等工具相比.它最大特色是能够在一个实例中同一时候管理多个项目. 安装和使用 下载安装文件 为了省去下载和配置的麻烦.没有选择redmine官方的安装文件,而是下载bitmami的一键安装包bitnami-redmine-2.6.0-1https://bitnami.com/stack/redmine,它的主要特色有: 一键安装,无需配置数据库和初

在Windows上安装PyCUDA和Theano

最近几个月在学习Deep Learning,刚开始的时候什么条件都不具备.自己从淘宝上面买了一个GT 240,搭建一个GPU环境用于程序的调试.折腾了几个月,以前PyCUDA总是搭建失败,最近几天才尝试成功.为了学习Deep Learning的源代码,自己又搭建了Theano环境.由于时间紧张,自己概略总结如下,以备忘记. 一. 在Windows上安装PyCUDA 1. 安装条件 (1) pytools库 安装PyCUDA还需要pytools库,而pytools库又需要six,appdirs,d

在windows 上安装bugzilla

在网上找了一些如何在windows 上安装bugzilla的文章,感觉不是太麻烦,就是细节不太清楚,花了几天时间终于在windows 2003上安装好了bugzilla,把我的安装过程详细的写下来,这样大家就不用走弯路了.这篇文章只针对bugzilla 2.18rc3,别的版本我没有试过.另外,我也不懂perl脚本. 一.安装Mysql 1.下载Mysql(http://www.mysql.com/),我下载的是mysql-4.0.15-win.zip,直接安装即可.同时可以下载安装MySQL

Windows上安装MongoDB

Windows上安装MongoDB(2.2版本开始不再支持Windows XP) 1.安装包有zip和msi格式,两者没太大区别,msi其实就是自动解压缩而已,安装目录就是解压缩目录,默认解压到C:\mongodb.要说有区别就是.msi可以用来升级已安装的旧版本.我这里选择解压/安装到D:\MongoDB(Windows的文件系统记录但不区分大小写) 2.将MongoDB添加到环境变量(可选):新建系统变量MONGODB_HOME,值为D:\MongoDB ,在Path变量下添加%MONGOD

PHP 1:在Windows上安装和配置PHP,Apache和My SQL

原文:PHP 1:在Windows上安装和配置PHP,Apache和My SQL 如果你Google一把类似的主题,你会发现相关的文章可以塞满你的硬盘.在这里之所以把它再次拿出来,目的是想记录我作为一个新手如何配置的,以及配置期间碰到的一些问题.期望其中的一些问题对大家有用.下载安装文件就不用说了.不过还是提一下版本吧. PHP:5.1.4 Apache 2.2.3 MySQL:5.0.2-community-nt 我安装的顺序如下: 安装PHP 安装Apache 安装MySQL PHP安装 有

Windows 上静态编译 Libevent 2.0.10 并实现一个简单 HTTP 服务器

Windows 上静态编译 Libevent 2.0.10 并实现一个简单 HTTP 服务器  大 | 中 | 小  [ 2011-3-30 08:40 | by 张宴 ] [文章作者:张宴 本文版本:v1.0 最后修改:2011.03.30 转载请注明原文链接:http://blog.zyan.cc/libevent_windows/] 本文介绍了如何在 Windows 操作系统中,利用微软 Visual Studio 2005 编译生成 Libevent 2.0.10 静态链接库,并利用 L

windows上安装apache python mod_python

综述:   windows上安装apache python mod_python的例子.教程甚至图解都不少:但作为新手还是会出错,而且一时无法快速排解. 在此笔者将根据自己的实践经验,给出几个需要注意的地方,以总结自我.方便大家! PS:如果您关注的是linux上的mod_python安装,那么尽管去做好了,相信你不会遇到太多的麻烦! 1 确认安装版本:   目前推荐的都是 apache2.2 + python2.5 + mod+python3.3 : 注意,这里说的都是大版本号,即一般是版本号

windows上安装Anaconda和python的教程详解

一提到数字图像处理编程,可能大多数人就会想到matlab,但matlab也有自身的缺点: 1.不开源,价格贵 2.软件容量大.一般3G以上,高版本甚至达5G以上. 3.只能做研究,不易转化成软件. 因此,我们这里使用Python这个脚本语言来进行数字图像处理. 要使用Python,必须先安装python,一般是2.7版本以上,不管是在windows系统,还是Linux系统,安装都是非常简单的. 要使用python进行各种开发和科学计算,还需要安装对应的包.这和matlab非常相似,只是matla

Windows 上安装 Azure PowerShell及Azure PowerShell部署虚拟机

一.Azure PowerShell部署 1.使用 PowerShellGet 在 Windows 上安装 Azure PowerShell 从 Azure PowerShell 版本 6.0 开始,Azure PowerShell 需要 PowerShell 版本 5.0. 若要查看在计算机上运行的 PowerShell 的版本,运行以下命令: #$PSVersionTable.PSVersion 2.Windows PowerShell升级 https://docs.microsoft.co

Windows 上安装 MySQL

一.Windows 上安装 MySQL 相对来说会较为简单,点击链接 https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.11-winx64.zip 下载 zip 包. 二.下载完后,我们将 zip 包解压到相应的目录,这里我将解压后的文件夹放在 C:\web\mysql-8.0.11 下. 三.打开刚刚解压的文件夹 C:\web\mysql-8.0.11 ,在该文件夹下创建 my.ini 配置文件,编辑 my.ini 配置以下基本信息: [