Forums » Fedena installation and troubleshooting » Rake aborted! while executing rake db:create
I have been trying to install fedena and got stuck.

I m sorry if it is repeated question for you but I tried many suggestions from too many places but all in vain.

Please guide.

Rake aborted! while creating DB
C:\fedena>rake db:create
(in C:/fedena)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
(See full trace by running task with --trace)

Full Trace
__________________________________________
C:\fedena>rake db:create --trace
(in C:/fedena)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:55
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support.rb:56
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:18
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/rails.rb:4:in `load'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/rails.rb:4
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/rails.rb:4:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/rails.rb:4
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
C:/fedena/Rakefile:10
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Ruby187/bin/rake:23:in `load'
C:/Ruby187/bin/rake:23


STEP 1- Ruby 1.8.7 (installed)
___________________________

C:\fedena>ruby --version
ruby 1.8.7 (2013-06-27 patchlevel 374) [i386-mingw32]

STEP 2- Rails 2.3.5 (installed)
________________________________

C:\fedena>rails --version
Rails 2.3.5


STEP 3- MySQL 5.0.90 (installed)
__________________________________________

1. C:\fedena>mysql --version
mysql Ver 14.12 Distrib 5.0.90, for Win32 (ia32)

2. Copied libmysql.dll from MySQL bin directory to Ruby bin directory

STEP 4- Setup Fedena
__________________________________________
1. Downloaded & extracted to C:\fedena
2. C:\fedena Shift+RightClick -> Open Command window here
3. Successfully ran all commands
a. C:\fedena> gem install mysql
_________________________________________
C:\fedena>gem list mysql

*** LOCAL GEMS ***

mysql (2.9.1 x86-mingw32)

b. C:\fedena>gem install declarative_authorization -v 0.5.1
_________________________________________

C:\fedena>gem list declarative_authorization

*** LOCAL GEMS ***

declarative_authorization (0.5.1)


c. C:\fedena>gem install i18n -v 0.4.2

____________________________________________

C:\fedena>gem list i18n

*** LOCAL GEMS ***

i18n (0.4.2)

4. Update the MySQL database details in config/database.yml (under "development:", "test:", "production:")

5.When Run the command "rake db:create" throws error as shown above.
C:\fedena>rake db:create

6. Delayed job patch for Windows
a. Downloaded delayed job plugin from https://github.com/projectfedena/delayed_job
b. Replaced the content of folder vendor/plugins/delayed_job with downloaded files.

7. When I Run the command "rake fedena:plugins:install_all".

C:\fedena>rake fedena:plugins:install_all
(in C:/fedena)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
(See full trace by running task with --trace)

My system configuration is:
Windows 10 Home
64-bit Operating System, x-86 based processor.

Please help.

Problem resolved
Edit the "config\boot.rb" in 2nd line. Just below the line that starts with "RAILS_ROOT =" you will need to enter a new line:
require 'thread'
Close the file and save it.

Follow the link: https://en.wikibooks.org/wiki/Fedena/Installation

Thanks Fedena Community.