Fedena Project version 2.0 for Win32 Platform

posted in: Networking | 0

Installation steps of Fedena Project version 2.0 for Win32 platform:

Part A: Install Ruby
Download and install One-Click Ruby Installer for Windows.

Part B: Install Rails
Use the RubyGems package manager to download and install Rails 2.3.5 (Note: Version should be 2.3.5),
1. Open a command window and run the command “gem install rails -v=2.3.5 –remote” (without quotes).
2. Check rake version: “gem list rake” (check version, if v 0.9.2 installed, it must be downgraded)
3. Run the command “gem uninstall rake”. (this will uninstall v 0.9.2)
4. Run the command “gem install rake -v 0.8.7”. (downgraded to version 0.8.7)
5. Then, run the command “gem install prawn -v=0.6.3 –remote”.

Part C: Install MySQL
1. Download and install the “essential” version of the MySQL installer v5.0 from http://downloads.mysql.com/archives/mysql-5.0/mysql-essential-5.0.90-win32.msi
2. Copy libmysql.dll from MySQL bin directory (usually C:\Program Files\MySQL\MySQL Server 5.0\bin) to Ruby bin directory (usually C:\Ruby\bin)
3. Or download it from http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll

Part D: Setup Fedena
1. Download Fedena source code from GitHub or from http://www.projectfedena.org/download. Extract the ZIP/TAR archive and save to a folder (i.e., C:\Fedena).
2. Now goto the Fedena source directory in the command window.
3. Run the command “gem install mysql”.
4. Run the command “rake gems:install” . This will install all missing gems.
5. Update the MySQL database details in Fedena/config/database.yml (under “development:”)
6. Run the command “rake db:create”. This will create the required databases.
7. Run the command “rake db:migrate”. This will populate the database with required tables.
8. Run the command “rake gems:install”. This will install 2 missing gems, declarative_authorization & searchlogic.
9. Run the command “ruby script/server”. This would start the server and it will be accessible at https://kamboti.unpatti.ac.id:3000
10. If you want to run Fedena in production mode, run the command “ruby script/server –e=production”. For this, Production database details should be given in config/database.yml
11. To solve the warning “C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement”
It is needed to edit/modify the file C:\Ruby187\lib\ruby\gems\1.8\gems\rails-2.3.5\lib\rails\gem_dependency.rb according to the changes shown at https://github.com/rails/rails/commit/268c9040d5c3c7ed30f3923eee71a78eeece8a8a#diff-0

Part E: Install Mongrel web server to speed up access via LAN
1. Navigate to Ruby187\bin folder
2. install mongrel web server, run the command “gem install mongrel”
3. Then navigate to Fedena directory and run the command “mongrel_rails start” or mongrel_rails start –e=production
4. Also port can be changed or specified for mongrel by using command: “mongrel_rails start -p 80 –e=production” . This will run Fedena on port 80, hence it can be accessed directly by typing server IP (i.e.,