General
HowTo: Install Fedena on Windows
Posted on .Previously, I wrote a guide on how to install Fedena on Ubuntu 12.04 (Server). In this guide, I’ll be showing you how to install Fedena on a computer running Windows. Although, there’s an official guide here, it’s outdated, so you’ll probably end up with errors during installation.
For this tutorial, I’ll be using Windows 8.1 64-bit. However, this guide should work on other versions of Windows.
Install Ruby (rubyinstaller-1.8.7-p374.exe)
According to the official guide, we need rubyinstaller-1.8.7-p302.exe, however, I personally recommend you install the latest 1.8.7 instead, since differences between patch levels should not affect application behavior (and the latest patch level is always better than an older version).
During Ruby installation check the “Add Ruby executables to your PATH” option, you may also choose to associate .rb and .rbw files with your Ruby installation.
Install MySQL (mysql-essential-5.0.90-win32.msi)
Download and install the “essential” version of the MySQL installer v5.0. After installation, copy libmysql.dll from the MySQL bin directory (usually C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin to Ruby’s bin directory (usually C:\Ruby\bin)
Note the root MySQL password you set as it’s needed later. If you left the password field blank, that’s not a problem, just proceed.
Setup Fedena (Fedena_Bundle_Win.zip)
Download Fedena bundle patched source code (linked above).
Extract the archive to a folder (say C:\Fedena). To keep things organized, get rid of the unnecessary directory structure and situate all the main files at “C:\Fedena”.
Navigate to the Fedena source code directory (“C:\Fedena”) from a command prompt window.
To do this, open a command prompt window using the Windows button and R (⊞ Win + R), type “cmd” and hit enter. In the command prompt window, the current directory would probably be ‘C:\Users\Username’. To change directory, we use the ‘cd’ command. See this page for more information on the CD or Change Directory command. However, if you’re at C:\Users\Username, the command to navigate to C:\Fedena would be cd ../../Fedena
Update RubyGems (v 1.3.7)
gem update --system 1.3.7
Now, we install bundler:
gem install bundler
Install additional GEMS
From the Fedena source directory, run the following command:
bundle install --local
Update Database File
Update the MySQL database details in config/database.yml
development:
host: localhost
adapter: mysql
database: fedena_ultimate
port: 3306
username: root
password: foradian
test: &test
host: localhost
adapter: mysql
database: fedena_two_new
port: 3306
username: root
password: foradian
production:
host: localhost
adapter: mysql
database: fedena_ultimate
port: 3306
username: root
password: foradian
cucumber:
<
Replace the default password "foradian" with your MySQL password set earlier, or delete the password if you did not set one earlier.
Create the MySQL database.
From the Fedena source directory ("C:\Fedena"), run the following command
rake db:create
This will create the required database, using the MySQL connection information supplied earlier.
If you already have this database, run this command instead:
rake db:migrate
Now, populate the database with the required tables using this command:
rake fedena:plugins:install_all
At this point, the installation should be complete. You can start Fedena with this command:
mongrel_rails start
Your Fedena installation should now be accessible at http://localhost:3000 (http://127.0.0.1:3000)
If you experience any problems, let’s hear in the comments.
—