Project

General

Profile

Config Session store secret generation failed.

Added by kevin huang about 11 years ago

My server is win2008 R2 x64.
And Install redmine follow with Installing Redmine on Windows Server 2008 R2 and Apache with Thin as a windows service and Installing Redmine,
Before is no problem,but in 'Step 5 - Session store secret generation',input 'rake generate_secret_token',it show:

E:\webserver\redmine>rake generate_secret_token
rake aborted!
cannot load such file -- eventmachine
E:/webserver/redmine/config/application.rb:7:in `<top (required)>'
E:/webserver/redmine/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

Then,I install eventmachine.Input'gem install eventmachine',it show:

E:\webserver\DevKit>gem install eventmachine
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing eventmachine:
        ERROR: Failed to build gem native extension.

    e:/webserver/Ruby/bin/ruby.exe extconf.rb
checking for main() in -lssl... no
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... no
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for windows.h... yes
checking for winsock.h... yes
checking for main() in -lkernel32... yes
checking for main() in -lrpcrt4... yes
checking for main() in -lgdi32... yes
creating Makefile

make
generating rubyeventmachine-x64-mingw32.def
compiling binder.cpp
In file included from e:\webserver\devkit\mingw\bin\../lib/gcc/x86_64-w64-mingw3
2/4.7.2/../../../../x86_64-w64-mingw32/include/process.h:12:0,
                 from e:/webserver/Ruby/include/ruby-2.0.0/ruby/win32.h:60,
                 from e:/webserver/Ruby/include/ruby-2.0.0/ruby/defines.h:153,
                 from e:/webserver/Ruby/include/ruby-2.0.0/ruby/ruby.h:70,
                 from e:/webserver/Ruby/include/ruby-2.0.0/ruby.h:33,
                 from em.h:24,
                 from project.h:150,
                 from binder.cpp:20:
e:\webserver\devkit\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x8
6_64-w64-mingw32/include/sys/types.h:68:16: error: conflicting declaration 'type
def _pid_t pid_t'
In file included from binder.cpp:20:0:
project.h:97:13: error: 'pid_t' has a previous declaration as 'typedef int pid_t
'
In file included from project.h:151:0,
                 from binder.cpp:20:
ed.h: In member function 'void EventableDescriptor::SetSocketInvalid()':
ed.h:43:40: warning: overflow in implicit constant conversion [-Woverflow]
make: *** [binder.o] Error 1

Gem files will remain installed in e:/webserver/Ruby/lib/ruby/gems/2.0.0/gems/ev
entmachine-1.0.3 for inspection.
Results logged to e:/webserver/Ruby/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/
ext/gem_make.out

I also edit gemfile,to add 'gem "eventmachine", "~> 1.0.3"',and change 'Gemfile.local' both 'gem "eventmachine", "~> 1.0.3"' and 'gem "eventmachine", "~> 1.0.0.rc.4"',them all failed.

How can I do?