How_To_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
Added by robert willis over 13 years ago
As a newbie I've been following the instructions from http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
And im now at the stage Install Redmine at 6.Create (or update) Redmine database tables!
However, command prompt is playing up at rake gets aborted! Using windows 7 64bit.
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\RWillis>cd C:\webserver\Redmine
C:\webserver\Redmine>set RAILS_ENV=production
C:\webserver\Redmine>rake generate_session_store
(in C:/webserver/Redmine)
NOTE: SourceIndex.new(hash) is deprecated; From C:/webserver/Redmine/config/../v
endor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_loa
d_rakefile'
(See full trace by running task with --trace)
C:\webserver\Redmine>rake db:migrate
(in C:/webserver/Redmine)
NOTE: SourceIndex.new(hash) is deprecated; From C:/webserver/Redmine/config/../v
endor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_loa
d_rakefile'
(See full trace by running task with --trace)
C:\webserver\Redmine>% rake release
'%' is not recognized as an internal or external command,
operable program or batch file.
C:\webserver\Redmine>rake release
(in C:/webserver/Redmine)
NOTE: SourceIndex.new(hash) is deprecated; From C:/webserver/Redmine/config/../v
endor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_loa
d_rakefile'
(See full trace by running task with --trace)
C:\webserver\Redmine>rails update
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `requi
re': undefined local variable or method `gem_original_require_path' for main:Obj
ect (NameError)
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:1
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:241:in `activa
te_dep'
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:236:in `activa
te'
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1307:in `gem'
from C:/webserver/Ruby/bin/rails:18
C:\webserver\Redmine>rails -v
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `requi
re': undefined local variable or method `gem_original_require_path' for main:Obj
ect (NameError)
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:1
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:241:in `activa
te_dep'
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:236:in `activa
te'
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1307:in `gem'
from C:/webserver/Ruby/bin/rails:18
C:\webserver\Redmine>gem list
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `requi
re': undefined local variable or method `gem_original_require_path' for main:Obj
ect (NameError)
from C:/webserver/Ruby/bin/gem:9
C:\webserver\Redmine>list gems
'list' is not recognized as an internal or external command,
operable program or batch file.
C:\webserver> list gems
'list' is not recognized as an internal or external command,
operable program or batch file.
C:\webserver>rails-2.3.5 update
'rails-2.3.5' is not recognized as an internal or external command,
operable program or batch file.
C:\webserver>rails update
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358:in `require': C:/webse
rver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34: syntax error, un
expected '-', expecting '\n' or ';' (SyntaxError)
def require rails-2.3.5
^
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34: no .<dig
it> floating literal anymore; put 0 before dot
def require rails-2.3.5
^
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:65: syntax e
rror, unexpected kEND, expecting $end
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358
from C:/webserver/Ruby/bin/rails:9:in `require'
from C:/webserver/Ruby/bin/rails:9
C:\webserver>gem install rails --version 3.0.5
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358:in `require': C:/webse
rver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34: syntax error, un
expected tSTRING_BEG, expecting '\n' or ';' (SyntaxError)
def require 'rails 2.3.5'
^
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:65: syntax e
rror, unexpected kEND, expecting $end
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358
from C:/webserver/Ruby/bin/gem:8:in `require'
from C:/webserver/Ruby/bin/gem:8
C:\webserver>rails update
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358:in `require': no such
file to load -- rails 3.0.5 (LoadError)
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358
from C:/webserver/Ruby/bin/rails:9:in `require'
from C:/webserver/Ruby/bin/rails:9
C:\webserver>rails update
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358:in `require': no such
file to load -- rails 3.0.5 (LoadError)
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358
from C:/webserver/Ruby/bin/rails:9:in `require'
from C:/webserver/Ruby/bin/rails:9
C:\webserver>script/plugin install git://github.com/rails/rails_upgrade.git
'script' is not recognized as an internal or external command,
operable program or batch file.
C:\webserver>rails v rails 3.0.5 (LoadError)
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358:in `require': no such
file to load -
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358
from C:/webserver/Ruby/bin/rails:9:in `require'
from C:/webserver/Ruby/bin/rails:9
C:\webserver>rake -v
C:/webserver/Ruby/bin/rake:1: syntax error, unexpected tIDENTIFIER, expecting $e
nd
C:/webserver/Ruby/bin/ruby.exe
^
C:\webserver>rake v rake (LoadErr
C:/webserver/Ruby/bin/rake:9:in `require': no such file to load -
or)
from C:/webserver/Ruby/bin/rake:9
C:\webserver>cd C:\webserver\Redmine
C:\webserver\Redmine>set RAILS_ENV=production
C:\webserver\Redmine>rake generate_session_store
C:/webserver/Ruby/bin/rake:9:in `require': no such file to load -- rake (LoadErr
or)
from C:/webserver/Ruby/bin/rake:9
C:\webserver\Redmine>rails myapp
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358:in `require': no such
file to load -- rails 3.0.5 (LoadError)
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358
from C:/webserver/Ruby/bin/rails:9:in `require'
from C:/webserver/Ruby/bin/rails:9
C:\webserver\Redmine>cd C:\webserver\Redmine
C:\webserver\Redmine>set RAILS_ENV=production
C:\webserver\Redmine>rake generate_session_store
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358:in `require': no such
file to load -- rails 3.0.5 (LoadError)
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1358
from C:/webserver/Ruby/bin/rake:9:in `require'
from C:/webserver/Ruby/bin/rake:9
C:\webserver\Redmine>rake db:migrate
C:\webserver\Redmine>
As you can see! I've been trying to play around with 1 or 2 files and have resigned to the idea that i should seek a helping hand!
All feedback kindly appreciated! Many thanks for taking time to read this!
Robert
Replies (4)
RE: How_To_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
-
Added by Etienne Massip over 13 years ago
See RE: Can't setup redmine on window!, you need to use a compatible RubyGems version.
RE: How_To_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
-
Added by robert willis over 13 years ago
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\RWillis>gem list
- LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.6, 2.3.5)
actionpack (3.0.6, 2.3.5)
activemodel (3.0.6)
activerecord (3.0.6, 2.3.5)
activeresource (3.0.6, 2.3.5)
activesupport (3.0.6, 2.3.5)
arel (2.0.9)
builder (2.1.2)
bundler (1.0.12)
cgi_multipart_eof_fix (2.5.0)
erubis (2.6.6)
gem_plugin (0.2.3)
hoe (2.9.4)
i18n (0.5.0, 0.4.2)
mail (2.2.15)
mime-types (1.16)
mongrel (1.1.5 x86-mingw32)
mongrel_service (0.3.4 i386-mswin32)
mysql (2.8.1 x86-mingw32)
polyglot (0.3.1)
rack (1.2.2, 1.0.1)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.6, 2.3.5)
railties (3.0.6)
rake (0.8.7)
rubygems-update (1.7.2, 1.6.2)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.26)
win32-api (1.4.8 x86-mingw32)
win32-service (0.5.2 mswin32)
windows-api (0.4.0)
windows-pr (1.2.0)
C:\Users\RWillis>cd C:\webserver\Redmine
C:\webserver\Redmine> set RAILS_ENV=production
C:\webserver\Redmine> rake generate_session_store
(in C:/webserver/Redmine)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_loa
d_rakefile'
(See full trace by running task with --trace)
C:\webserver\Redmine> rake db:migrate
Note;
I also added require 'tread' to environment.rb and got this print-out above!
RE: How_To_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
-
Added by Etienne Massip over 13 years ago
Yep, rubygems-update (1.7.2, 1.6.2)
not compatible.
Etienne Massip wrote:
See RE: Can't setup redmine on window!, you need to use a compatible RubyGems version.
RE: How_To_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
-
Added by Etienne Massip over 13 years ago
Note;
I also added require 'tread' to environment.rb and got this print-out above!
According to http://makandra.com/notes/1051-fixing-uninitialized-constant-activesupport-dependencies-mutex-nameerror, you may need to modify more files. But downgrading RubyGems to 1.3.7 is still a more safe solution to me.