Install Project Fedena version 2.2 on Win32

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

Step 2: Install Rails
Now we can use the RubyGems package manager to download and install Rails 2.3.5(Note: Version should be 2.3.5),
Open a command window and run the command gem install rails -v=2.3.5 –remote

Step 3: Install MySQL
1. Download and install the “essential” version of the MySQL installer v5.0
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)

Step 4: Setup Fedena
4.1. Download Fedena source code from GitHub. Extract the ZIP/TAR archive and save to a folder (say C:\Fedena22).
4.2. Now goto the fedena source directory in command line/prompt.
4.3. Run the command gem install mysql
4.4. Run command gem install declarative_authorization -v 0.5.1
4.5. Run command gem install searchlogic -v 2.4.27
4.6. Run command gem install i18n -v 0.4.2
4.7. Run command gem list (check for i18n version, if there is version 0.6.0, uninstall it, using command gem uninstall i18n )
4.8. Update the MySQL database details in config/database.yml (under “development:”)
4.9. Run the command rake db:create This will create the required databases.
4.10. Run command gem install win32-open3 to install win32-open gem.
4.11. Run the command rake db:migrate This will populate the database with required tables.
4.12. Finally, run the command ruby script/server This would start the server and it will be accessible at http://localhost:3000
4.13. 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

Step 5: Install RMagick for Fedena
(This installation is needed to solve error when uploading student profile picture)

http://files.rubyforge.vm.bytemark.co.uk/rmagick/RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip

5.1. Unzip ImageMagick-6.5.6-8-Q8.zip
5.2. Go to the unzip result folder and run ImageMagick-6.5.6-8-Q8-windows-dll.exe to install it.
5.3. Unzip RMagick-2.12.0.tar.gz
5.4. Copy the result, Rmagick-2.12.0 folder to C:\
5.5. Copy rmagick-2.12.0-x86-mswin32.gem to C:\RMagick-2.12.0
5.6. Navigate into folder C:\RMagick-2.12.0 using Windows Command Prompt
5.7. Run the command gem install rmagick --local

Step 6: Install wkhtmltopdf

This is to solve PDF creation problem ( error message: Create PDF Error: Bad wkhtmltopdf’s path )

6.1. Download the installer from http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-installer.exe

6.2. Install to folder c:\wkhtmltopdf

6.3. Edit c:\Fedena22\config\initializers\wicked_pdf.rb as follows:

#:wkhtmltopdf => '/home/foradian/sooraj/wkhtmltopdf-i386',
:wkhtmltopdf => 'c:\wkhtmltopdf\wkhtmltopdf.exe',

References:
http://latunyj.no-ip.org/2011/07/fedena-project-for-win32-platform/
http://projectfedena.org/install

Advertisements

12 thoughts on “Install Project Fedena version 2.2 on Win32

  1. hi thanks for the steps. I have done all above the steps but still i am unable to upload image . Please help me

  2. thank you for the steps..
    but after running step 4.9..i am having this error

    rake aborted!
    syntax error on line 3, col 33: ` database: fedena port: 3306′

    (See full trace by running task with –trace)”

    plz help..what to do now

  3. Thank you

    Editing
    Edit c:\Fedena22\config\initializers\wicked_pdf.rb as follows:

    #:wkhtmltopdf => ‘/home/foradian/sooraj/wkhtmltopdf-i386’,
    :wkhtmltopdf => ‘c:\wkhtmltopdf\wkhtmltopdf.exe’,

    on windows 7 is still trouble.

  4. Jonny thank you so much for the guide

    You just have to change the last line of code on the wicked_pdf.rb file to point it to the .exe file in the program folder. ie #:exe_path => ‘c:\Program Files\wkhtmltopdf\wkhtmltopdf.exe’

  5. Hi please help after following the steps , I am still getting the error while uploading the images.1 error prohibited this from being saved
    there were problems with the following fields:
    Photo H:/DOCUME~1/Owner/LOCALS~1/Temp/stream20130602-12540-11zwp8x-0.png is not recognized by the ‘identify’ command.
    Please please help.

  6. thanks for your guide through installing fedena on windows 7.

    Editing
    Edit c:\Fedena22\config\initializers\wicked_pdf.rb
    on windows 7 is still not working. below is my wicked_pdf.rb file
    WickedPdf.config = {
    #:wkhtmltopdf =>

    ‘/home/foradian/sooraj/wkhtmltopdf-i386′,:exe_path =>’c:\Program

    Files\wkhtmltopdf\wkhtmltopdf.exe’,
    :layout => “pdf.html”,
    :margin

    => { :top=> 40,
    :bottom => 20,
    :left=> 30,

    :right => 30},
    :header => {:html => { :template=>

    ‘layouts/pdf_header.html.erb’}},
    :footer => {:html => { :template=>

    ‘layouts/pdf_footer.html.erb’}}
    #:exe_path => ‘c:\Program Files

    \wkhtmltopdf\wkhtmltopdf.exe’
    }

  7. thank you for the steps..
    but after running step 4.9..i am having this error

    rake aborted!
    syntax error on line 3, col 33: ` database: fedena port: 3306′

    (See full trace by running task with –trace)”

    plz help..what to do now

  8. while runn ing “rake db:create” i am getting following error pls help me

    C:\Users\suju\Desktop\SMS\fedena>rake db:create

    rake aborted!

    ERROR: ‘rake/rdoctask’ is obsolete and no longer supported. Use ‘rdoc/task’ (ava

    ilable in RDoc 2.4.2+) instead.

    C:/Users/suju/Desktop/SMS/fedena/Rakefile:8

    (See full trace by running task with –trace)

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