Saturday, August 25, 2012

Configuring RUBY in Eclipse Juno, Windows

Steps to configure Eclipse Juno for RUBY development from scratch on Windows 7:
1. Install Ruby: Download the latest ruby one-click installer and after installation. Run 'ruby -v' command to verify ruby path is properly set up. In case you get an error like- not recognized as an internal or external command. Add a new environment variable (right click my computers, properties, advanced properties, environment variable) with properties as : Name - Path , Value - Ruby bin directory path. Somewhat similar to C:\ruby193\bin
2. Download latest eclipse (preferably - Eclipse IDE for Java developers) from Link to download Eclipse.
3. Extract the zip file to a folder and create shortcut of eclipse.exe to an easily accessible place and run eclipse.
4. Now your eclipse is ready for Ruby installation. Go to Help -> Install New Software.
5. Select 'Juno' for Work with combobox.
6. Then in the textbox below 'Work with' combo, type "Ruby".
7. You will see a checkbox before 'Dynamic Languages Toolkit - Ruby development tools'
8. Select the check box and click next. Proceed to install the same.

There are the major steps you need to set up your development machine.

You might need to configure Interpreters for ruby (which is done by default) In case you face issue with creating new ruby project then go to 'Window -> Preferences -> Ruby -> Interpreters' in eclipse. See if there is a ruby.exe interpreter is selected. In case it is not then add a new interpreter. Click browse and provide ruby.exe path. Most probably it will be C:\ruby193\bin. There after it should run successfully.

Now I've started using RubyMine for ruby development. Though it is paid but a very good environment for ruby development.

Sources: Searched a lot but this was the one which finally helped me in configuring interpreter Setting up your environment

No comments:

Post a Comment