码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2014-11-02 09:23:55      阅读:462      评论:0      收藏:0      [点我收藏+]

标签:mingw   windows   rails   redmine   mysql   

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!





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

标签:mingw   windows   rails   redmine   mysql   

原文地址:http://blog.csdn.net/cteng/article/details/40685449

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!