Fedena Project version 2.0 for Win32 Platform

Installation steps of Fedena Project version 2.0 for Win32 platform:

Part A: Install Ruby
Download and install One-Click Ruby Installer for Windows.
http://rubyforge.org/frs/download.php/72085/rubyinstaller-1.8.7-p302.exe

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 go to 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 http://localhost: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 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 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., 127.0.0.1)

References:
http://www.projectfedena.org/install
http://www.mattvsworld.com/blog/2010/03/version_requirements-deprecated-warning-in-rails/
http://railsforum.com/viewtopic.php?id=34012

Advertisements

8 thoughts on “Fedena Project version 2.0 for Win32 Platform

  1. Dear Sir,
    I cannot install in the Part D – Step 6, because the following error: Couldn’t create database for {…}.
    Could you help me resolve this error?
    Thank a lot.
    I am from Vietnam.

  2. Dear Sir,
    Here is the error I encountered when installing, we hope to receive his help to resolve this error:
    C:\fedena>rake db:create
    (in C:\fedena)
    Couldn’t create database for {“port”=>3306, “username”=>”root”, “adapter”=>”mysq
    l”, “database”=>”fedena”, “host”=>”localhost”, “password”=>123456}, charset: utf8,
    collation: utf8_unicode_ci (if you set the charset manually, make sure you have
    a matching collation)

    • Hi Hoang, it seems that Ruby can not instruct mysql to create the database. So it is needed to check whether you can log in into mysql manually using user root and password 123456. To do it, navigate to …\bin of your mysql installation folder (i.e., c:\mysql\bin), and issue the command, mysql -u root -p 123456 (enter). If you able to log in, issue the next command, create database fedena; (enter). Finally, quit mysql, \q; (enter). Go back to fedena installation and try to proceed with step 7. Hopefully, by continuing with step 7, the installation process could show more information regarding the problem encountered.

      • Sir,
        Through his guidance, I installed and successfully used Fedena software. During the last month, I struggled with this software without success. Sincerely thank him and wish him health.

      • Hi Jonny , I’m also facing the same problem with fedena installation !
        I have tried you instruction but when I use mysql -u root -p 12345 and hit enter than I got “Enter Password: ” I don’t know which password I have to enter !

        Plz help me

  3. Dear Sir,
    Through your guidance, I installed and successfully used Fedena software. During the last month, I struggled with this software without success. Sincerely thank you and wish you health.
    Sincerely apologize to you because I wrote wrong in the comment above.

  4. Hi,
    I tried to install fedena but Im stuck
    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.
    I dont understand what we have to update in database.yml?
    and in step 6 i have this problem:

    Couldn’t create database for {“port”=>3306, “username”=>”root”, “adapter”=>”mysq
    l”, “database”=>”fedena_ultimate”, “host”=>”localhost”, “password”=>”foradian”},
    charset: utf8, collation: utf8_unicode_ci (if you set the charset manually, mak
    e sure you have a matching collation)

    Regards

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s