Wednesday, 7 May 2014

Summary of Problem I have faced during installing Ruby on Rails (RoR) on Windows 7 /64 bit

It is true that most of the Ruby/Rails community doesn’t develop on Windows,  it has to mainly develop on Ubuntu but, that doesn’t mean that it’s been left entirely unsupported!.

Gems can be used to extend or modify functionality in Ruby applications. Commonly they're used to distribute reusable functionality that is shared with other Rubyists for use in their applications and libraries. Some gems provide command line utilities to help automate tasks and speed up your work.

I am very new to the Ruby on Rails programing  that’s why I have faced lot of problem during the installation of Ruby on Rails on windows 7 / 64 bit like server was not starting on localhost, not able to connect the MySQL Databases by ruby on rails. Before I had tried with   version “2.0.0”, and Devkit version “DevKit-mingw64” but I was not able to succeed.

So after 4 days of struggle I come to this point that for Win7/64-bit install RubyInstaller rubyinstaller-1.9.3, and DevKit version DevKit-tdm-32. Because basically Rubyon Rails has to be done on Ubuntu Operating System, but when we supposed to work on Win7/64 bit, we have to compromise little bit about the rubyinstaller version and devkit version. 

I've actually reinstalled windows 7 two times in the last five days and actually reinstalled Rails related software really it was frustrating this problem has been. Story for installation and reinstallation was keeping on going. But finally I have fixed the issue, and its running on local server. (Wordpress Development Company)

So, I’m new to coding in general, but I've been fooling around with ruby and rails and decided to try and get the database stuff working and every time I run into the same sorts of problems, this seems to be some sort of windows 64 bit, and issue has been fixed .  Very important thing which we have to remember that “Skype” should not be open while installing the rails in your local machine.

Error I was getting during   installing mysql2 gem on Ruby 2.0.0and Rails 4.0.0 on Windows. So the main point we should always remember that if you have the Win7 / 64 bit, don’t install the Ruby 2.0.0.
C:\>gem install mysql2

ERROR:  Error installing mysql2:

    The 'mysql2' native gem requires installed build tools.
To fix this issue don’t forget to copy and paste the file (libmysql.ddl) from C:\Program Files\MySQL\MySQL Server 5.6\lib to C:\Ruby193\bin. Or in other word we can say that Add MySQL 64-bit lib directory to PATH 

Default server for Ruby On rails is WEBrick server but we can use our own server like apache. When developing the project in IDE like aptana RadRails we can add different server also


Visit Site :-  http://www.sukritinfotech.com/joomla-development.php

0 comments:

Post a Comment

 

Sukrit Infotech